Hello Support,
For the TMS570LC4357 device, for testing Bank 7 ECC Selftest, we are supposed to read special OTP addresses 0xF008E3F0 and 0xF008E3F8.
Following is the code sequence I have used :
; R1, R2, R7 contents are as shown below before the following code executes
; R1 = 0x9ABCDEF3
; R7 = 0xF008E3F4
; R2 = 0x0
LDR R0, [R7, #0x08]
CMP R1, R0 ; Is it always guaranteed to succeed due to AXI Bus Delay for OTP Read Cycle from Cortex-R5?
BNE LOOP
MOV R0, #0x01
JMP SKIP
LOOP: MOV R0, #0
B #-8
SKIP: MOV R2, #0x1
Sometime is see that the code gets stuck in the "B #-8" [Infinite Loop].
Do you think because "LDR R0, [R7, #0x08]" is using AXI Bus, there is some delay required before "CMP R1, R0" instruction?
If yes, some explanation.
Thank you.
Regards
Pashan