Which IDE for programming VESC and uploading code?

General topics and discussions about the VESC and its development.
michael_wintergarden
Posts: 85
Joined: 10 Aug 2016, 16:14

Which IDE for programming VESC and uploading code?

Postby michael_wintergarden » 31 Aug 2016, 07:37

Hi guys,

which IDE is used for programming the VESC and upload the code to the STM32F4?

I tried Keil uvision but I always get compiling errors so I guess VESC was programmed originally with another IDE.

Thanks

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

Re: Which IDE for programming VESC and uploading code?

Postby rew » 31 Aug 2016, 08:42

I use gnu Emacs to edit the source and I type "make" to compile it. (Actually, I type "autodo main.c make -j 5" to automatically compile every time I save the main.c file).

ViennaTom
Posts: 41
Joined: 21 Apr 2016, 13:06
Location: Austria/Vienna

Re: Which IDE for programming VESC and uploading code?

Postby ViennaTom » 31 Aug 2016, 08:50

I use CooCox on a Windows 7/64. It took a while though to collect all input path and compiler/linker settings (ChiBios). And I use a J-Link from Ali for download/debugging sometimes.
Greets, Tom
Last edited by ViennaTom on 31 Aug 2016, 10:53, edited 1 time in total.

Prevas_erra
Posts: 24
Joined: 11 Apr 2016, 16:03
Location: Stockholm

Re: Which IDE for programming VESC and uploading code?

Postby Prevas_erra » 31 Aug 2016, 09:24

I use ChibiStudio (Win7-64), free from chibios.org, comes with with gcc, gdb and OpenOCD.

/Eric

michael_wintergarden
Posts: 85
Joined: 10 Aug 2016, 16:14

Re: Which IDE for programming VESC and uploading code?

Postby michael_wintergarden » 31 Aug 2016, 14:32

Ok, interesting.

Would anybody be so kind and offer me a project file? Setting up the program is quite a nightmare...

ViennaTom
Posts: 41
Joined: 21 Apr 2016, 13:06
Location: Austria/Vienna

Re: Which IDE for programming VESC and uploading code?

Postby ViennaTom » 31 Aug 2016, 20:09

viewtopic.php?f=8&t=348
It works for me but sure it could have been done better (filestructure, unnecessary files, compiler options, ...)
I'm using a later ChiBIOS Version 3.0.5 and a different hardware based on DRV8301 but that won't be a problem i guess.
If you need more information on the CooCox installation I hope I can answer it.
CooCox CoIDE, Version: 1.7.8, Build id: 20150206-3334-1557

michael_wintergarden
Posts: 85
Joined: 10 Aug 2016, 16:14

Re: Which IDE for programming VESC and uploading code?

Postby michael_wintergarden » 01 Sep 2016, 11:45

Setting up the IDE is a nightmare.... I wonder if it would be somehow "easier" by using the Makefile somehow and set this up in qtcreator...

csomerv
Posts: 4
Joined: 01 Sep 2016, 16:15
Location: Cheltenham

Re: Which IDE for programming VESC and uploading code?

Postby csomerv » 01 Sep 2016, 16:27

Hi Eric,
I downloaded the latest ChibiStudio, for windows 10 and found it fell over and would not run correctly
Firstly I had already installed Eclipse parallel neon and secondly 64 bit java
For ChibiStudio to run I had to remove 64 bit java and put 32 bit java in place

Once I put 32 bit in place it all started ok. and I can build the sample projects included with ChibiStudio
My question now is where to add the how to get from Chibistudio, where to put the "bldc-firmware" directory so I can use it as a workspace and build the code ?

any help would be appreciated.

/ Craig

Prevas_erra
Posts: 24
Joined: 11 Apr 2016, 16:03
Location: Stockholm

Re: Which IDE for programming VESC and uploading code?

Postby Prevas_erra » 02 Sep 2016, 07:59

Hi Craig

I don't remember all the steps but test this.
Copy the firmware to a directory in your workspace where you have working examples.
Create a new project with makefile and point it at the new directory.
Select the folder in the project explorer and edit its settings.
Since the firmware has the OS in its directory the linked resource CHIBIOS must point to this location.
You mave have to overwrite the makefile with the original if the new project deletes the original.

/Eric

michael_wintergarden
Posts: 85
Joined: 10 Aug 2016, 16:14

Re: Which IDE for programming VESC and uploading code?

Postby michael_wintergarden » 23 Sep 2016, 15:51

Hi,

I tried to follow this tutorial: http://vedder.se/2012/07/get-started-wi ... ntu-linux/

But unfortunately, this link won't work:
Install a toolchain and OpenOcd

Follow the instructions at this location to install the toolchain:

https://launchpad.net/~terry.guo/+archi ... m-embedded


Has anybody tried this tutorial and/or get it to work?


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests