how to use debugger as well as view the printk logs simultaneously

Hi,

    i want to view the debug logs using the printk function while using the debugger in nrf5340 dk kit. we use RTT viewer to view the debug logs printed using printk function. however, we could  not view the log while using the debugger tool in vb ide since the same J-LINK is used by both the RTT viewer and the debugger. we use the UART for communicating with the external controller so is there any alternative solution to view the debug messages while using debugger. 

  • No idea what your problem is, I can use both the Segger RTT viewer and the vs code / ozone debugging at the same time.

    The Segger JLink software can handle multiple connections to the same debugger hardware.

    The RTT viewer application can also re-use existing connections from other tools, and has an auto-reconnect feature in that mode.

    I recommend replacing simple printk() statements with LOG_XXX (ERR, WRN, INF, DBG). This lets you turn it off later in development without changing much code.

  • hi thank you for the reply. i have attached the screen short of the issue why trying to use both the debugger and the RTT viewer simultanously. im using Nordic NRF5340 DK kit 

    do we need to do any configuration in the vs studio for using both simultaniously or can u share me a simple project that works fine for you so that i can try the same project with my pc to make sure if i miss something during the configuration 

Related