Forum Discussion
rkaib
Occasional Contributor
6 years agohi FJumaah,
that 's what I have done, but the problem is that the data I am reading are different from the data of the hex file
in nios2 I am declaring memory as:
#define mem (unsigned char*) ONCHIP_MEMORY_0_BASE, then
I am reading: printf("%d, %d, %d\n\r",*mem,*(mem+1), *(mem+2) );
but the data printed on the console are different if you compare them with the first 3 data of the hex file and I get different data when I power on again the board, really strange!!!
would you have any clue about it