Cortex M Llvm Save Abandoned

DEPRECATED: Use instread https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm Cortex M3/M4 with LLVM toolkit

Project README

DEPRECATED

Use instread LLVM embedded toolchain for Arm from ARM-Software

cortex-m-llvm

Cortex M with LLVM toolkit.

Example firmware for cortex-m using LLVM toolchain.

Tested well with LLVM/CLANG 6.0 or high from LLVM download site

Usage

This project provide a simple makefile set for working with LLVM/CLANG on cortex-m. Due to configure your target you need:

  • Modify config.mk with preferred parameters for your project (self explained into file)
  • Ensure memory configuration is correct for your MCU (on lib/mem.ld)
  • Ensure linker script is correct (review lib/link.ld)
  • Add vendor dependent reset vectors to src/start.c

Next, add your sources to src/*.c or modify Makefile to include others directories

Makefile targets

  • all: Compile and link all files. Produce elf, bin, list and map
  • clean: Remove compilation results
  • size: Print size of result binary
  • list: Create list file using objdump (llvm version)

Required packages

  • clang 6.0 or higher
  • llvm 6.0 or higher
  • lld 6.0 or higher
Open Source Agenda is not affiliated with "Cortex M Llvm" Project. README Source: martinribelotta/cortex-m-llvm
Stars
60
Open Issues
1
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating