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.

AM5728: ti.sysbios.family.c64p.Exception

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Hi,

we tried o debug using jtag we are getting the call stack as below shown in the attached image.

And its hard to find out from which function we are getting this exception.

  • Please refer to Ch 6 for the detail description on DSP Exception.

    https://www.ti.com/lit/pdf/spru732

    You can try to set a breakpoint at the entry of ti_sysbios_family_c64p_Exception_dispatch_E() and dump the exception registers.

    NRP register should hold the return address which is where the exception occurred.

    Regards,
    Stanley

  • Hi thanks for the response.

    We have captured the register dump on console as shown below that NRP contains the value zero at the time of exception.

    A0=0x95115970 A1=0x0
    A10=0x0 A11=0x97933c64
    A12=0x950dc300 A13=0x9793cdc6
    A14=0x97934590 A15=0x950dbcf0
    A16=0x654 A17=0x1
    A18=0x0 A19=0x811fd8
    A20=0x811ed8 A21=0x2
    A22=0x97943720 A23=0x0
    A24=0x9793ce25 A25=0x950f1c1a
    A26=0x45 A27=0x0
    A28=0x0 A29=0x811f70
    A2=0x950f462c A3=0x25d00200
    A30=0x0 A31=0x811f70
    A4=0x0 A5=0x950eca30
    A6=0x950d6c10 A7=0x979343e0
    A8=0x0 A9=0x97933c64
    AMR=0x61e2598
    B0=0xffffffff B1=0xffffffff
    B10=0x25 B11=0x0
    B12=0x811fb4 B13=0x2d
    B14=0x9793ceec B15=0x811ff0
    B16=0x0 B17=0x950aef28
    B18=0xa B19=0x950aa180
    B20=0x950e9604 B21=0x811fc8
    B22=0x1b B23=0x950ec5f8
    B24=0x950e9bdc B25=0x1be2
    B26=0x112 B27=0x0
    B28=0x1004 B29=0x12
    B2=0xfffffff7 B3=0x0
    B30=0x97940020 B31=0x0
    B4=0x66666666 B5=0x30666666
    B6=0x0 B7=0x5
    B8=0xfffffff1 B9=0x9793cec8
    EFR=0x2 NRP=0x0
    Exception at 0x0
    ILC=0x15000102
    IRP=0x950ddc04
    ITSR=0x20202020
    Instruction fetch exception
    Internal exception: IERR=0x1
    NTSR=0x20202020
    RILC=0x979483c0
    SSR=0x0
    [t=0x0000000d:c3e8df33] ti.sysbios.family.c64p.Exception: ERROR: $F$S
    ti.sysbios.family.c64p.Exception: line 256: E_exceptionMax: pc = 0x00000000, sp = 0x9793cc9e.
    xdc.runtime.Error.raise: terminating executio

  • This is the disassembly code at the time of exception as in call stack it is showing.