Skip to content

drjaydenm/stm32_blink

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
ld
 
 
src
 
 
 
 
 
 
 
 

stm32_blink

Just another basic program that blinks an LED on an STM32 MCU - how exciting...

Setup

Install the GNU Toolchain for ARM Embedded Processors

The toolchain is required to compile for the STM32 target platform

MacOS

brew tap osx-cross/arm

brew install arm-gcc-bin

brew install stlink

Building

Run the build

make

Flash to device

make flash

Inspect memory layout of image

arm-none-eabi-nm main.elf

Debugging

Using GDB - ensure st-util is running

arm-none-eabi-gdb main.elf

target extended-remote :4242

load

continue

Ctrl^C

info registers

stepi

info registers

quit

About

Just another basic program that blinks an LED on an STM32 MCU - how exciting...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages