You are here

Custom firmware upload problem

7 posts / 0 new
Last post
kswiorek
Offline
Last seen: 1 year 4 months ago
Joined: 2019-03-03 19:02
Posts: 2
Custom firmware upload problem

Hello,

I'm trying to make an electric bike with vesc 6 (purchased from flipsky) and a 1720w motor. It's based on Tom Stanton's project. I want to have a switch to change between throttle and cadence controls. For the throttle the ADC app works fine, but I couldn't find a way to implement a cadence sensor without modifying the firmware. 

There I encountered a problem, because when I compiled and uploaded the firmware according to this tutorial, vesc-tool couldn't connect anymore. I had to switch to windows and upload the original .bin firmware and bootloader using the st-link app. Then I tried uploading the compiled file according to these instructions and I even though I modified a couple of files I haven't noticed any change. It seemed like it uploaded the default firmware. When I upload the firmware, that I compiled, using the st-link, I can't connect to the vesc and a green LED lights with full brightness as opposed to a normal dimmer light.

Am I doing something wrong? Maybe there is another,  easier way to implement the cadence sensor?

Jack_Li
Offline
Last seen: 11 months 2 weeks ago
Joined: 2019-07-01 05:03
Posts: 12

my problem may be same with you,did you solve the problem?

jack li

district9prawn
Offline
Last seen: 1 week 5 days ago
Joined: 2018-04-26 12:18
Posts: 102

I had the exact same problem with certain versions of the gcc arm compiler. Everything worked with an older version of the compiler. 

kswiorek
Offline
Last seen: 1 year 4 months ago
Joined: 2019-03-03 19:02
Posts: 2

Thanks, I will try that when I return home.

dawnnunez
Offline
Last seen: 1 year 3 months ago
Joined: 2019-08-09 10:49
Posts: 1

Thank you for your help guys. 

run 3

TanmayP
Offline
Last seen: 3 months 3 days ago
VESC Free
Joined: 2020-06-23 21:22
Posts: 2

Hi,

Did you make any changes to the code to make it applicable for VESC 6? I am also trying to follow the steps in the tutorial to be able to develop custom applications on the latest vesc but I am running into bunch of errors in the initial steps itself. I am unable to upload the firmware using the 'make upload' command on Terminal. Also, is there an easy way to use the same code on Windows as well? 

Thanks!

 

TP

Count1310
Offline
Last seen: 2 months 3 weeks ago
VESC Free
Joined: 2019-03-21 11:47
Posts: 4

Now it would be great if you can tell us which version worked for you.

I just had a look in my downloads folder and the version I used before which worked was gcc-arm-none-eabi-9-2019-q4-major-x86-64-linux.tar.bz