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
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
Hello David,
By default, logging is not enabled in the bootloader projects. If you want to see the logging, you should check out the pca10056_xxx_debug projects, where xxx is the type of bootloader you are working on, ble, serial or usb.
The reason logging isn't enabled in the "normal" bootloader projects is because the logging modules are quite big, and it requires more flash than what is set aside for the normal bootloader projects.
Best regards,
Edvin
I compiled the secure_bootloader under pca10056_ble_debug, no messages displayed when I debug the project. (Messages are displayed on application project, -- separate debug run from bootloader )
Thank you,
David
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