Page 1 of 1

Downloading firmware from STM32F103C8 Blue PIll

Posted: Mon Jan 30, 2023 10:53 pm
by skematic
Hi all,

Years ago I have programmed a blue pill to function as my door alarm unit, which is running smoothly for years. Now I want to duplicate the functionality of this to a new blue pill. I have the source code, but it no longer compiles because it relies on old libraries of which I don't remember the versions. I have tried updating the code to work with the latest libraries, but reading the SD seems to be very slow. I don't intend to change the functionalities, so I figured the best way is to just make an exact copy of the original. I have done this with avrdude before with arduino boards but never with stm32's. Is there a way to download the firmware and upload it to another blue pill? I'm using CP2102 serial.

Best regards

Re: Downloading firmware from STM32F103C8 Blue PIll

Posted: Mon Jan 30, 2023 11:44 pm
by skematic
OK digged in the STM32Cube documentation, and it's actually quite straight forward

Code: Select all

cd "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin" 
.\STM32_Programmer_CLI.exe -c port=COM7 -r 0x08000000 65536 C:\read.bin 
.\STM32_Programmer_CLI.exe -c port=COM7 -w C:\read.bin 0x08000000 

Re: Downloading firmware from STM32F103C8 Blue PIll

Posted: Thu Feb 02, 2023 6:49 am
by annaeva
I want to know what upload method did you select?

Re: Downloading firmware from STM32F103C8 Blue PIll

Posted: Thu Feb 16, 2023 3:19 am
by originalcooing
Making an identical duplicate of the original seems like the best course of action as I have no plans to alter the functionality. I've used avrdude to accomplish this in the past with Arduino boards, but I've never used a stm32. Which upload technique did you choose?

Re: Downloading firmware from STM32F103C8 Blue PIll

Posted: Tue Mar 14, 2023 1:15 am
by Nothey
Same for me. In the past, when working with Arduino boards, I utilized avrdude to achieve this.