Question
F42x MCU flash program read operation gets wrong results.
my read flash reading is bellowing:
unsigned short * pAddr = (unsigned short * )0x08004000;
unsigned short read_value=0;
for(int i=0;i<10;i++)
{
read_value = *(pAddr +i);
printf(.....,read_value );
}
---------------
I add read_value to watch window ,however, read_values are not corresponding to data in flash.
pAddr+i is 0x08004002 but not 0x08004001 in watch window when pAddr = 0x08004000 and i=1;
pAddr+i is 0x08004004 but not 0x08004002 when pAddr = 0x08004000 and i=2;
and the read_value =*(pAddr+i ) results in read_value wrong data.
Why pAddr+i is not expected ?
