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

Segger J-link RTT.

We are currently working on NRF52 DK.

I know that a Segger RTT is used to print the debug message using a Real Time Terminal(like TeraData or Hercules).

I know that a Segger J-link is a programmer and debugger. Are we using the programmer-debugger to print the messages or we are using a UART to print the messages?

When I looked at the Segger RTT files at \examples\proprietary_rf\esb_low_power_prx\pca10040\blank\arm5_no_packs in NRF52 SDK 11.0, there is no mention of UART driver.

We are developing a board with nrf52832 chip, If we want to use Segger RTT to display data, what should be done?

Parents
  • Using Segger RTT with the nrf52 and a JLink Probe is quite easy:

    1. You can "redirect" NRF_LOG_PRINTF through SeggerRTT by setting NRF_LOG_USES_RTT to 1 in your makefile/project (defined in nrf_log.h).
    2. You can access the the SeggerRTT in a UART like way directly through the APIs in external/segger_rtt/SEGGER_RTT.h

    To get your debugging output on the host machine, you can use JLinkRTTClient on Unix Machines (make sure you have a open JLink connection) or JLink RTT Viewer on Windows

Reply
  • Using Segger RTT with the nrf52 and a JLink Probe is quite easy:

    1. You can "redirect" NRF_LOG_PRINTF through SeggerRTT by setting NRF_LOG_USES_RTT to 1 in your makefile/project (defined in nrf_log.h).
    2. You can access the the SeggerRTT in a UART like way directly through the APIs in external/segger_rtt/SEGGER_RTT.h

    To get your debugging output on the host machine, you can use JLinkRTTClient on Unix Machines (make sure you have a open JLink connection) or JLink RTT Viewer on Windows

Children
Related