Skip to main content
Visitor II
March 19, 2024
Question

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

  • March 19, 2024
  • 4 replies
  • 2038 views

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?

    This topic has been closed for replies.

    4 replies

    Technical Moderator
    March 19, 2024

    Hello,

    It could be something related to the option bytes.

     

    Super User
    March 19, 2024

    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?

     

    EinarAuthor
    Visitor II
    March 20, 2024

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

    Technical Moderator
    March 19, 2024

    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

     

    Graduate II
    March 19, 2024

    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.

    EinarAuthor
    Visitor II
    March 20, 2024

    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.