Hey guys, Ivan
I have been successfully using PIO with stm32 via ST-Link v2.
However now I have the BMP, and I have set it in the platformio.ini, but it doesn’t work.
Any ideas? The detected port is correct (COM12).
I’m on Windows 10. I haven’t done any driver or firmware upgrades. COM11 is the UART part of the BMP and works correctly with putty / teraterm etc. So COM12 is correct for the debug side.
Notice the accidental quotation mark in ‘S"ection’ .text, after the COM12 error thing.
I’m going out now so can’t reply back for the afternoon but just wanted to ask the question while it was fresh in my mind. Thanks for the great tools again.
> Executing task: C:\Users\cmf\.platformio\penv\Scripts\platformio.exe run --target upload <
[04/21/18 12:30:26] Processing genericSTM32F103R8 (framework: arduino; platform: ststm32; board: genericSTM32F103R8)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: ST STM32 > STM32F103R8 (20k RAM. 64 Flash)
SYSTEM: STM32F103R8T6 128MHz 20KB RAM (64KB Flash)
DEBUG: CURRENT(blackmagic) EXTERNAL(blackmagic, jlink, stlink)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(light)
Collected 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SPI> v1.0
|-- <Adafruit_GFX_AS>
| |-- <Adafruit GFX Library> v1.2.3
| | |-- <SPI> v1.0
|-- <Adafruit_ILI9341_STM>
| |-- <SPI> v1.0
| |-- <Adafruit_GFX_AS>
| | |-- <Adafruit GFX Library> v1.2.3
| | | |-- <SPI> v1.0
Configuring upload protocol...
AVAILABLE: blackmagic, dfu, jlink, serial, stlink
CURRENT: upload_protocol = blackmagic
Looking for BlackMagic port...
Auto-detected: COM12
Uploading .pioenvs\genericSTM32F103R8\firmware.elf
COM12: No such file or directory.
S"ection .text, range 0x8000000 -- 0x8006d0c: matched.monitor" command not supported by this target.
Section .ARM.exidx, range 0x8006d10 -- 0x8006d18: matched.Don't know how to attach. Try "help target".
Section .data, range 0x8006d18 -- 0x8007958: MIS-MATCHED!
You can't do that when your target is `exec'S
ection .rodata, range 0x8007958 -- 0x800865c: matched.
warning: One or more sections of the target image does not match
the loaded file
The program is not being run.
=============================================================================================== [SUCCESS] Took 2.73 seconds ===============================================================================================
Terminal will be reused by tasks, press any key to close it.