flash: add stm32lx loader Hard Fault workaround