This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to load bin file to memory

Hello,

I use STM32F103 uC and I want to load pattern file to memory at address 0x08010000 (FLASH area). I want to do it in simulation.
I converted my pattern bin file to hex format by using bin2hex from www.ht-lab.com/.../bin2hex.html:

bin2hex.exe pattern.bin output.hex -s 0801 -o 0000

When I use type the command: Load "C:\\output.hex" in Keil Command window I do not get answer. In the Memory window data do not change.
Please help how to do this.

Parents
  • You can't just load to flash. You basically need to load into RAM, and then jump to some code that performs IAP to write the data into flash. So basically the same route as when storing a program into flash by first specifying a flash algorithm for the memory region.

Reply
  • You can't just load to flash. You basically need to load into RAM, and then jump to some code that performs IAP to write the data into flash. So basically the same route as when storing a program into flash by first specifying a flash algorithm for the memory region.

Children