cancel
Showing results for 
Search instead for 
Did you mean: 

Program bin file from Cube Programmer

MGogr.1
Associate III

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.

8 REPLIES 8
KnarfB
Super User

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

I compared  both the files and it says no difference found. But no output in second board.

So probably not recovering and writing enough. There's 2MB of FLASH, so 0x08000000 to 0x081FFFFF

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

Same model / build / revision of STM32F429I-DISCO ? Not a DISC1 ?

>>But no output in second board.

Screen? Or USART/VCP ?

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

Let me check with same model, build and revision.

Currently model and build are same but with different revision.

I tried with same model, build and revision, but still no output.

>>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.

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

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.