PhotoElectricChefs
  • Shifted
  • Home
  • FHM
  • Tutorials
    • Home Made PCB (DIY)
    • ARM Tutorials>
      • Introduction
      • The Arduino style of programming
      • C++ Programming
      • Implementation
      • Your First Program
      • Compiling & Uploading
      • STM STUDIO
      • Acknowledgements
    • AVR Tutorials>
      • Introduction
      • Getting Started
    • Arduino Tutorials>
      • Getting Started -Installation
      • Hello world Program - LED Blink
      • Button Interface - Digital Input
      • Fading LED - Analog output
      • Communication -Serial
      • Digital Voltmeter - Analog Input
  • Electronics -An Idea
    • Batteries
    • Voltage and Current dividers
  • Blog
  • Contact Us
  • Untitled

So, let’s get right to it. We will use the windows environment and a set of libraries and command lines.
    1. 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!


Previous
Next
Powered by Create your own unique website with customizable templates.