Hi all,
I'm currently working with the EVMC6678LE, and I've recurrently found a problem related to IdleTask, both on core_0 and core_1..7
The error happens after a few miliseconds before I load the .out's and run all the cores:
[C66xx_0] MCSDK IMAGE PROCESSING DEMONSTRATION
[C66xx_0]
[C66xx_0] QMSS successfully initialized
[C66xx_0] CPPI successfully initialized
[C66xx_0] PA successfully initialized
[C66xx_0] EVM in StaticIP mode at 192.168.0.225
[C66xx_0] Set IP address of PC to 192.168.0.98
[C66xx_0] Starting webfiles_add
[C66xx_0] Done webfiles_add
[C66xx_0] HTTP Status Added
[C66xx_0] Debug Message Level Added
[C66xx_0] Last while
[C66xx_0] PASS successfully initialized
[C66xx_0] Ethernet subsystem successfully initialized
[C66xx_0] Ethernet eventId : 48 and vectId (Interrupt) : 7
[C66xx_0] Registration of the EMAC Successful, waiting for link up ..
[C66xx_0] Network Added: If-1:192.168.0.225
[C66xx_0] Service Status: HTTP : Enabled : : 000
[C66xx_6] A0=0xc8e41000 A1=0x0
[C66xx_6] A2=0x0 A3=0x804a5254
[C66xx_6] A4=0x803823e0 A5=0x804a5600
[C66xx_6] A6=0x0 A7=0x0
[C66xx_6] A8=0x15a00000 A9=0x1
[C66xx_6] A10=0x803823e0 A11=0x1d750300
[C66xx_6] A12=0x801c607c A13=0x1d750300
[C66xx_6] A14=0x0 A15=0x2
[C66xx_6] A16=0xc21a980 A17=0xc
[C66xx_6] A18=0x804b996c A19=0x20
[C66xx_6] A20=0x0 A21=0x0
[C66xx_6] A22=0x804c03cc A23=0x804c0184
[C66xx_6] A24=0x804c0184 A25=0x804c0184
[C66xx_6] A26=0x804c0184 A27=0x804c0184
[C66xx_6] A28=0x804c0184 A29=0x804a5010
[C66xx_6] A30=0x0 A31=0x80381a2c
[C66xx_6] B0=0x804b9928 B1=0x0
[C66xx_6] B2=0x0 B3=0x0
[C66xx_6] B4=0x80382398 B5=0x1
[C66xx_6] B6=0x159 B7=0x1
[C66xx_6] B8=0x80382388 B9=0x15000102
[C66xx_6] B10=0x801d4158 B11=0x80382398
[C66xx_6] B12=0xe B13=0x80383270
[C66xx_6] B14=0x801000 B15=0x804b90b8
[C66xx_6] B16=0x1 B17=0x2baa8059
[C66xx_6] B18=0x80384e28 B19=0x8
[C66xx_6] B20=0x80384dc0 B21=0x2
[C66xx_6] B22=0xf B23=0x0
[C66xx_6] B24=0x812cda7a B25=0x40010203
[C66xx_6] B26=0x14c00 B27=0x804c02b8
[C66xx_6] B28=0x804c0ca8 B29=0x804c02b8
[C66xx_6] B30=0x0 B31=0x8042
[C66xx_6] NTSR=0x1020e
[C66xx_6] ITSR=0xf
[C66xx_6] IRP=0x801d6c88
[C66xx_6] SSR=0x0
[C66xx_6] AMR=0x0
[C66xx_6] RILC=0x0
[C66xx_6] ILC=0x0
[C66xx_6] Exception at 0x80382414
[C66xx_6] EFR=0x2 NRP=0x80382414
[C66xx_6] Internal exception: IERR=0x18
[C66xx_6] Opcode exception
[C66xx_6] Resource conflict exception
[C66xx_6] ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0x801d6c88, sp = 0x804b90b8.
[C66xx_6] To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
[C66xx_6] xdc.runtime.Error.raise: terminating execution
Opening the disassembly window at the address 0x80382414, that seems to be related to ti.sysbios.knl.Task:
ti_sysbios_knl_Task_Object__table__V:
80382340: 803827A8 || [ A1] MVK.S1 0x704f,A0
80382344: 803827A8 [ A1] MVK.S1 0x704f,A0
80382348: 00000005 LDHU.D1T1 *-A0[0],A0
8038234c: 00000020 || BPOS.S1 ti_sysbios_knl_Task_Object__table__V (PC+0 = 0x80382340),A0
80382350: 804B8A58 [ A1] CMPEQ.L1 -4,A18,A0
80382354: 00000001 NOP
80382358: 00000000 || NOP
8038235c: 00002000 NOP 2
80382360: 804B6AA0 [ A1] CMPLTDP.S1 A27:A26,A19:A18,A0
80382364: 00000000 NOP
80382368: 801C2C80 [ A1] MPY.M1 A1,A7,A0
8038236c: 00000000 NOP
80382370: 00000000 NOP
80382374: 00000000 NOP
80382378: 804A55E0 [ A1] SUB.S1X A18,B18,A0
8038237c: 00000001 NOP
80382380: 803827A8 || [ A1] MVK.S1 0x704f,A0
80382384: 8048A21A [ A1] ADDSP.L2 B5,B18,B0
80382388: 80382780 [ A1] MPYHLU.M1 A1,A14,A0
8038238c: 80382780 [ A1] MPYHLU.M1 A1,A14,A0
80382390: 00000000 NOP
80382394: 00000001 NOP
80382398: 804B9048 || [ A1] EXT.S1 A18,28,16,A0
8038239c: 00000001 NOP
803823a0: 00000000 || NOP
803823a4: 00000800 MPY32.M1 A0,A0,A0
803823a8: 804B8AA0 [ A1] CMPLTDP.S1 A29:A28,A19:A18,A0
803823ac: 00000000 NOP
803823b0: 801EC780 [ A1] MPYHLU.M1 A22,A7,A0
803823b4: 00000000 NOP
803823b8: 00000000 NOP
803823bc: 00000000 NOP
803823c0: 804A55F0 [ A1] MPYSP2DP.M1X A18,B18,A1:A0
803823c4: 00000001 NOP
803823c8: 80382780 || [ A1] MPYHLU.M1 A1,A14,A0
803823cc: 8048A225 [ A1] LDB.D1T1 *+A18[5],A0
803823d0: 80382788 || [ A1] SET.S1 A14,1,7,A0
803823d4: 80382788 [ A1] SET.S1 A14,1,7,A0
803823d8: 00000001 NOP
803823dc: 00000002 || NOP
803823e0: 804B9A58 [ A1] CMPEQ.L1X -4,B18,A0
803823e4: 00000001 NOP
803823e8: 00000000 || NOP
803823ec: 00000800 MPY32.M1 A0,A0,A0
803823f0: 804B92A0 [ A1] XOR.S1X -4,B18,A0
803823f4: 00000000 NOP
803823f8: 801DD680 [ A1] MPYHULS.M1X A14,B7,A0
803823fc: 00000000 NOP
80382400: 00000000 NOP
80382404: 00000000 NOP
80382408: 804A5600 [ A1] MPYID.M1X -14,B18,A1:A0
8038240c: 00000001 NOP
80382410: 80382788 || [ A1] SET.S1 A14,1,7,A0
80382414: 8048A242 .word 0x8048a242
80382418: 72547663 [!B2] SHRU2.S2X A21,0x3,B4
8038241c: 00656361 || .word 0x00656361
Removing the default idle task solves the problem. On .cfg file:
Task.enableIdleTask = false;
Task.allBlockedFunc = Idle.run;
Am I looking at a sysbios bug here? This happens everytime the IdleTask is enabled and I increase stack and heap size, and rellocate to DDR3 in order to fit