We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
"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...