Closed
Description
Hi,
I'm trying to build a simple Arduino blink sketch for blue pill (STM32F103C) and upload over dfu:
[env:broken]
platform = ststm32
framework = arduino
board = bluepill_f103c8
upload_protocol = dfu
upload_port = not_used
The resulting binary doesn't work. It expects to file .text
at 0x0800010c
, but with DFU it will be programmed at 0x0802010c
. After some experimentation, overriding build.variant
works:
[env:bluepill]
platform = ststm32
framework = arduino
board = bluepill_f103c8
board_build.variant = stm32f1
upload_protocol = dfu
upload_port = not_used
There's code in builder/frameworks/arduino/maple/stm32f1.py
that correctly links the code, but that doesn't run by default(?). By changing build.variant
something not in core variants stm32f1.py
runs.
Seems like a bug? Or maybe i'm missing something.
Metadata
Metadata
Assignees
Labels
No labels