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.

Debug error at AM3359 ICE Board

Other Parts Discussed in Thread: AM3359

Hi, I'm trying to analysis code for 'ecat_appl', a full feature EtherCAT application on AM3359 ICE board. (you can see here about this app)

When I run this app by debugging mode on CCS v5.2, everything works well until 'task1' is created.

But, in 'task1', 'bsp_set_pru_firmware((Uint32*)FrameProc,sizeof(FrameProc),(Uint32*)HostProc,sizeof(HostProc))' at line 165, makes error every time.

I tried to step over, but the error below is printed :

[CortxA8] = 0x00000000 PC(R15) = 0x8001c18c
PSR = 0x2000019f
Exception occurred in ThreadType_Main.
Main handle: 0x0.
M[CortxA8] ain stack base: 0x80035524.
Main stack size: 0x2000.
R0 = 0xffffffff R8 = 0x8001ac19
R1 = 0x8001ac18 R9 = 0x00000001
R2 = 0x00007fff R10 = 0x00000001
R3 = 0x0000000a R11 = 0x80023028
R4 = 0x00000000 R12 = 0x0000134f
R5 = 0x00000000 SP(R13) = 0x8002[CortxA8] 2fc8
R6 = 0x00007fff LR(R14) = 0x8000e9e8
R7 = 0x00000000 PC(R15) = 0x8001c18c
PSR = 0x2000019f
xdc.runtime.Error.raise: terminating execution

What should I do?

  • Hello,

    I guess you are working on Industrial sdk version 1.0.0.5 . aren't you?

    Can you share the map file for this build ?

    Thanks,

    Shahid

  • I report my solution to deal with this error.

    If anyone meet the error like this, check your initial script file (.gel file) that is used to initialize ICE board.

    I used $sdk$\tools\gel\ICE\TMDXICE3359.gel file, and it sometimes make some error while debugging.

    Now I use $sdk$\starterware\tools\gel\AM335x_EVM.gel file, and everything works well :)