So, let’s get right to it. We will use the windows environment and a set of libraries and command lines.
First we setup the libraries required for compiling and linking your programs.
Open up the stm32f4 zip file and extract the files to a suitable location. (If you also have a 25042012_update zip file, then extract the contents of that inside of the stm32f4/stm32 folder) .Now go into the main folder and open the “msys.bat” file.
Once it opens, it lets you enter commands to build libraries or compile a program.
To build the libraries do the following:
1)make clean – do this once to reset all libraries
2)make lib- to build all the libraries.
2. Hardware driver setup:
Install the driver provided –STM ST-LINK. Also install the ST-LINK UTILITY. This Is the programming tool. Also install STM STUDIO which will be the debugger.(Note: you may need to download java at www.java.com for stmstudio to work).
Now you are ready!
- Library setup
First we setup the libraries required for compiling and linking your programs.
Open up the stm32f4 zip file and extract the files to a suitable location. (If you also have a 25042012_update zip file, then extract the contents of that inside of the stm32f4/stm32 folder) .Now go into the main folder and open the “msys.bat” file.
Once it opens, it lets you enter commands to build libraries or compile a program.
To build the libraries do the following:
1)make clean – do this once to reset all libraries
2)make lib- to build all the libraries.
2. Hardware driver setup:
Install the driver provided –STM ST-LINK. Also install the ST-LINK UTILITY. This Is the programming tool. Also install STM STUDIO which will be the debugger.(Note: you may need to download java at www.java.com for stmstudio to work).
Now you are ready!