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.

J784S4XEVM: Debug: Enabling Program Counter Printing

Part Number: J784S4XEVM
Other Parts Discussed in Thread: SYSBIOS

Hello,

We're attemping to debug a crash when using our own imaging framework on PSDK 11.00.00.06 on R5F (FREERTOS).

When the crash occurs a crash dump/register contents are printed on screen, however we noticed that the only register that isn't being printed is the PC. In the previous TI RTOS (SYSBIOS), the PC was also printed out.

We would like to be able to see the program counter in the crash log. How can that be achived?

Best regards,

Hristo

  • Hi Hristo,

    Could you please give more information on the imaging framework you are running and what OS/cores are running your applications?

    Thanks,

    Neehar

  • Hi Neehar,

    The issue here is not with the framework, I'm afraid. The issue is that we cannot get a crash dump which includes the PC register on FreeRTOS.

    We need to be able to see the value of the PC register when the crash happens just like we see the values of R0-R12, SP, LR, etc. The crash happens on one of the R5F cores on the main island, MCU2_0 (again - on FreeRTOS). On older version of the PSDK RTOS when TI's SYS/BIOS was running we were able to see the value of the PC register as well. We just want the same under FreeRTOS.

    For example, this is one of the crash logs that we obtained recently:

    [MCU2_0]  21126.230736 s:
     
     
    Crash Signature
     
    [FATAL]: Core has Aborted!!!
     
    DFAR =0xa3513d79 DFSR =0x801
     
    IFAR =0x0 IFSR =0x0
     
    CPSR =0x20000197 SP =0xa3ffffe0
     
    LR =0x6000001f R0 =0x6000001f
     
    R1 =0x0 R2 =0x458
     
    R3 =0x55aaaa55 R4 =0xa37e898c
     
    R5 =0xa3513d15 R6 =0xa3513d1d
     
    R7 =0x1 R8 =0xa37e8988
     
    R9 =0x0 R10 =0xa396dfa0
     
    R11 =0xa37e898c R12 =0x0

    As you can see, the value of PC is not being printed. We want it to be printed. Can we enable the printing of the PC register somehow?

    Best regards,

    Hristo

  • Hi Hristo,

    Thanks for this information, let me look into this for you and get back to you.

    Thanks,

    Neehar