You are here

Compiling in a different config.

2 posts / 0 new
Last post
Roger Wolff
Offline
Last seen: 2 years 4 months ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 202
Compiling in a different config.

Hi, 

Sometimes, you are going to produce a bunch of boards paired with a suitable motor that works best with a motorconfig that is currently not the default. 

Then you might want to skip configuring the VESC through VESC tool for each produced board: Just flash the required binary and have the default config work out of the box. 

To do this you can put all the defines on the make commandline or something like that. The easier way to do it is to just configure the first one, and then convert the XML to something that can be compiled into the binary. I have written a script that does just that. With a very small patch to the source code that would allow anybody to save his motor config as the default in a firmware build. 

 

Does anybody else need this? I've been given permission to publish the code. (if there is interest). Benjamin?

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

That sounds like a good idea, I may also need this for a project I am working on. (I was just going to get the pcb fab to program the boards as part of functional testing with a supplied xml config)