You are here

Upload bootloader to stm32 f405?

4 posts / 0 new
Last post
jneumann
Offline
Last seen: 3 years 9 months ago
Joined: 2019-08-22 05:01
Posts: 3
Upload bootloader to stm32 f405?

Hi guys i am currently repairing a flipsky vesc 6.6. The owner of the vesc could not solder to save himself and ended up burning the swd pads off the pcb trying to reflash firmware with stlink utility. This would never have worked anyway as i found the mcu was shorted. Im about to resolder a new stm32f405 onto the board so i want to make sure i get this right as there is no way to reprogram once its back on. Can i simply flash the VESC_default.bin file to the blank MCU and resolder it to the board or do i need to erase the chip and flash only the hex of a usb bootloader then reload the firmware through vesc tool? If anyone has the hex for the bootloader it would be greatly appreciated.

TheFallen
Offline
Last seen: 1 week 2 days ago
VESC FreeVESC Original
Joined: 2017-09-11 11:46
Posts: 222

Yes, if you flash the "VESC_default.bin" firmware file this should include the bootloader, then you'll be able to upgrade the firmware via USB/UART afterwards.

jneumann
Offline
Last seen: 3 years 9 months ago
Joined: 2019-08-22 05:01
Posts: 3

awesome i wasnt sure if it included the bootloader or not

TechAUmNu
Offline
Last seen: 2 weeks 2 days ago
VESC Free
Joined: 2017-09-22 01:27
Posts: 575

BTW that file doesn't include a bootloader, you need to manually flash it on using vesc tool after connecting via usb in vesc tool.