Replaced STM32F2 on electron, DCD layout restore, Bootloader single stepping

I managed to replace the STM32F2 with an STM32F4 to make use of floating point arithmetic and other benefits of the F4 line.
I compiled and flashed the bootloader for electron at its flash address but for some reason, the bootloader seems to be stuck without jumping to the application address.


  1. Do I need to flash the DCD layout to an erased chip to make the bootloader function properly ?
  2. I got JLINK debugger connected and can single step code just fine. I tried to single step the bootloader but apparently the LTO is making it hard to read through the data structures. Non-LTO option spills over the alloted the bootloader mem segment … Whats the best way to debug the bootloader ?