/stm32-base

Base repository for building firmware to upload to a STM32 Discovery board.

Primary LanguagePerl

STM32 Base

Build Status Coverage Status

Base repository for building firmware to upload to a STM32 Discovery board.

Dependencies

This base image was created with Debian Testing and has the following dependencies:

Build

  • apt-get install gcc-arm-none-eabi

Testing

  • apt-get install gcc libcmocka0 libcmocka-dev

Coveralls

  • apt-get install python-pip
  • pip install cpp-coveralls

Directories

firmware

Output directory for single firmware generated from src into elf format for flashing.

src

Source files.

test

Directory for containing tests which are ran using the system compiler to run coverage.

libopencm3

Abstraction library for Cortex M3 microcontrollers.

Commands

make

Builds the files in src into firmware

make test

Builds and runs test/coverage

make clean

Remove build files from test and src.

make flash

Builds firmware and then runs openocd to flash the firmware onto the board.