Simplest stm32 asm example. Only asm, only hardcore! There is simple make and ld files for fast and soft start
This example used blue pill stm32 board & ST-LINK V2 programmer
For running this example you need:
- arm-none-eabi-gcc
- stlink
brew install autoconf automake pkg-config libusb libusb-compat stlink
Connect your "blue pill" board through ST-LINK to your PC
Check if software/hardware works correctly
st-info --chipid
st-info --pagesize
st-info --flash
Download your default (blink) program from board to PC
st-flash read ./default.bin 0x08000000 0x10000
You can write the program back
st-flash write ./default.bin 0x08000000
Go to the project directory and run
$ make
$ make flash
Your cpu must be immersed in infnity loop
Enjoy!
thx -> @isqad