Hi,
I’m facing an issue with RTT logging on my nRF52840 using NCS 2.6.0. I’m trying to log output from the B0 bootloader, but so far, I’m only able to capture logs from the application and the MCUboot.
I want to verify the MCUbootloader version, and as I understand it, I need to log output from B0 as described in the example: https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/config_and_build/bootloaders/bootloader_testing.html
b0.conf:
mcuboot.conf:
Relevant prj.conf:
EDIT: When I erase the chip and flash only b0_container.hex
, I get the following log output:
This makes sense, since there’s no valid image yet.
However, when I then flash the signed_by_mcuboot_and_b0_s0_image_signed.hex
, I only see MCUboot logging output — the B0 logging no longer appears:
PS: Debugging MCUboot is also a bit tricky — sometimes it works if I reconnect the debugger at exactly the right moment (immediately after power-up), but other times it doesn’t work at all.
BR Daniel