You are here

Loading custom firmware on my vesc -- no signs of life

6 posts / 0 new
Last post
chris1seto
Offline
Last seen: 1 year 2 days ago
Joined: 2019-01-04 01:41
Posts: 11
Loading custom firmware on my vesc -- no signs of life

Hi,

I have a vesc from the  "torque"  vesc from diyelectricskateboard dot com. I'm controlling the vesc over can and needed to add a custom packet, so I clone the vesc git repo, added my function, changed the following preprocessor define:

`#define HW_VERSION_410 // Also for 4.11 and 4.12`

And then did a `make`

I used the vesc tool to upload the resulting binary from the build directory to the board. I waited about a full minute after the upload and then powered the board down. After this, I powered the board up and there are no signs of life other than the blue LED. With the board connected via USB, the usual USB Vcom port did not enumerate. 

After this, I used my STLinkV2 and the STLinkV2 utility to erase the chip completely and then I loaded the bootloader hex file from the bootloader repo (After cloning and building it) onto the board. Again, there were no signs of life. 

I'm guessing I've missed something, but at this point I'm not exactly sure what. Any ideas?

 

Thanks,

Chris

 

 

 

district9prawn
Offline
Last seen: 1 year 3 months ago
Joined: 2018-04-26 12:18
Posts: 123

Maybe try compiling in chibi studio?

chris1seto
Offline
Last seen: 1 year 2 days ago
Joined: 2019-01-04 01:41
Posts: 11

An update:

 

Messing with the code and uploading it, the stm32 is definitely running code. I can turn LEDs on and off. But the USB vcom port thread isn't starting so obviously I cannot communicate with the vesc over usb. any ideas why this would be?

DenverTech
Offline
Last seen: 3 years 5 months ago
Joined: 2020-10-06 03:58
Posts: 1

Has the latest version "ChibiStudio_Windows_2020-04" be proven to compile this VESC firmware ??

 

ottojo
Offline
Last seen: 11 months 18 hours ago
Joined: 2020-11-28 21:24
Posts: 1

@chris1seto have you found a solution to your problem?

I also seem to not get a USB connection when i flash the firmware after compiling myself, although everything works perfectly when flashing the prebuilt FW from the repo...

anttok
Offline
Last seen: 2 years 12 months ago
Joined: 2018-05-21 22:06
Posts: 2

Ditto. Are you building on windows with chibi studio? Seems like this tool chain no longer works, someone smarter then I hopefully figures it out.