Setting up a C++ Toolchain for STM32 Microcontrollers

From Double Jump Electric Wiki
Revision as of 12:42, 19 April 2020 by Poofjunior (talk | contribs) (Created page with "Much of this guide is in great debt to the [https://1bitsy.org/ 1bitsy] and [https://libopencm3.org/ libopencm3] projects. ==Background== C++ offers the flexibility of object...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Much of this guide is in great debt to the 1bitsy and libopencm3 projects.

Background

C++ offers the flexibility of object oriented programming, a bump over C when it comes to working with microcontrollers.


Setup

On Ubuntu, install the arm compiler with:

sudo apt-get install gcc-arm-embedded

On other systems, you can download it manually from the Arm Developer webpage.

Clone/Download libopencm3.

Compile libopencm3.