Flashing STM32F103C with Arduino IDE and USB UART device

Hello,

I have an issue to program the STM32F103C8, I'm using:
Arduino 1.8.13
STM32duino 2022.9.26
CP210x USB->UART

opt.
STM flash loader demonstrator

I have selected the right board Generic STM32F103C
upload method Serial
select the com port COM 8

and I got this error message
"stm32flash 0.4
Error probing interface "serial_w32"

Cannot handle device "COM8"
http://stm32flash.googlecode.com/
Failed to open port: COM8

Using Parser : Raw BINARY
"

I had a look in folder were the stm32flash is located
"arduino-1.8.13\portable\packages\stm32duino\tools\stm32tools\2022.9.26\win"

there is an bat file serial_upload.bat, I edit the bat in 1st line @echo off --> @echo on

the instruction string to the stm32flash is for the blink example
"stm32flash -g 0x8000000 -b 115200 -w C:\Users\Lutz_neu\AppData\Local\Temp\arduino_build_950410\Blink.ino.bin COM8"

if I switch to the cmd in the stm32folder and copy the instruction there it runs

"D:\atmel\arduino-1.8.13\portable\packages\stm32duino\tools\stm32tools\2022.9.26\win>stm32flash -g 0x8000000 -b 115200 -w C:\Users\Lutz_neu\AppData\Local\Temp\arduino_build_950410\Blink.ino.bin COM8
stm32flash 0.4

http://stm32flash.googlecode.com/

Using Parser : Raw BINARY
Interface serial_w32: 115200 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (Medium-density)

  • RAM : 20KiB (512b reserved by bootloader)
  • Flash : 128KiB (sector size: 4x1024)
  • Option RAM : 16b
  • System RAM : 2KiB
    Write to memory
    Erasing memory
    Wrote address 0x08002bac (100.00%) Done.

Starting execution at address 0x08000000... done."

Any idea why it isn't running from the IDE, it is the same instruction

Also the communication with "STM flash loader demonstrator" is running fine without issues

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.