Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
Hello together,
I have an LPC4078. I made measurements with it and everything goes into the RAM. Now I want to manipulate the RAM. Is there a pointer for that? Is the any other possibility?
Thank you and greetings
Chris
Hey Stephen,
I just saw that I am in the wrong forum. No I don't use the Arm Developement studio.
I want to alter what is written in the ram or move it from one point to another. Basically I am searching for the pointer which one I can do that. Or is that not possible?
Thanks in advance.
Pointers are just numbers.
uint32_t *src = (uint32_t) 0x20000000; uint32_t *dst = (uint32_t) 0x20010000; uint32_t temp = dest[100]; // save original dest word 100 memcpy(dst, src, 32768); // copy 32k bytes from start of RAM to later in RAM. dest[100] = temp; // restore that one word to old value
I believe that all Cortex-M processors have their internal RAM at 0x20000000.
You must of course be careful not to overwrite RAM that is already in use by other code.