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

Log Message disabled/missing while Kiel debugging secure DFU project

Hi

I am trying to see log messages on the kiel debugger window or in the virtual com port window but nothing is not displayed.  printf also are not displayed, nrf logs also disabled because turn on the main log flag cause link problem (no space in execution regions..)

any idea how to get logs?

Thanks

Parents
  • Hi,

    I recommend you to use the Logger module (NRF_LOG) which is part of the SDK. This is enabled by default for most SDK examples with the UART backend. You can view the logs in any serial terminal emulator, for example PuTTY. You can also enable the RTT backend and view the logs in J-Link RTT Viewer.

    It is not clear to me what is wrong with the Logger module in your case. "No space in execution regions" indicate that something in your application is using a lot of memory so you cannot fit the logger module for some reason. The Logger module itself should not normally require a lot of memory unless you have set large buffer sizes (NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE or NRF_LOG_BUFSIZE).

Reply
  • Hi,

    I recommend you to use the Logger module (NRF_LOG) which is part of the SDK. This is enabled by default for most SDK examples with the UART backend. You can view the logs in any serial terminal emulator, for example PuTTY. You can also enable the RTT backend and view the logs in J-Link RTT Viewer.

    It is not clear to me what is wrong with the Logger module in your case. "No space in execution regions" indicate that something in your application is using a lot of memory so you cannot fit the logger module for some reason. The Logger module itself should not normally require a lot of memory unless you have set large buffer sizes (NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE or NRF_LOG_BUFSIZE).

Children
Related