This is a Simple project to test makefile on an ARM Cortex M3 Target
- Add your Toolchain paths into make files in
Tool chain Commands
section in makefile (there are 2 makefiles in main dir and in src dir) - Make your Project Structure as this sample project
make all
to build and extract the binaries.hex
,.elf
and.bin
make clean
to remove binaries and.o
filesmake flash
to upload the code to MCU -- NOT TESTEDmake erase
to make full memory erase -- NOT TESTED
If you want to use this on ARM-CORTEX M4, You have to change toolchain options, in C Flags
section, according to your target architecture
Example: change -mcpu=cortex-m3 to -mcpu=cortex-m4