2025-07-01 9:13 PM
I have two stm32f429 Discovery boards. I programmed one of the board using cube ide; the output of which was as expected. Then using cube programmer I read and saved the bin file from that board. Using that bin file I programmed my another board which was successful, but there was no output.
Is there any another method to do this?
I am doing this because I want to save bin file from my custom board and program it to another board and I don't have original code.
2025-07-01 10:16 PM
Besides the flash, there is also the user/option bytes area. You may want to compare those with STM32CubeProgrammer.
Otherwsie, if you save the *entire* flash as .bin, the boards shall behave identically.
The only exception is if the firmware actively works against that, like by evaluating the unique device id etc..
hth
KnarfB
2025-07-01 10:24 PM
I compared both the files and it says no difference found. But no output in second board.
2025-07-01 10:37 PM
So probably not recovering and writing enough. There's 2MB of FLASH, so 0x08000000 to 0x081FFFFF
2025-07-01 10:40 PM
Same model / build / revision of STM32F429I-DISCO ? Not a DISC1 ?
>>But no output in second board.
Screen? Or USART/VCP ?
2025-07-01 10:42 PM
Let me check with same model, build and revision.
Currently model and build are same but with different revision.
2025-07-01 10:58 PM
I tried with same model, build and revision, but still no output.
2025-07-01 11:05 PM
>>but still no output..
Output to what? Illustrate..
Where did this code come from? Stuff you built yourself and lost, or lifted from some place else?
Third-Party stuff might be intentionally board locked, use OTP, Option Bytes, or Unique ID
Custom Board or STM32F429I-DISCO, what are we talking about here?
Disassemble / Debug, understand how it's functioning, how far it gets.
Stuck in Error_Handler() or HardFault_Handler(), stop in debugger, ascertain where it's hung-up
Check Solder-Bridges
Own task of understanding WHY it's not working, it's not stuff any of us are working on.
2025-07-02 3:32 AM
Did you even understand what I want to do?? Or should I explain it again!
I'm using .bin file to program my board. The output of which should be simple PWM pulse which I'm not getting.
So its not a hardware issue as I'm using STM Discovery boards to test my setup. Since its a bin file I can not check in Disassemble / Debug nor it can be Stuck in Error_Handler() or HardFault_Handler().
It can be a problem of Cube programmer not programming properly or steps I'm following are not correct.