platform-ststm32
platform-ststm32 copied to clipboard
Code Upload Problem with STM32F103C8T6 BluePill and Stlink
i have an stm32 blue pill board , i wrote for it a simple GPIO driver , and set the upload protocol to stlink , strange enough it doesnt work properly and i was sure of the code i wrote , i tried it in debugging mode and it works fine , when i upload the code it has this message:
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.2% (used 32 bytes from 20480 bytes)
Flash: [ ] 0.5% (used 316 bytes from 65536 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, dfu, jlink, mbed, stlink
CURRENT: upload_protocol = stlink
Uploading .pio/build/bluepill_f103c8/firmware.elf
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-09:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
hla_swd
none separate
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000204 msp: 0x20005000
** Programming Started **
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked
and the code does'nt work as i expected i searched this problem thorough issues to find out that there is some offset as the code is not uploaded to the right adresses , so i just ran withouth debugging and it works fine , now i need to know what to do to fix this issue?
Please note the code uploads ELF file, whereas it should upload BIN file. It's a bug.