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
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; // save original dest word 100
memcpy(dst, src, 32768); // copy 32k bytes from start of RAM to later in RAM.
dest = 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.