Skip to content

ammaaim/stm32_plain_asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stm32_plain_asm

About

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

Software installation

For running this example you need:

  • arm-none-eabi-gcc
  • stlink

MacOS

  brew install autoconf automake pkg-config libusb libusb-compat stlink
Checking

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

Let's start!

Go to the project directory and run

  $ make
  $ make flash

Your cpu must be immersed in infnity loop

Enjoy!

thx -> @isqad

About

simplest asm example for stm32f103

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published