Successfully Built Blinky in Eclipse Luna and Linux on STM32F429I-Disco
I have inculded the blinky file that I found in it’s entirety.
I don’t remeber where I found but i am sure there are no copy right issues since it is a very simple LED bliky and that is it.
I think I got it from Github or form some tutorial page somewhere.
The first one I tried to use was exactly like this one but it was missing the top part of the listing, and that is the 1 millisecond delay routine so the program kept giving me errors and my build would fail.
So, Let us pay attention to detail here!!
There are fews ways you can enter this code in to our IDE.
First click on the arrow next to “blinky” in the project manager and the the arrow next to SRC (for source code).
Double click on “main.c” this is our main program and it will open up to be displayed in the Ecilpse IDE.
By using the the “main.c” file in the ‘blinky ffolder” I have supplied below you can ethier copy past the “main.c” from that folder into the “Project Explorer” on the left or you can open up the “main.c” in an editor lik Gedit copy paste just to script in to the IDE itself.
The only difference is the when you copy paste replace the main.c is that the line #include “stm32f429i_discovery.h” won’t be there and that is okay for this example as it is not needed for the program.
So just copy paste and replace the “main.c” so that you can follow along since we have to make simple modification in order to make this work on our board.
I don’t know exactly wich discovery board this was written for but the GPIO port is set to D and in this program and we have to chage it for G port.
So for every line that shows GPIOD we have to change it to GPIOG.
If you have done everything exactly as I have it the lines that need to be changed are lines 22, Line 25 and line 29, all of them must have a G in place of the D.
Line 28 is our value of the Blinky rate and is currently set to 500milliseconds or .5 seconds.
You can change this value to a different rate to verify that everything is working correctly.
Our target LED is LED3 and it is a green hooked to PG13.
I could only include the main.c file , but that is all we need anyhow.
Now it is time to build our Blinky project and up load it to our board.
Jer


