Hi all,
I am a bit confused on how to use array pointers.
What I want to do is to fill a predefined region starting from a known memory location.
I thought of doing something like that:
Unfortunately, the above doesn't seem to work as expected.Code:/* * I want to fill the region from * [0xa00000000 - 0xA00000400) with zeros */ uint32_t *Array_A[100] = (uint32_t*)0xA000000; for (count=0; count<100; count++) { Array_A[count]=0; }
Could anyone tell me what I am doing wrong?
Thanks a lot in advance.