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.

MSPM0L1106: Printf via UART

Part Number: MSPM0L1106
Other Parts Discussed in Thread: MSPM0L1306

Hello,

We want to use printf() via UART for debugging. We checked the uart_tx_console_multibyte_repeated_fifo_dma_LP_MSPM0L1306_nortos and uart_tx_multibyte_fifo_dma_interrupts_LP_MSPM0L1306_nortos_ticlang, unfortunately they don't offer the flexibility of typical printf() functions. 

We have used a wrapper to include vsprintf() to forward to UART, which works well. However this variadic function is not compatible with our static code analysis.

Is there a better alternative to printf() directly through UART?

Thank you and best regards,

Ambroise

  • Hi Ambroise,

    Can you share the solutions code details: "a wrapper to include vsprintf() to forward to UART"? Or what the specific requirement of the printf() flexibility?

    To finish printf via UART, all is to send the variable to TXDATA, it can finish without DMA.

    B.R.

    Sal