Other Parts Discussed in Thread: HALCOGEN
Hi,
My customer is reporting an issue with EEPROM access using FEE driver generated HalCoGen.
Issue:
SCM time-out error is generated (ESMSR7 = 0x0800000) and CPU stops working.
When the issue happens, CPU repeatedly writes and reads 128 blocks of data (1 block=40bytes) to/from Flash bank7.
Here is all register dump after the issue.
registers.xlsx
ESMSR7 register is line#2878. The value is 0x0800000 which means “SCM Time-out Error”
I checked SCM registers (line#3160 to #3166) and found SCMIAERR1STAT=0x00000060.
This means “Request to Response Timeout” at IA5 and IA6.
According to TRM table 4-4, IA5 and IA6 are “CPU AXI-M Read” and “CPU AXI-M Write”, respectively.
TRM section “4.3.5 Interconnect Timeout” tells me they are accept-to-response timeout at these IAs.
Questions:
1) What is the cause of these timeout error? Is there any information to debug further?
2) According to customer, CPU stops working after the error. I guess this is simply because the error is not cleared.
If so, what should be handled by customer application? Below steps are enough?
i) write 0xA to SCMCNTRL[3:0] to clear SCM error
ii) write ‘1’ to clear corresponding bit in ESMSR7
Any other points need to be checked?
Thanks and regards,
Koichiro Tashiro