You are here

Upload bootloader to new MCU

8 posts / 0 new
Last post
Jessica
Offline
Last seen: 5 years 2 weeks ago
Joined: 2018-11-19 11:15
Posts: 8
Upload bootloader to new MCU

Hello everyone,

I have a homemade VESC 6 (with some hardware difference) and I'm having trouble programing the MCU (STM32f405).

I would like to upload a bootloader so I can then update my VESC from VESC Tool. Can I upload the boatloader of VESC 6(from Benjamin's Github) or do I need to rebuild the bootlaoder with my hardware specs ?

Can someone also remind me how to uplaod a bootlaoder to the MCU ? I found multiple tutorials online but I don't know which to follow..

 

Thank you very much

Jessica

sam.vanratt
Offline
Last seen: 11 months 3 weeks ago
Joined: 2018-11-18 14:09
Posts: 83

Hi Jessica

I think that's the Best practice way: https://www.vesc-project.com/node/269

Cheers

Sam

 

Pedelec usage in combination with a GoldenMotor MagicPie3 BLDC

Jessica
Offline
Last seen: 5 years 2 weeks ago
Joined: 2018-11-19 11:15
Posts: 8

Hi Sam

Thanks for the answer, but sorry I'm not asking how to upload a custom firmware, I'm asking how to upload the firmware to a new vesc with no firmware on it. 

I can't connect my Vesc to Vesc tool if it doesn't have the firmware on it. 

 

Jess

sam.vanratt
Offline
Last seen: 11 months 3 weeks ago
Joined: 2018-11-18 14:09
Posts: 83

Hi Jess

ah yes I see. I guess that's the time for the ST JTAG Suite. With that and the ST Software you are able to access the uC and its ROM/RAM/FLASH  at will. There are quite a number of that Kits available. The simplest one is the 10EUR ST Link V2. I never programmed the VESC at that level, but I do similar jobs on Routers and Li Chargers where an update can sometimes go seriously wrong.

 

Cheers

Sam

 

Pedelec usage in combination with a GoldenMotor MagicPie3 BLDC

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

Best way is to compile the main VESC Firmware and upload it using ST-Link Utility and an ST-Link V2. You can upload the boot loader from VESC Tool after you get it connected via usb.

Jessica
Offline
Last seen: 5 years 2 weeks ago
Joined: 2018-11-19 11:15
Posts: 8

Thank you very much Sam and TechAUmNu,

so It won't cause a problem if I upload the bootlaoder of the Vesc 6 ?  I don't have the exact same hardware as Vesc 6  ( i use a drv8323 for instance).

I'm asking because I know there is multiple bootlaoder versions and I don't know if I can use one of them or if I need to recompile it with my specs ? and I'm not sure how to do it if I have to recompile it.

 

Thanks again 

Jess

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

You can use the VESC6 one just fine, since its just over USB and those pins don't change.

Jessica
Offline
Last seen: 5 years 2 weeks ago
Joined: 2018-11-19 11:15
Posts: 8

thank you very much for your help, I'll try that.