Page 1 of 1

Atollic TrueStudio STM32F4DISCOVERY problems

Posted: Wed Feb 29, 2012 6:25 am
by chrisjensen
Hello All,

I am new here, but I have searched for the past 2-3 days for a way to use chibiOS on the STM32F4DISCOVERY. I am using atollic truestudio (the free version) which I understood was based on eclipse so I used the following how-to:

http://www.chibios.org/dokuwiki/doku.ph ... _discovery

I am using TrueStudio "Version: 2.3.0 Lite" from atollic, and chibiOS 2.4.0, running on windows XP but it didn't work and gives the error:



"**** Build of configuration Default for project ARMCM4-STM32F407-DISCOVERY ****


(Cannot run program "make": Launching failed)"



So to ensure that truestudio was working, I loaded the STM blinky project and verified that it worked. I also loaded the DAC_SignalsGeneration from the STM website. So I can verify that it is working.

Not to be discouraged, I made my own project, and added the same files that were linked in the KEIL project. After I fixed all of the dependencies, it still didn't compile. I would like to use atollic truestudio, and get this working. Does anyone have any suggestions to get this working? Compiler/truestudio/make file settings?

thanks.

Re: Atollic TrueStudio STM32F4DISCOVERY problems

Posted: Wed Feb 29, 2012 9:09 am
by Giovanni
Hi,

Probably your problem is that you don't have the program "make.exe" and the other Unix-like utilities used by the makefiles. Go on yagarto.de and install the "YAGARTO tools", those include all the required utilities.

You can verify that all the required software is installed by compiling from a command line, just change directory into the demo and give the command "make", if it goes well then it will compile also from within Eclipse. The command "make clean" removes the compiled files and restores exactly the initial situation.

About making a project and resolving dependencies, it is definitely possible but not advisable until you have some more experience with ChibiOS, you have to take care not just of dependencies but also compiler options, linker script and startup files (use the ones provided with ChibiOS).

Giovanni

Re: Atollic TrueStudio STM32F4DISCOVERY problems

Posted: Wed Feb 29, 2012 3:30 pm
by chrisjensen
So I got it to compile within TrueStudio. I think I now understand from the tutorial here: http://www.chibios.org/dokuwiki/doku.php?id=chibios:guides:eclipse2 when it says we are choosing "Other" for toolchain, there has to be an alternative, and in my case it needed to be YAGARTO. So I did what you said and installed YAGARTO. This was easy, but it should be noted for those in the future using XP like myself:

1 - install YAGARTO Tool Chain (~20 MB) first (MAKE SURE YOU CHANGE THE INSTALL PATH TO C:/yagarto/ )
2 - next install YAGARTO Tools (~2MB) (change the install location for this to C:/yagarto/yagarto-tools)

I have as of yet have not been able to upload the compiled chibiOS to the STM32F4DISCOVERY board through the STLINK utility nor TrueStudio, but I will post an update once I get it.

-Christopher