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.

PROCESSOR-SDK-AM437X: Add an own written C-code exception handler

Expert 1700 points

Part Number: PROCESSOR-SDK-AM437X
Other Parts Discussed in Thread: SYSBIOS

Hello,

I am working on a Sitara AM437x product. I am currently in a phase adding debug options to our firmware of our customized board, which does not provide a JTAG interface. I would like to be able to check and handle any kind of critical situations with a UART interface only.

As a first task I would like to add an own exception handler-function to our firmware in case that an exception happens e.g. due to a pointer access in a forbidden memory area. So what I would like to do is, to manually cerate a software exception (software crash e.g. via division by 0 or bad function pointer call), let the CPU jump into that own written exception handler function and print out the link register via UART. Basically something, which is described in the following video at time 8:18:

https://training.ti.com/debugging-common-application-issues-ti-rtos

It seems that unlike the ‘ti.sysbios.family.arm.m3’ package, the ‘ti.sysbios.family.arm.a9’ package has no module called Hwi like in the video.

Can you please let me how to add an exception handler C-function to our project, in which I receive the link register (preferable  as function argument), in order to print the link register out via UART?

Thanks,

Inno