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.

RTOS/AM5746: How to stop/break the program immediately, when some A15 exception is occurred

Guru 10235 points
Part Number: AM5746
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello, TI Experts,

 

Our customer sent us a question about exception behavior on CCS by using PROCESSOR-SDK-RTOS-AM57X with below condition.

- CCS v8

- GCC GNU v6.3.1(Linaro)

- HW IDK574xEVM

- SW pdk_am57xx_1_0_11

- XDCTools 3.50.3.33

- ICE XDS200 ( or XDS100 or XDS560)

 

They would like to stop/break the program immediately, when some A15 exception is occurred.

And they found the related E2E-thread like below;

They found one clue such as "Tools --> ARM Advanced Features".

https://e2e.ti.com/support/tools/ccs/f/81/t/737309

https://e2e.ti.com/support/tools/ccs/f/81/p/54139/192840#192840

 

Question:

  - Could you tell us the recommended way of immediate breaking at exception including appropriate ARM Advanced Features setting in CCS?

 

We would appreciate if you tell us the recommended way to stop/break the program, when some A15 exception is occurred.

 

Best regards,

--

  • Matusan,

    Can you please indicate the motivation for this feature. I believe your customer is trying to implement a custom exception handler which they can do using the RTOS Exception module of the ARM core as specified in the discussion here:
    e2e.ti.com/.../531489

    Going one step further if the customer needs a way to implement a mechanism to recover from the exception, we have a customer feature request currently tracked BIOS-731 to support recoverable exception handler. The RTOS team made a release for a customer last year with this feature which you can find here:
    e2e.ti.com/.../2683191

    Let us know if the information regarding custom exception handler and recoverable exceptions addresses your customers requirement.

    Regards,
    Rahul
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.

    They said "the motivation is a kind of debuggability".
    They would like to analyze the root cause of exception.

    If there are recommended way of analyzing the root cause of exception, please tell us.

    Best regards,
  • Please refer to the ti.sysbios.family.arm.exc.Exception in BIOS. If you use the following in the configuration, BIOS will print exception output in CCS console:


    var Exception = xdc.useModule ("ti.sysbios.family.arm.exc.Exception");
    Exception.enableDecode = true;

    To use custom ARM exception handler use the following syntax

    var Exception = xdc.useModule ("ti.sysbios.family.arm.exc.Exception");
    Exception.enableDecode = false;
    Exception.excHookFunc = "&exception_excHandler";


    Regards,
    Rahul

    PS: You can also review the training here: It uses example of MCU platform but the RTOS concept also applies to processor platforms

    You can take a look at this: training.ti.com/debugging-common-application-issues-ti-rtos

  • Hi,

    Thank you very much for your kindness.
    This information is very helpful!

    Best regards,