I am trying to build an application with Visual Studio Code using the nRF Connect SDK 1.7.1. I want to use MCUBoot and have it configured for a Serial DFU. I've modified my project's prj.conf file to include this line:
CONFIG_BOOTLOADER_MCUBOOT=y
and I do see that MCUBoot is now compiled in and runs prior to branching to my test application. However, the serial DFU is not working; printing log statements inside the "#ifdef CONFIG_MCUBOOT_SERIAL" section of code makes it clear that that #define is missing. I tried adding this line to my prj.conf:
CONFIG_MCUBOOT_SERIAL=y
But this results in compiler error for the prj.conf file:
prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol MCUBOOT_SERIAL
What is the correct way to enable serial DFU for an MCUBoot based project?