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

execution in ram memory

can we execute the code in ram memory in lpc915...if yes,how?

Parents
  • Hi,

    according to what i understood i think u want to copy some specific code from ROM to RAM area and execute from there right ?

    If that's the case I think 1st you got to copy the code from ROM to RAM,
    have a function pointer pointing to the RAM location (eg 0x700 ) and call the function pointer.

    For doing the above things its better if you have the code to be copied from ROM inside a function.

    Then make the following modifications in the linker file.
    1. Assign a (ROM) address for this function in the linker file.
    2. Reserve some RAM location starting from the 0x700 (based on the example, but could be any RAM address) for copying the ROM code. Note the reserved RAM memory must to enough to store the entire function.

    Hope this helps
    Do correct me if I am wrong.

Reply
  • Hi,

    according to what i understood i think u want to copy some specific code from ROM to RAM area and execute from there right ?

    If that's the case I think 1st you got to copy the code from ROM to RAM,
    have a function pointer pointing to the RAM location (eg 0x700 ) and call the function pointer.

    For doing the above things its better if you have the code to be copied from ROM inside a function.

    Then make the following modifications in the linker file.
    1. Assign a (ROM) address for this function in the linker file.
    2. Reserve some RAM location starting from the 0x700 (based on the example, but could be any RAM address) for copying the ROM code. Note the reserved RAM memory must to enough to store the entire function.

    Hope this helps
    Do correct me if I am wrong.

Children