This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Clear example using Segger RTT on Zephyr with SES and nRF5340-PDK?

Nordic boards come with the awesome JLINK-OB, and I'd love to use Segger RTT for app tracing, but have been not been able to get it working in Zephyr using the nRF5340-PDK.   I looked around DevZone and tried some suggestions targeted to the nRF9160, but ultimately was unsuccessful. 

My primary need is fast output that can be directed to RTT logging window that can be docked in SES.   

Can this be done, and are any zephyr examples available?   A simple "hello world" using RTT would be great.

Thanks in advance.

Parents
  • On some experimental project I was doing, I was using the below configuration in my proj.conf and it worked quite fine with the segger logs

    CONFIG_USE_SEGGER_RTT=y
    CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS=3
    CONFIG_SEGGER_RTT_MAX_NUM_DOWN_BUFFERS=3
    CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=28000
    CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN=16
    CONFIG_SEGGER_RTT_PRINTF_BUFFER_SIZE=14000
    CONFIG_SEGGER_RTT_MODE_NO_BLOCK_SKIP=y
    CONFIG_SEGGER_RTT_MODE=0
    

    You might also take a look at this thread to see how to stop uart from flushing to the console. The logging mechanism is the same for any variant in Zephyr.

Reply
  • On some experimental project I was doing, I was using the below configuration in my proj.conf and it worked quite fine with the segger logs

    CONFIG_USE_SEGGER_RTT=y
    CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS=3
    CONFIG_SEGGER_RTT_MAX_NUM_DOWN_BUFFERS=3
    CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=28000
    CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN=16
    CONFIG_SEGGER_RTT_PRINTF_BUFFER_SIZE=14000
    CONFIG_SEGGER_RTT_MODE_NO_BLOCK_SKIP=y
    CONFIG_SEGGER_RTT_MODE=0
    

    You might also take a look at this thread to see how to stop uart from flushing to the console. The logging mechanism is the same for any variant in Zephyr.

Children
Related