title: HardFault during erasing Flash in debug mode
body: <p>I've written a custom bootloader using C to run on ARM cortex_M4 but I had a HardFault exception when using the debug mode. This exception appears just in debug mode, when I use release mode everithing works.</p>
  <p>I've checked that the Flash/Erase code is loaded to RAM before the execution of erase command.</p>
  <p>Thanks in advance.</p>