7776.assembly 0x8000aec fail for Flash access.zipWe are developing the bootboader based on TI F021 API functions. My current test code tries to erase a section and them program.
I can get
F021_InitializeBanks( ), and F021_ActiveBank_EnableSectors() and F021_SectorErase() without error status.
However after that, during F021_Erase_Check( ), the code flies away.
while( (bytes > 0) )
{ if(*dst1++ != 0xFFFFFFFF)
{ error = 2; }
bytes -= 0x4;
}
Step into the asembly of section above, it flies at instruction LDR R5, [R5] when R5 is 0x00060000, the starting sector address, the flash access.
I attached my linker configuration, map file and flash register value. The devlopment system is IAR.
Just want to see if my register setting or configuration is not correct to make this happen. Thanks,