Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32flash flashing example #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ This example uses the st-util by texane that you can find on [GitHub](https://gi
load
run

### stm32flash

Set pins BOOT0=1 and BOOT1=1 (if present) to boot from System Memory.
Connect UART pins to USB-UART converter, reset the MCU and you can write an image with stm32flash tool.

cd examples/stm32/f0/stm32f0-discovery/miniblink
arm-none-eabi-objcopy -j .text -j .data -O ihex miniblink.elf miniblink.hex
stm32flash -w miniblink.hex -v DEVICE

DEVICE is the name of your UART converter, for example /dev/ttyUSB0 or COM7.

## Reuse

If you want to use libopencm3 in your own project, the _easiest_ way is
Expand Down