cortex-m
cortex-m copied to clipboard
asm::bootload
I am using an STM32F411 and I want to do place my stm32in dfu mode by software.
I am trying to do it by using asm::bootload ( *correct system memory address ), it correctly goes into the function, but then I don't know what happen to my MCU, but it does not go in DFU mode.
I have implemented an USB communication, and I still can see the usb port, but it doesn't respond after calling the bootload function.
seems to be better working after a system reset using cortex_m::peripheral::SCB::sys_reset();
is this the best way ? and why is it needed ?