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
Hi ChrisMy name is Stephen and I work at Arm.Glad to hear you are making progress with your Cortex-M4-based project. Are you using Arm Development Studio?I'm not sure what you mean by "manipulate the RAM". Please can you explain what you are trying to achieve?Stephen
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.