Hi,
I am using SH72531 board. I want to write/read some data in EEPROM. While copying the FCU firmware from FCU firmware area to RAM , I am getting the following errors :
Memory Access Error(Address:H'0040200C)Memory Access Error(Address:H'80FF8000)
Here is the code snippet :
INT_FCU_FIRM = 0x00402000; INT_FCU_RAM = 0x80FF8000; INT_FCU_SIZE = 0x00001FFF;
sen = (unsigned int *)INT_FCU_FIRM; rec = (unsigned int *)INT_FCU_RAM;
while(sen <= (unsigned int *)(INT_FCU_FIRM + INT_FCU_SIZE)) { *rec++ = *sen++; }
I am getting the error while the execution flow enters the while loop i.e for the statement *rec++ = *sen++.
Is there anything wrong in the code or I am missing some settings?
Regards
Ali
SH2A-FPU software simulator does NOT simulate on-chip hardware. It does not know which memory areas are used for FCU functionality. You can map FCU RAM and EEPROM as memory areas in SH2A simulator. You can NOT test FCU command execution.