Skip to content

Bare minimum blink code for STM32F103C8T6 MCU with thumb assembly using ARM Cortex-M3 Technical Reference Manual

Notifications You must be signed in to change notification settings

Rynxie/AssemblyBlinkForSTM32F103

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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"

About

Bare minimum blink code for STM32F103C8T6 MCU with thumb assembly using ARM Cortex-M3 Technical Reference Manual

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published