My application is jumping to ISR_ILLEGAL during a call to DELAY_US which in turn calls DSP28x_usDelay
from: f2802x_examples.h
#define DELAY_US(A) DSP28x_usDelay(((((long double) A * 1000.0L) / \
(long double)CPU_RATE) - 9.0L) / 5.0L)
Looking at the assembly:
008000: EC8E SBF -114, EQ
008001: 5413 CMP AL, @0x13
008002: F3EC XOR *+XAR4[5], AH
008003: B57513EB RPTB #$+119, *+XAR3[5]
008005: C7BC MOVB AH.LSB, *0--
If I step through the assembly, I can step to the RPTB instruction, and on the next step the illegal operation is generated / I end up in ISR_ILLEGAL
Any suggestions on what the issue may be or how to debug further?