cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handler execution

Basavanagouda1
Associate II

Hi All,

We are using SPC560PL3 development board in our project. I'm facing issue with board reset, My code works for some time and resets. I tried to check with exceptions added handlers in the irq.c file. I have attached the file for reference, Please check.

When my board resets, I'm expecting some messages to print. But I'm not seeing any messages for reset issue.

My UART works fine.

Please let me know what I'm missing here. Do I need to set any option in the SPC5 studio? Or any code need to be modify to call these call back functions?

Help me to solve this issue.

Thanks,

Basava.

2 REPLIES 2
Erwan YVIN
ST Employee

Hello ,

i recommend to use the debugger and check which IVOR you are going

check the PC,LR in assembler mode

Best Regards

Erwan

Giuseppe DI-GIORE
ST Employee

Depending on the version of the UART driver you are using, the sd_lld_write() requires interrupts to work

but if called in an interrupt handler, the interrupts are disabled, hence no data is sent out.

Update your SPC5Studio to the latest version which includes a serial driver able to recognize if called at interrupt time

and take the appropriate action in order to send data to serial port.