Hello,
I run into a problem using pointers on an array. In my application I try to burn SPI FLASH with program I downloaded into array in SDRAM (this application is strictly for testing). This is a pseudo code of a program:
int FLASH_Buffer[40000];
int *ReadPtr, *WritePtr;
WritePtr = FLASH_Buffer;
for loop {
write to FLASH;
read from FLASH;
validate;
WritePtr +=64;
ReadPtr +=64;
}
The problem is that the pointers advanced in steps of 256 instead of 64, as defined in program. I could change the number from 64 to 16, but I need to understand why does this happens. Both buffer and ponter to budder are integers.
Thank You