Where can I find example code for an M33 HardFault_Handler with core register dump?

Where can I find example code for an M33 HardFault_Handler with core register dump?

I am using a Renesas RA4M2 microcontroller, with ARM compiler version 10.3-2021.10.

I am implementing a HardFault_Handler function written in C.  I am tasked with copying the core register contents into a dedicated section of RAM.  

All I need is an example of a register dump.  I was hoping to search for "M33 HardFault_Handler example code", expecting to find many examples, and expecting to paste the example code into my project and perhaps make small changes to it.  I found exactly none for the M33.  Of course I am expected to have this finished in 2 days.

All I found was an example for the M3/M4 here: 

https://community.silabs.com/s/article/debug-a-hardfault?language=en_US

Does anyone know where I can find an example HardFault_Handler exception function for an M33?

Thank you!

Paul Roberts

Parents Reply Children
No data