Compiling VESC firmware on Windows

General topics and discussions about the VESC and its development.
MMichi
Posts: 7
Joined: 10 Mar 2016, 15:41
Location: Deutschland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby MMichi » 01 Apr 2016, 21:31


pf26
Posts: 310
Joined: 28 Mar 2016, 14:37
Location: FR Valence
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby pf26 » 02 Apr 2016, 09:15

Hurra! Now it compiles. 2minutes 5sec not too bad. Thanks a lot !!
It's time to have a closer look into VESCs customs app now.

ThierryGTLTS
Posts: 86
Joined: 09 Aug 2017, 11:10
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby ThierryGTLTS » 25 Aug 2017, 11:31

I've read this topic with great interest.

But I don't understand (it's a bit fuzzy) what is really needed to modify and compile firmware.

I have nothing installed on my Win7 PC, except BLDC Tool to download the firmware on the VESC.


What do you recommand for a clean and easy to install and to use programs :?: :!:

Step-by-step description will be fine for me ;)


Have a Nice Day.

Thierry

ThierryGTLTS
Posts: 86
Joined: 09 Aug 2017, 11:10
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby ThierryGTLTS » 25 Aug 2017, 15:16

I think I've understood, please tell me if I'm right :?: :!:

I need to download and install Embitz and make the settings like MMichi has explained.

MinGW32 or 64 (I use Win 7 Pro 64 bit) will do the makefile.

So I need to tell Embitz the additional path to choose MinGW instead of the Embitz make tool.

Hope I'm right now ;)

Thierry

maxkinz
Posts: 29
Joined: 30 Jun 2017, 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby maxkinz » 29 Aug 2017, 15:42

Hey Thierry,
If it helps here is what I did - just download Chibi Studio (VESC is based on ChibiOS).
http://www.chibios.org/dokuwiki/doku.ph ... udio:start
Then clone the firmware's git repository, import the project into Chibi Studio and click "build" - You can then go and pick up your .bin file directly in the build-directory specified for the project.

I have not tried the other toolchains but I am confident this is the easiest thing you could do. I did not need to modify the makefile or anything. Tested on Windows 7 Pro and Windows 10.

Good luck
Max

ThierryGTLTS
Posts: 86
Joined: 09 Aug 2017, 11:10
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby ThierryGTLTS » 29 Aug 2017, 16:47

I will try this tomorrow.

Thank you Max.

Thierry

ThierryGTLTS
Posts: 86
Joined: 09 Aug 2017, 11:10
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby ThierryGTLTS » 01 Sep 2017, 08:40

Thanks Max.

Although it was not straightforward for me, I've succeed and it takes only 12.5 sec to build the firmware with my 5 year old PC.


Here is the recipe for Newbies who wanna do the job.

Install Chibi Studio as described on the website video.
>File >New >Makefile Project with Existing Code >Choose existing code location "Browse".
>Project>Properties >C/C++ Build >Configuration "Default", Build Location "Workspace" Choose Project Directory >Apply >OK
>Build and DONE :!:

Hope it will help others ;)

Thierry

maxkinz
Posts: 29
Joined: 30 Jun 2017, 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby maxkinz » 01 Sep 2017, 09:02

Hey Thierry,

I'm sorry that i omitted that information as it was appearently not obvious :D.
I hope you didnt waste too much time otherwise next time please pm - would have been a matter of minutes then.
What you describe is what i meant by "mport the project into Chibi Studio" ;)

Good luck with your application
Max

ThierryGTLTS
Posts: 86
Joined: 09 Aug 2017, 11:10
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby ThierryGTLTS » 01 Sep 2017, 15:42

When I did >File>Import>Existing Project into Workspace, it didn't work, it seems to import a lot of unnecessay ST folders and misses some files.

But >File >New >Makefile Project with Existing Code works very well and is straightforward and very quick.

I don't understand why the import processes are different.

Now I have to learn a lot of things because I'm not a Code Geek :D :D :D

Have a Nice W-E.

Thierry

song
Posts: 5
Joined: 11 Sep 2017, 13:43
Location: Beijing
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Compiling VESC firmware on Windows

Postby song » 25 Sep 2017, 11:33

I prefer Keil on windows.
Attachments
keil.PNG
keil.PNG (87.32 KiB) Viewed 4800 times


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest