Other Parts Discussed in Thread: HALCOGEN,
Hello,
I'm currently analyzing startup code for the TMS570LS3137. Similar to the code generated by HALCoGen we use a couple of nop's after a WFI statement (to start SelfTests). In HALCoGen code this can also be found in sys_core.asm _gotoCPUIdle_ . Could you explain the reason why 4 nop's are needed after the WFI instruction? I could not find any hints in the ARM or TI manuals. Are those also needed if the WFI is only called to start a SelfTest or STCTest since the CPU should then do a reset and not continue after WFI?
_gotoCPUIdle_ WFI nop nop nop nop bx lr .endasmfunc
Thank you very much,
Michael