Git Product home page Git Product logo

stm32f407vet6's Introduction

STM32F4-FreeRTOS

A demo project of FreeRTOS running on a STM32F4 Discovery board.

Steps to run this example

Prerequisite

  1. A PC running Linux or Windows with Cygwin(not tested). A Mac is also fine with this example.
  2. A STM32F4Discovery board.
  3. A FT232RL USB to serial board which is recommended if there's no serial port on your computer.
  4. USB Cable, Dupont Line and other tools.

Install the toolchain

The pre-built version of GNU Tools for ARM can be downloaded from its website. It's available for most systems. Follow the instructions in the readme file and installed the toolchain to your system. To verify your installation, simply type arm-none-eabi-gcc --version in your terminal, if everything goes right, you'll get output like this:

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.3 20130312 (release) [ARM/embedded-4_7-branch revision 196615]
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Install ST-Link utility

Windows

Grab the official utility from ST website. Note that you should install the USB driver before install the st-util.

Linux and OS X

Clone this git, follow the instructions on that page and install st-util to your system.

Compile this example

The only thing you need to do is to edit the makefile and let it know your toolchain installation path. Change the TOOLCHARN_ROOT variable at the third line of makefile and point it to where you installed the toolchain. The you can simply type make and compile the example.

Debug

Connect your STM32F4Discovery with a USB cable. You can flash the binary into the board with this:

$ st-flash write binary/FreeRTOS.bin 0x8000000

The code is wrote directly into internal flash of STM32 processor and it starts to run after reset. To debug it, first start the GDB server:

$ st-util &

And then GDB:

$ arm-none-eabi-gdb binary/FreeRTOS.elf
(gdb) tar ext :4242
(gdb) b main
(gdb) c

You'll get breakpoint triggered at main function, and enjoy!

stm32f407vet6's People

Contributors

alfa512 avatar

Stargazers

Rohan Katkam avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

sean820729

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.