blob: 4ef61dd010288b6f99664083d9bfe91508aa2d4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
.PHONY: all clean
all:
mkdir build
arm-none-eabi-gcc -O0 -c -g -mcpu=cortex-m3 -mthumb -o build/test_program.o src/test_program.c
arm-none-eabi-gcc -O0 -c -g -mcpu=cortex-m3 -mthumb -o build/startup.o src/startup.c
arm-none-eabi-ld -Tld/stm32.ld -o build/test_program.elf build/startup.o build/test_program.o
arm-none-eabi-objcopy -O binary build/test_program.elf build/test_program.bin
clean:
rm -rf build
|