Unable to debug with BOOTLOADER_MCUBOOT and SECURE_BOOT enabled

Hi,

I just ran into a strange issue and traced it back to a KCONFIG problem... It seems that if I have BOOTLOADER_MCUBOOT and SECURE_BOOT configured "y" I end up getting a problem when I try to boot into debug mode, is this expected? If so, what is the canonical way to enable/disable relevant KCONFIG options when debugging the application (but having them automatically on when creating a production build)?

Thanks
Josh

P.S. Here's my prj.conf for completeness

# debug config
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_DEBUG_THREAD_INFO=y

# bootloader
# CONFIG_BOOTLOADER_MCUBOOT=y
# CONFIG_SECURE_BOOT=y

# Enable RTT
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y

# enable uart driver
CONFIG_SERIAL=y

# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y

# enable i2s light driver
CONFIG_SPI=n
CONFIG_I2S=y
CONFIG_LED_STRIP=y

# threading
CONFIG_HEAP_MEM_POOL_SIZE=256

Related