STM32F4Discovery first IO Toggle example

Now we are trying to run our first led blinking example..

cd  ~/stm32build/stlink_texane/

Download the examples

wget http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f4discovery_fw.zip

Unzip it

unzip stm32f4discovery_fw.zip

Download the Make files

wget http://jthomson.towhee.org/stm32f4discovery_files/STM32F4DISCOVERY_Makefiles.zip

Unzip the make files

unzip STM32F4DISCOVERY_Makefiles.zip

cd ~/stm32build/stlink_texane/STM32F4DISCOVERY_Makefiles

Copy the Makefile to Example directory

cp Makefile.IO_Toggle ~/stm32build/stlink_texane/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/IO_Toggle/

cd ~/stm32build/stlink_texane/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/IO_Toggle

Build the project

make -f Makefile.IO_Toggle

flash the program to STM32F4Discovery board

st-flash write IO_Toggle.bin 0x8000000

Press reset button we can see LED’s flashing…. 🙂

Advertisements

4 thoughts on “STM32F4Discovery first IO Toggle example

  1. when i exexcute this step ,make -f Makefile.IO_Toggle
    i got an error as “arm-none-eabi-gcc not found in bin”..how to solve this?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s