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.

CCS/TMS320C6678: Exception handling error

Part Number: TMS320C6678


Tool/software: Code Composer Studio

Dear TI expert,

My program worked well before until I added a little application related code (no register operation) today. The CCS Console gave the following message:

External exception happened. MEXPFLAG[2]=0x80000000.
External exception happened. MEXPFLAG[3]=0x22000000.
MPU 0 protection violation error
The MSTID 12 (PRIVID 4) triggered MPU error at 0x1f65dce with secure access
Supervisor write fault!
Event 121: PMC_DMPA DMA memory protection fault for L1P
memory protection exception caused by master with ID 4 at 0xe87ef4
Supervisor Write violation
Event 125: UMC_DMPA DMA memory protection fault for L2
memory protection exception caused by master with ID 4 at 0xc606ba
Supervisor Write violation
NRP=0x83d858, NTSR=0x1000d, IRP=0x20b01120, ITSR=0x1, TSCH= 0x0, TSCL= 0xe919c3
B3=0x836d48, A4=0x85ecb9, B4= 0xa, B14= 0x86a508, B15= 0x869b20
Invalid CIO command (65) in the CIO buffer at address (0x86A750) was not recognized. Please check the device and program memory maps.
External exception happened. MEXPFLAG[3]=0x28000000.
Event 123: DMC_DMPA DMA memory protection fault for L1D
memory protection exception caused by master with ID 4 at 0xf1b842
Supervisor Write violation
Event 125: UMC_DMPA DMA memory protection fault for L2
memory protection exception caused by master with ID 4 at 0xd87956
Supervisor Write violation
NRP=0x83d858, NTSR=0x1000d, IRP=0x20b01120, ITSR=0x1, TSCH= 0x0, TSCL= 0xeb2f44
B3=0x836d48, A4=0x85ecb9, B4= 0xa, B14= 0x86a508, B15= 0x869b20

After that, the cpu would lose connection. And I have to power off. Could you please give me some hint on why?

The .map infomation is like below:

MEMORY CONFIGURATION

name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
VECTORS 00800000 00000200 00000200 00000000 RWIX
LL2_RW_DATA_INT 00800200 00000080 00000080 00000000 RWIX
LL2_RW_DATA 00800280 0007fd80 0006a5bb 000157c5 RWIX
SL2 0c000000 00300000 00000000 00300000 RWIX

Thank you very much.

Peijun

  • Hi,

    Can you clarify what new code added? I saw you opened a similar one last year https://e2e.ti.com/support/processors/f/791/t/794545 and resolved. I don't fully understand what caused the exception last time, so I hope get some clue from what new code added this time causing the issue.

    Regards, Eric 

  • Hi Eric,

    Thank you for your reply.

    About the question last year, it's about EMIF settings. Set AWCCR_MAXEXTWAIT larger can solve the problem. It's because PC's PCIE is also reading/writing the same memory in FPGA.

    About this question, I found the problem is that I set CORE1's magic address and launched it without initializing the code on CORE1. That triggered the memory protection process and lead to system crash. 

    Peijun