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

Loading_Hex_FIle_executing in RAM

Hi,
my programme is loaded to flash memory of my arm, but it is executing in arm's ram (i achived it using scatter file). I generated a hex file. I also generated hex file for same programme which is loaded to flash and is executing in flash. All above i did in keil uVision. Both hex files are the same. I want to load hex file in an other way then keil IDE. And here is my question: is it possible that hex file would have information where code should be executed. or is it caused by keil ide. i also would like to know how it works in keil and is it possible to execute code in arm's ram if i would load a hex file even with a simple programme.
Thanks in advance

Parents
  • You can tell the linker that an object file should have the code stored in flash, but copied into RAM and run from RAM. This is similar to how initialized variables gets copied from flash into RAM before main() is called.

    You can never use a hex file that places the code directly into RAM, since that information will be lost when you turn off the unit. Loading directly to RAM is only applicable when debugging.

Reply
  • You can tell the linker that an object file should have the code stored in flash, but copied into RAM and run from RAM. This is similar to how initialized variables gets copied from flash into RAM before main() is called.

    You can never use a hex file that places the code directly into RAM, since that information will be lost when you turn off the unit. Loading directly to RAM is only applicable when debugging.

Children