This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Opcode Exception C674x

Other Parts Discussed in Thread: SYSBIOS

Hi

I am using DSP core of DM814x EVM to run my algorithm. During emulation i have encountered the following exception:-

B18=0x80808080 B19=0x80808080
B20=0x80808080 B21=0x80808080
B22=0x80808080 B23=0x10820900
B24=0x80808080 B25=0x80808080
B26=0x80808080 B27=0x80808080
B28=0x80808080 B29=0x80808080
B30=0x80808080 B31=0x80013d40
NTSR=0x1000d
ITSR=0x0
IRP=0x0
SSR=0x0
AMR[C674X_0] =0x0
RILC=0x8
ILC=0x0
Exception at 0x108326cc
EFR=0x2 NRP=0x108326cc
Internal exception: IERR=0x8
Opcode exception
ti.sysbios.family.c64p.Exception: line [C674X_0] 248: E_exceptionMin: pc = 0x00000000, sp = 0x10823ea0.
xdc.runtime.Error.raise: terminating execution

Now, I have tried to look for the solution on the forum but unable to debug the issue properly. I have used the ROV tool to check the stack overflow but the peak stack values are all fine so there is no overflow. I have also looked the disassembly at NRP=0x108326cc and seems to be fine to me. Here is the view:

108326c0: 1247 MV.L2X A4,B0
108326c2: 19F6 || MVK.D1 0,A3
108326c4: 021808D9 || CMPGT.L1 0,A6,A4
108326c8: 007FBAA8 || MVK.S1 0xffffff75,A0
108326cc: E9E6 [!B0] MVK.L1 1,A3
108326ce: F24E || MV.S1X B4,A7
108326d0: 029918DB || CMPGT.L2X 8,A6,B5
108326d4: FFFF1EC2 || .word 0xffff1ec2
108326d8: 018C86E1 OR.S1 A4,A3,A3
108326dc: E12000C3 .fphead n, l, W, BU, nobr, nosat, 0001001
108326e0: 0626 || MVK.L1 0,A4
108326e2: FAE7 XOR.L2 B5,1,B5
108326e4: 008CBFFA OR.L2X B5,A3,B1
108326e8: 5000A358 [!B1] MVK.L1 0,A0
108326ec: C1C7D829 [ A0] MVK.S1 0xffff8fb0,A3
108326f0: D21002E4 || [!A0] LDW.D2T1 *+B4[0],A4
108326f4: C1C000E9 [ A0] MVKH.S1 0x80010000,A3
108326f8: C0000C92 || [ A0] B.S2 C$L47 (PC+100 = 0x10832744)
108326fc: E0200000 .fphead n, l, W, BU, nobr, nosat, 0000001
10832700: C40CAA64 [ A0] LDW.D1T1 *+A3[A5],A8
10832704: 0280A35A MVK.L2 0,B5
10832708: C20DB02A [ A0] MVK.S2 0x1b60,B4
1083270c: B669 CMPEQ.L2X B5,A4,B0
1083270e: 0C6E NOP 1
10832710: 31918264 [!B0] LDW.D1T1 *+A4[12],A3
10832714: 2084A358 [ B0] MVK.L1 1,A1
10832718: 020DB02A MVK.S2 0x1b60,B4
1083271c: E1000000 .fphead n, l, W, BU, nobr, nosat, 0001000
10832720: 00002000 NOP 2
10832724: 30947A78 [!B0] CMPEQ.L1X A3,B5,A1
10832728: 92900264 [!A1] LDW.D1T1 *+A4[0],A5
1083272c: 928C1FDA [!A1] OR.L2X 0,A3,B5
10832730: 01C7D828 MVK.S1 0xffff8fb0,A3
10832734: 01C000E8 MVKH.S1 0x80010000,A3
10832738: 807FBAA8 [ A1] MVK.S1 0xffffff75,A0
1083273c: 040CAA64 LDW.D1T1 *+A3[A5],A8
10832740: 00006000 NOP 4

Here is the view of the B3  Register disassembly location i.e 0x10816bb8

0816b94: 0200116D || LDW.D2T1 *+B14[17],A4
10816b98: D587 || MV.L2X A11,B6
10816b9a: 08EA [ A0] BNOP.S1 C$L1 (PC+70 = 0x10816bc6),0
10816b9c: EA208303 .fphead n, l, W, BU, br, nosat, 1010001
10816ba0: D0376410 [!A0] B.S1 EDMA3_DRV_setPaRAMEntry (PC+113440 = 0x108326c0)
10816ba4: C580A358 [ A0] MVK.L1 0,A11
10816ba8: 02281FDA OR.L2X 0,A10,B4
10816bac: C22C4EAA [ A0] MVK.S2 0x589d,B4
10816bb0: C208416A [ A0] MVKH.S2 0x10820000,B4
10816bb4: 01860162 ADDKPC.S2 C$RL2 (PC+24 = 0x10816bb8),B3,0
C$RL2:
10816bb8: 022C4EAA MVK.S2 0x589d,B4
10816bbc: 0208416B MVKH.S2 0x10820000,B4
10816bc0: 0580A359 || MVK.L1 0,A11
10816bc4: 024E || MV.S1 A4,A0

Can you please provide some clue of the problem. One thing i have observed is that the PC =0x0000000. But i am unable to reach on any conclusion.

Please provide help

Thanks

Abhishek