cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F105: same firmware loaded to two devices but the one of them is not working as expected

Einar
Associate II

Hello,

I read out bin file from MCU STM32F105 and tried to write to the same new MCU, but on new MCU firmware do not work correctly.

Different is between those mcu the old have marked CHN GQ and new one have MYS 99

Any ideas where is the problem?

6 REPLIES 6
SofLit
ST Employee

Hello,

It could be something related to the option bytes.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Andrew Neil
Evangelist III

I don't know the STM32 behaviour if you read a locked chip - does the read just fail? Or does the read proceed, but give rubbish data?

Also, perhaps the owner of the code has done something "clever" to prevent copying; eg, keying to the unique ID?

 

SofLit
ST Employee

Did you retrieve the all Flash content?

As it could be something related to the option bytes (different values). You can check and compare the content of the option bytes using STM32CubeProgrammer tool going to OB menu:

SofLit_0-1710861099047.png

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Perhaps review in the context of the rest of the circuit.

Does the external clock start? Any signs of life?

BOOT0 pulled LOW?

Perhaps review the code, check if that's got the potential to work properly, or has some secondary dependencies.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Chip is not locked, and firmware is working but partially, indicator is blinking, but MODE button do not work.

Old chip is damaged, one pin is broken I have resoldered new chip to old pcb, so problem can be only with new chip or firmware.