I've programmed to flash 320F2808 Docking Station). Compilation ok, program ok. Then I run and get illegal_isr(). I've tracked it down to the initialization of the adc (InitAdc) where the initialization goes into DELAY_US(ADC_usDELAY).
File is:
DSP280x_usDelay.asm
Command is:
LRETR
Assembly code is:
0x0080E0: CBDC OR AH,*+XAR4[3]
0x0080E1: FE5D ADDB SP,#93
0x0080E2: 47AD TBIT @SP,#7
0x0080E3: FFDF LSR AH,16
0x0080E4: 2757 MOV PL,*-SP[23]
0x0080E5: 9F5D SUB AH,*-SP[29]
0x0080E6: FED7 SUBB SP,#87
0x0080E7: BEEF MOVB XAR6,#239
0x0080E8: B886 MOVZ DP,#134
0x0080E9: 77FC NOP *+XAR4[7]
0x0080EA: B8FE MOVZ DP,#254
0x0080EB: F16F XORB AH,#0x6F
0x0080EC: 7FDE MOV *+XAR6[3],AR7
0x0080ED: B3B5 MOVH *ARP5,ACC << 1
0x0080EE: 74DB SUB *+XAR3[3],AL
0x0080EF: 7F5D MOV *-SP[29],AR7
0x0080F0: CB7E OR AH,*-SP[62]
0x0080F1: BFDFD56E MOV32 *+XAR7[3],*(0:0xD56E) <= It's either this line or the next that trips illegal_isr.
0x0080F3: 378B MPYU P,T,*--XAR3
Processor is set for 100MHz. I tried to attach my Examples.h but it is not an allowed file type to attach.
Anybody have any ideas? Thanks in advance.