Setting CONFIG_BOOTLOADER_MCUBOOT=y in prj.config on custom board prevents code working

I've been doing all my pre-production coding under the following environment:

  • Visual Studio Code v1.71.2, with nRF Connect Extension (v2022.9.179)
  • nRF Connect SDK v2.0.0
  • nRF52-DK

I've got my code running successfully under the above arrangement.  Recently, I tried porting this to my custom board, which uses the same IC as the nRF52-DK, which is the nRF52832.  I've been able to successfully program this with some simple LED Blinky and System_Off examples I had generated in the earlier days of development with the nRF52-DK, and everything appears to work as expected.

However, when I go to flash my pre-production code, that works on the nRF52-DK, then nothing works.

I've isolated this to the setting of CONFIG_BOOTLOADER_MCUBOOT=y in my prj.config file.  I can't just comment this out of my pre-production code, as it causes all sorts of other issues, but if I copy my working code prj.config file to, say, my LED_Blinky code, then I see the following:

  • CONFIG_BOOTLOADER_MCUBOOT=y then the code won't run
  • CONFIG_BOOTLOADER_MCUBOOT=n, then the code runs

I'm trying to understand why, even though the IC's on both the nRF52-Dk and my custom board are exactly the same, that trying to enable mcuboot on my custom board is causing me issues.

Ultimately, I need mcuboot as I am including OTA DFU functionality in my final design

Anyone seen this issue before and know how I can go about resolving it?

CHeers,

Mike

Parents Reply Children
Related