Skip to main content
SPesc.1
Associate II
April 6, 2023
Question

Can I replace STM32F103 to STM32F302 chip on bluepill?

  • April 6, 2023
  • 14 replies
  • 3948 views

I have successfully flashed my BluePill Board with an STM32F103 chip using the STLINK interface of a Nucleo board. Now, I have replaced the chip with an STM32F302CBT6 and am trying to flash it. However, I get the error message 'Target no device found. Error in initializing ST-LINK device. Reason: No device found on target.' when attempting to flash the new chip. What can I do to flash the new chip successfully? Are there specific changes to the hardware or software that I need to make to support the new chip?

This topic has been closed for replies.

14 replies

AScha.3
Super User
April 6, 2023

i made one with a STM32F303CBT6 . working fine.

so probably you have a solder bridge or bad contact - or something on the bottom side is wrong.

if everything soldered good, it will work.

before de-soldering with hot air i put some silicon glue on the bottom side,to keep parts in place.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SPesc.1
SPesc.1Author
Associate II
April 6, 2023

Thank you.

I have now replaced the 302 chip with the 103 chip again. The 103 chip can be flashed without any problems. However, when I solder the 302 chip back on, flashing is not possible. I have checked each solder joint under the microscope twice.

AScha.3
Super User
April 6, 2023
"If you feel a post has answered your question, please click ""Accept as Solution""."
SPesc.1
SPesc.1Author
Associate II
April 6, 2023

I am using the Cube IDE. However, I am unable to connect to it. Even with the ST-Link utility, I am unable to establish a connection.

AScha.3
Super User
April 6, 2023

probably this F302 is defective - have another ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
SPesc.1
SPesc.1Author
Associate II
April 6, 2023

I have gone through the document and I believe that it should work. Now, I have installed another new 302 with the same result. Is there a country restriction or something like that? I purchased the controllers from Mouser.

SPesc.1
SPesc.1Author
Associate II
April 6, 2023

Is there a possibility that I have received three defective controllers at once?

AScha.3
Super User
April 6, 2023

seems unlikely to me . but your F302 not connecting to stlink - suspicious .

 i never got bad or defective chips from mouser .

btw

on this pill board was a "not STM " F103 , correct labeled CKS32F103 . i removed it and repair a stlink, than had a dead stm32f103 . flash firmware, update, working again. (just for fun..) ordered F303 for 2.19 from aliexpress, soldered on pill board - working . is genuine STM F303.

maybe you should try a chinese F303....

https://de.aliexpress.com/item/1005004121242353.html

"If you feel a post has answered your question, please click ""Accept as Solution""."
SPesc.1
SPesc.1Author
Associate II
April 6, 2023

I will get a few 303s from the local supplier and then test them.

SPesc.1
SPesc.1Author
Associate II
April 15, 2023

Yesterday, I received three pieces of STM32F303. Full of anticipation, I soldered one chip and tested it. Unfortunately, the result did not change. Still the same error message. After spending the night on the internet trying to find a solution, I soldered another chip onto my custom PCB, but it didn't change anything. During one attempt, I was holding the PCB in my hand and accidentally touched the SWDIO, SWDCLK, V+ and V- pins that connect the custom PCB to the Nucleo board. Suddenly, the chip was programmable. It seems that I'm missing pull-ups.