Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 487 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 487 Bytes

STM32F103 Assembly Blink

This code written with assembly and a simple linker for need of a bare minimum project

To build:

arm-none-eabi-gcc -x assembler-with-cpp -c -O0 -mcpu=cortex-m3 -mthumb core.S -o core.o
arm-none-eabi-gcc core.o -mcpu=cortex-m3 -mthumb -Wall --specs=nosys.specs -nostdlib -lgcc -T./stm32f103c8t6.ld -o main.elf

To flash:

openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "program main.elf verify reset exit"