I have been setting up a method to jump to the DFU bootloader for an STM32F405RG with the code provided in the link below (which I have received from other mbed forum posts) and the addresses should work for any STM32F4 chip based on what I have read. I have built the main.cpp and put it in the dfu-util folder for upload, but when I check for dfu devices in the command prompt, the chip doesn’t seem to go into DFU mode. There may also be a missing config in my custom_targets.json so please point anything out that causes the bootload code to not work.
My code can be found in this link: GitHub - DheerN/stm-testing
Any solutions?