Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 858 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 858 Bytes

STM32F4 Tiny Template

A tiny code template for STM32F4 series processors.

This Template:

  • Defines interrupt table at the start of Flash memory
  • Initializes stack on CCM memory
  • Initializes .data
  • Initializes .bss to zero
  • Calls main

Building

Just issue:

$ make

This assumes that make tools and toolchain is already installed and working.

Specifying toolchain

Toolchain can be specified with environment variables. Currently variables CROSS, CC, OBJCOPY, SIZE are used for toolchain specification

  • CROSS: Specifies prefix for toolchain (e.g arm-none-eabi-), default: arm-none-eabi-
  • CC: Specifies C and Assembler compiler (e.g. gcc), default: gcc
  • OBJCOPY: specifies objcopy program, default: objcopy
  • SIZE: specifies size program, default: size

Example:

make CROSS=arm-randomos-eabi- CC=cc