I am trying to debug my nRF Secure Bootloader that was modified to DFU another microcontroller attached to the nRF over SPI. The bootloader works well and I can DFU the other microcontroller when I use the bootloader in "release" mode.
I have noticed that when I build the bootloader in "debug" mode, all the logs turn on and can be read over the RTT, but my SPI master fails. Everything I read on the bus is zero. No fatal errors or assertions. My makefile doesn't do anything else in "Debug" mode other than turn on logs and turn on "assert". I am not aware of anything else the bootloader does differently in debug mode. The application code stays the same when I switch from "release bootloader" to "debug bootloader", and the SPI bus fails there too! (reads in zeroes only) What could be causing my SPI bus to read zeros?
SDK 14.0.0
Softdevice S132 5.0.0