Downloading firmware from STM32F103C8 Blue PIll

Post here first, or if you can't find a relevant section!
Post Reply
skematic
Posts: 2
Joined: Mon Jan 30, 2023 10:46 pm
Answers: 1

Downloading firmware from STM32F103C8 Blue PIll

Post 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
by skematic » Mon Jan 30, 2023 11:44 pm
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 
Go to full post
skematic
Posts: 2
Joined: Mon Jan 30, 2023 10:46 pm
Answers: 1

Re: Downloading firmware from STM32F103C8 Blue PIll

Post 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 
annaeva
Posts: 1
Joined: Thu Feb 02, 2023 6:47 am

Re: Downloading firmware from STM32F103C8 Blue PIll

Post by annaeva »

I want to know what upload method did you select?
originalcooing
Posts: 1
Joined: Thu Feb 16, 2023 3:15 am

Re: Downloading firmware from STM32F103C8 Blue PIll

Post 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?
Nothey
Posts: 1
Joined: Tue Mar 14, 2023 1:11 am

Re: Downloading firmware from STM32F103C8 Blue PIll

Post by Nothey »

Same for me. In the past, when working with Arduino boards, I utilized avrdude to achieve this.
Post Reply

Return to “General discussion”