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

Memory and Linker Scripts

Hi,

I would like to copy part of my code to a specific area in memory of the microcontroller. How would I do this? Do I have to develop my own linker script or is there an easier way to do this?
Thank you,
Michael

Parents
  • "run a program on a MCU and copy part of the program to Flash"

    I understand that it's quite common practice for ARM-based systems to store their code in Flash, but copy it to RAM for execution (cos it's faster) - so there should be planty of examples about for doing that.
    Have you tried the support section of ARM's website?

    Or are you trying to create your own firmware update routine, to reprogram your Flash?
    In this case, it's a matter of reading the data sheet(s) for the particular flash device(s) you have in mind - they will tell you the necessary erase & programming algorithms.
    You will probably also find example code on the manufacurer's website...

Reply
  • "run a program on a MCU and copy part of the program to Flash"

    I understand that it's quite common practice for ARM-based systems to store their code in Flash, but copy it to RAM for execution (cos it's faster) - so there should be planty of examples about for doing that.
    Have you tried the support section of ARM's website?

    Or are you trying to create your own firmware update routine, to reprogram your Flash?
    In this case, it's a matter of reading the data sheet(s) for the particular flash device(s) you have in mind - they will tell you the necessary erase & programming algorithms.
    You will probably also find example code on the manufacurer's website...

Children
No data