Skip to main content
Basavanagouda1
Associate II
February 19, 2020
Question

Exception handler execution

  • February 19, 2020
  • 2 replies
  • 1080 views

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.

    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Employee
    February 26, 2020

    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
    May 8, 2020

    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.