RTT Log with MCUBoot

Hi,

I have a problem with nRF52840 module.

In my config, when I disabled CONFIG_BOOTLOADER_MCUBOOT=n, Then my circuit runs normally and prints out the log via RTT J Link.

But when I enabled CONFIG_BOOTLOADER_MCUBOOT=y, Then my circuit does not run and does not print any log.

My program run with toggle the led pin0.20.

I'm using nRF Connect SDK v2.4.0

Parents
  • Hi,

    Is the problem here that you don't get RTT logs from the application when you have RTT logging enabled in MCUBoot? If so it could be that you are seeing a quite common issue, which is related to how the RTT viewer works. By default, it will search for the RTT buffer in memory, and stick with the first it finds. And the bootloader and application will typically not place the RTT buffer at the same location. In that case, you could manually specify where the buffer is as suggested in this post.

Reply
  • Hi,

    Is the problem here that you don't get RTT logs from the application when you have RTT logging enabled in MCUBoot? If so it could be that you are seeing a quite common issue, which is related to how the RTT viewer works. By default, it will search for the RTT buffer in memory, and stick with the first it finds. And the bootloader and application will typically not place the RTT buffer at the same location. In that case, you could manually specify where the buffer is as suggested in this post.

Children
Related