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

Copy function in RAM

Hi!

I hope that you still fine.

I use the LPC2138,and i know that all functions which i write stay in ROM.
Now i triying to copy one of these functions to the RAM,but i don't find the solution.
I have triying with memcpy,but unsuccessfully.
Can anyone help me?

Thanks
Best regard

Parents Reply Children
  • Theirs should not be any problem in using IAP function in evaluation version.
    You dont need to copy any code to RAM for IAP.

    Just be sure your IAP execute routine is their.
    If its in assembly normally it will hve .

    Store your present registers along with return address.

    a call to location (0x7FFFFFF1). This will give a call in thumb mode.*** This is a branch to the IAP function.

    Relaoad values of registers from stack Return to mail program.

    Also be sure your buffer (RAM) is word alligned.

    Suvidh