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.
I have to copy some code from ROM to RAM for execution. I'm using A51 and BL51. I need part of the code to 'assemble' such that the bytes are located in the ROM area to copy it, but 'compile' such that the addresses reflect the target addresses that it will be copied to. I don't see commands in the assembler or linker that will let me do this. If there are commands, please let me know, or if someone has jury-rigged an alternate method, I'd appreciate it.
There is no way to do this with the compiler/assembler/linker. However, you can use an external utility to massage the HEX file to move the code from its execution address to the target address. Jon