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, My boot code copys all code from Flash into faster SRAM for execution on startup. How can I relocate all of the code to ensure the jumps work. I've read App note 138 about relocating functions but doing it this way would mean that I have to relocate each C file (there's 19 in this project) and the project would become unmantainable as you have to specify a store and execution address which will change with each code update. Is it possible to relocate an entire code space? Any suggestions greatly appreciated. Thanks Mark.
Could you use hex2bin and bin2hex to remap the hex records? You could link the code at the desired runtime address and use the loader to put it in flash at the altered hex record address.