Bluepill program upload does not work as expected
Hi!
This is my first post on this forum.
I just got an STM32F103C8T6 board from Ebay, ( https://www.ebay.com/itm/STM32F103C8T6-Minimum-System-Developmen-Board-Module-Core-Learning-For-Arduino/323747797666?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649 )
and I have a question regarding programming it.
I use Arduino IDE 1.8.9 for programming and the correct board manager.
For upload I use an USB FTDI card that I run in 3.3V mode. I have connected the FTDI as follows: VCC to 3.3V, GND to GND, RX to A9 and TX to A10.
I load the Blink example and upload it to the board using arduino IDE. The settings I have used in Arduino is
Board: Generic STM32F103C series
Variant: STM32F103CB (20k RAM 64k Flash
Upload method: Serial
CPU speed: 72 MHz
I have switched BOOT0 jumper to "1" position.
The program uploads and this is what appears in the output window:
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 0x08000100 (2.03%)
Wrote address 0x08000200 (4.06%)
...
...
Wrote address 0x08003100 (99.37%)
Wrote address 0x08003150 (100.00%) Done.
Starting execution at address 0x08000000... done.
The program does not run immediately after upload as I would expect.
I have to switch BOOT 0 back to position 0 to make the program run. This takes a lot of time in the development phase, and I would like it to run immediately after the upload is done.
Has anyone else experienced this behavior?
I have tried this on two identical boards.
Am I doing everything correctly when connecting and uploading to the board?
Gunnar
