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

How to enable NRF_LOG_DEBUG in the secure bootloader code?

Hi,

For nRF82540 dev board, the secure bootloader code has embedded many NRF_LOG_DEBUG(...). But they are not displayed or output to virtual COM port. Is there anyway to be enabled or simply how to show these debug messages?

Thank you,

David Zhou

Parents Reply Children
  • Have you set the NRF_LOG_ENABLED to 1 in your sdk_config.h in your bootloader project?

    I don't know what log backend you use in your non-bootloader application. Is that UART or RTT? Because the bootloader_debug project uses the RTT backend. If you use Segger Embedded Studio(SES), try to set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in sdk_config.h. If you run a debug session in SES you should then see the log messages in the debug console in SES. If you don't use SES, open JLink RTT Viewer to monitor the RTT Log.

    Best regards,

    Edvin

Related