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

Re: Compiling VESC firmware on Windows

Postby MMichi » 31 Mar 2016, 21:00

I never used EmIDE so i can't comment. Is egrep.exe in you msys/bin folder?

pf26
Posts: 309
Joined: 28 Mar 2016, 14:37
Location: FR Valence

Re: Compiling VESC firmware on Windows

Postby pf26 » 01 Apr 2016, 06:41

egrep.exe does not exist. I have a egrep (no extension), and a grep.exe. But I think it should be launched via the shell (sh.exe does exist and it seem possible to launch "sh.exe egrep"). I think I will try EmBitz.

rew
Posts: 943
Joined: 25 Mar 2016, 12:29
Location: Delft, Netherlands.

Re: Compiling VESC firmware on Windows

Postby rew » 01 Apr 2016, 07:21

egrep is a shell script on my system. It reads:

Code: Select all

#!/bin/sh
exec grep -E ${1+"$@"}
.

If you change all occurrances of "egrep" in your Makefile into grep -E, You'll be fine.

pf26
Posts: 309
Joined: 28 Mar 2016, 14:37
Location: FR Valence

Re: Compiling VESC firmware on Windows

Postby pf26 » 01 Apr 2016, 07:35

Replacing egrep by grep -E removes these errors, but still I get :
make.exe: *** No rule to make target `build/BLDC_4_ChibiOS.elf', needed by `build/BLDC_4_ChibiOS.bin'
Thks..

MMichi
Posts: 7
Joined: 10 Mar 2016, 15:41
Location: Deutschland

Re: Compiling VESC firmware on Windows

Postby MMichi » 01 Apr 2016, 10:30

pf26 wrote:egrep.exe does not exist. I have a egrep (no extension), and a grep.exe. But I think it should be launched via the shell (sh.exe does exist and it seem possible to launch "sh.exe egrep"). I think I will try EmBitz.
I tried to redownload Msys1.0 but only found a "small" version, like 3MB.
But the Msys/1.0/bin i already got on my disk is different. It contains more files(300+) and is around 40MB. I cant remember where i downloaded it from :(

But as rew said grep -E is the same as egrep.

If you want to try embitz i can give you some hints. It is a small package so you dont waste time installing it.

pf26
Posts: 309
Joined: 28 Mar 2016, 14:37
Location: FR Valence

Re: Compiling VESC firmware on Windows

Postby pf26 » 01 Apr 2016, 10:41

I installed EmBitz. Looks very similar to EmIDE and nice. But it doesn't work either. Build get stuck somewhere, I need to force close the program from Windows.
There is also a General settings window in EmBitz, with option "Shell to run commands in", and a textbox with a path /bin/sh -c which is greyed out, just like in EmIDE.
I tryied to copy my Msys files to a /bin directory (from my project directory) but without more success .
The Msys exe files I found are dated 11/07/2009.

MMichi
Posts: 7
Joined: 10 Mar 2016, 15:41
Location: Deutschland

Re: Compiling VESC firmware on Windows

Postby MMichi » 01 Apr 2016, 12:18

Steps i did:

1. EB: Settings->Tools... , Toolchain executables , additional paths
- enter path to Msys/bin

2. create new project
- choose Empty template
- name project title as 'BLDC_4_ChibiOS', will make things easier.
- untick debug checkbox
- change create release configuration to 'upload'
- change ouput dir to 'build\'
- change objects output dir to 'build\obj\'

3. copy all files from bldc-master to BLDC_4_ChibiOS

4. right click on your project choose 'add files recursivly'
- choose folder 'BLDC_4_ChibiOS'

5. right click on your project choose 'properties'
- click checkbox 'this is a custom Makefile'

6. Build target
during build there is no response or status.
Building takes about 1minute on my pc (4.2Ghz).

Here is a link to the msys bin folder i use:
http://s000.tinyupload.com/index.php?fi ... 3954523837

pf26
Posts: 309
Joined: 28 Mar 2016, 14:37
Location: FR Valence

Re: Compiling VESC firmware on Windows

Postby pf26 » 01 Apr 2016, 14:12

Thanks a lot for this very detailled answer.
I followed it precisely, everything seemed ok, I also copied your msys bin files, and Build F7. And unfortunately, I still have the same issue :
It says : ------------- Build: upload in BLDC_4_ChibiOS --------------- and then nothing, no CPU load, everything in the "build" menu is grayed out, no way to close EmBitz other than CTRL ALT DEL..
Even if I add syntax errors in files, nothing changes. "Clean" produces the same issue.

I still think of an issue with shell. Do you also have the General settings window in EmBitz, with option "Shell to run commands in", and a textbox with a path /bin/sh -c ? From my project directory, this path leads to nothing.
So I also tried to copy all the Msys/bin files to MyProjectDir/bin, no change.

MMichi
Posts: 7
Joined: 10 Mar 2016, 15:41
Location: Deutschland

Re: Compiling VESC firmware on Windows

Postby MMichi » 01 Apr 2016, 16:43

pf26 wrote:It says : ------------- Build: upload in BLDC_4_ChibiOS --------------- and then nothing, no CPU load, everything in the "build" menu is grayed out, no way to close EmBitz other than CTRL ALT DEL..
Even if I add syntax errors in files, nothing changes. "Clean" produces the same issue.
Same here but after a while it's done. Maybe just wait longer ;)

pf26
Posts: 309
Joined: 28 Mar 2016, 14:37
Location: FR Valence

Re: Compiling VESC firmware on Windows

Postby pf26 » 01 Apr 2016, 19:00

Do you mean, you also see no CPU load during compiling ??? Strange.
I use an old PC with 1.6GHz so I expect long compile times, but at least with some CPU load.
I can see that many folders were created in the build/obj directory. But no obj files in there.
I waited nearly 1 hour, nothing came out...


Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests