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.

Writing code in assembler - address of stack pointer send via SCIA

Hello,

I  try to track problem with my 2012 board. Sometimes my board crash. It happened when board is not powered minimum 40seconds. It does not happen while board is starting, but about 4-5 seconds after start. Furthermore it happens only in 15% of powering boards. If I use reset button on the board, it doesn't happen anymore. When board is crashed code stopped in ILLEGAL_ISR();

This is why I need to write assembly code in which I would copy address of last execution code before interrupt. Then I want to send it via SCIA (RS232 ).
If someone can help with this code?

Appreciate all answers.

  • Hi,

    For Illegal_ISR() I would like you to check the code first. Check all the initializations & peripheral configurations thoroughly. You can eliminate the same using visual inspection itself.

    Regards,
    Gautam