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.

RTOS/MSP-EXP430F5529LP: UART Logging of Log_info() statements as ASCII

Part Number: MSP-EXP430F5529LP
Other Parts Discussed in Thread: MSP430F5529

Tool/software: TI-RTOS

Hello,

I am trying to get UART logging working on my MSP430F5529 LaunchPad with TI-RTOS. I would like to use Log_info0("Hello, World!"); type statements and print the log over uart as an idle function.

I have loaded the uartlogging example in ti/tirtos_msp43x_2_20_00_06/examples/MSP430/TI/MSP_EXP430F5529LP/uartlogging

but I just get binary data on my serial port. I have done this successfully before with the CC26xx and Ti-RTOS, and the UART logging comes out something like: "#000002 [ 2.000 ] "../flash.c", line 55: Hello, World!"

So, How do I get text logging?

thank you,

-Skot

  • The Log module is meant to be mean and lean, so it transfers binary data that can be interpreted by System Analyzer in CCS. If you want to have ASCII come out the UART, take a look at the other UART examples...I don't have access right now, but I know we have an example where System_printf output goes out the UART.

    Note: you can decode the Log output on the target, but it really only really useful on large devices (e.g. multi-core C66 or CortexA + DSP devices where there's lots of memory and a complex topology).

    Todd
  • I like logging as an idle task so it doesn't interrupt task execution. I found a wiki entry that seems to address this.

    http://processors.wiki.ti.com/index.php/LoggerIdle_Uart

  • BTW, for logging can be used also mailbox system,  that can transfer double word at once (not byte by byte as UART), using only SBW connection, leaving all device peripheral / pins free. Unfortunately, it is not supported by TI FET's.

  • Wow Zrno, that looks pretty awesome. Do you have any tips on how to set that up?

    thanks,
    -Skot

**Attention** This is a public forum