Hello,
I have been working on the LBIST/STC on a TMS570 micro and am seeing a very strange problem.
After setting up all the STC registers, I use the WFI instruction, but instead of performing the LBIST and resetting, the code just plows right past it and into an infinite loop (which I implemented to catch this situation).
I had this code running and working before, but our startup code changed, so it is being re-implemented.
So, my question is, what would allow the WFI instruction to be "ignored", or what other startup procedure might have to run prior to the LBIST?
I already know there shouldn't be any interrupts occurring since none are enabled at this point, and it skips over the WFI instruction regardless of if the debugger is connected or not. The ESM error flag does not indicate there is any error. The values of the STC registers are as follows.
GlbCtrl0 - 0x007D0001
GlbCtrl1 - 0x0000000A
Tpr - 0xFFFFFFFF
CAddr - 0x00000000
CICnt - 0x00000000
GStat - 0x00000A00
FStat - 0x00000000
all MISR registers = 0x00000000
Stcscscr - 0x00000005