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

code jump - flash to iram

hi,
We are facing a problem in software (lpc3250 controller). Executable code is running from external nor_flash. We need to execute two statements from internal ram of processor then PC has to jump to nor_flash.
Control of program counter (PC) has to move like this: nor_flash -> iram -> nor_flash
implementing this in c language is possible?

Parents
  • Don't think of assigns to PC.

    Think about use of function pointers or normal function calls.

    You can even get the linker to set up everything to copy the contents of a function into RAM so the reset of the program can call this function without knowing it is located in RAM.

Reply
  • Don't think of assigns to PC.

    Think about use of function pointers or normal function calls.

    You can even get the linker to set up everything to copy the contents of a function into RAM so the reset of the program can call this function without knowing it is located in RAM.

Children
No data