apsun / stm32f407

Playground for the STM32F407 (aka STM32F4 Discovery)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo contains random stuff that I use to play around with my STM32F4DISCOVERY board. The goal is to have a complete end to end development workflow using only basic Unix tools (i.e. make, gcc, gdb, your text editor of choice, etc).

Massive disclaimer: I have literally no experience with the ARM architecture. Do not take anything in this repo and run it in prod.

Want to follow along at home? You can buy this board in the US here.

The reference manual can be found here and documents the system architecture and registers.

The ARMv7-M reference manual contains a reference for the instruction set. Be careful not to accidentally use the ARMv7-A/R manual; it is completely different from the ARMv7-M manual.

The STM32CubeF4 projects can also be super useful as a code reference.

List of tools you'll need:

  • gcc and gdb cross compiled for ARM
  • openocd (for debugging)
  • stlink (for flashing the board)

Running make install will flash the board. make debug will do the same and start gdb afterwards.

About

Playground for the STM32F407 (aka STM32F4 Discovery)


Languages

Language:C 61.3%Language:Rust 21.9%Language:Assembly 9.6%Language:Makefile 6.8%Language:GDB 0.4%