This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Read/write UART via DSP when it is in use by Linux

Dear sir:

 I use OMAPL137, which Linux already use UART1 & UART2 as console. What should I do or notice if I want to directly read/write UART1/2 via DSP? 

I searched the forum and best suggestions is to disable UARTx configuration and rebuild new Linux kernel image, But what if I just not read/write the UARTx in Linux, and use UART in DSP? Do this way conflict Linux or will work fine?

  • CalvinTai,

    There are multiple synchronization mechanisms that could be used. But to keep it simple can you just keep one working thread on linux for the UART TX & RX?

    DSP can talk to the UART via the linux thread i.e. DSP can send the data using an API (shared memory) to linux thread which can do the write via the UART. Similarly opposite direction dataflow for reads. This way the synchronization can be left for implementation in the linux thread.

    Regards

    Rajat

  • Dear Rajat:

    Can you explain more detail about what API or how to using shared memory (pool read/write of dsplink?) to achive the target? Is there any example or documents?

    Currently I use Linux stdin/stdout for UARTx, thus to exchange data between DSP and outside world,  it should be DSP <-> dsplink <-> Linux -> outside world, it's a long way.