Fetching original flash contents from the STM32F4-Discovery

Before, reprogramming the flash memory with my own software, I want to fetch the original contents, for two purposes:

  • Disassembling and study
  • Backup

Connect to the board with openocd:

Connect to the openocd telnet server:

For some reason, I have to first use the flash info command in order for the other flash display commands to work correctly (otherwise they show zero addresses and sizes):

Now, we are ready to dump the whole flash to a binary image and to exit:

Perfect! Ready for disassembling! :-)

Leave a Reply

Your email address will not be published. Required fields are marked *