Skip to main content
Bevan.1
Associate
June 17, 2022
Question

How can I retrieve the firmware that has been loaded onto a device?

  • June 17, 2022
  • 1 reply
  • 1321 views

The STM32 Cube Programmer lets me read memory, but the address is required. It is not clear *where* the DFU loader puts a .hex file. What I want is to recover the hex file.

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
June 17, 2022

What STM32 are we talking about?

Typically 0x08000000 is the FLASH base address

The tools would need to read out the binary data, and save that back out to a .BIN or .HEX

Your build process should output .MAP files during the LINK, and the .HEX/,ELF would be extracted/converted into a .DFU file. The DFU file is an object format, ST has fully documented the format in the past.

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