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.

CC1352P7: Custom exception handler define

Part Number: CC1352P7
Other Parts Discussed in Thread: SYSCONFIG, SYSBIOS

We're using SysConfig (1.13.0+2553), with sdk simplelink_cc13xx_cc26xx_sdk_6_20_00_29.

we want to define our function to handle the exception.

 

- Is there specific name we should use to success using that?

- we've try these thing but no one succss to solve the problem:

1. Using name Hwi_excHandler  as the handler of  [Hard Fault Handler (vector #3)/Mem Fault Handler (vector #4)/Bus Fault Handler (vector #5)/Usage Fault Handler (vector #6)] in the sysconfig, we get an error that the function Hwi_excHandler   is duplicated.

2. Using name Hwi_excHandlerFunc as the handler of all of the previous faults, we get an error that the prototype isn't ok. prototype was defined as the following: void Hwi_excHandlerFunc (unsigned int  *excStack, unsigned int  lr)

3. Using any other name such as Main_excHandler, or  myExceptionHandler but no one of them works, the compilation failed with reason undefined function.

4. change the cfg file and write "m3Hwi.excHandlerFunc = "&Main_excHandler"; " , sysconfig reaload it so this meanless.

how to let the sysconfig knows this is an extern function? what is the correct way to define the exception handler in this sdk and sysconfig tool?

  • Hi Sanaa, 

    Since you mention sysconfig for configuring HWI, I am assuming you are using tirtos7 .

    The drivers experts are out for holidays at the moment. But I see a possible work around for your use case. I see that the Hwi.c is found in the path: [SDK path]\kernel\tirtos7\packages\ti\sysbios\family\arm\m3). This has all the definitions of the exception handlers and all of then seem to use Error block and raise an Error.

    In sysconfig, in the BIOS module, you can add a function in the Error Handling submodule. This function should get called after an exception in raised. 

    Regards,
    Sid