How can I use dataflow exception using SPEFSCR?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I use dataflow exception using SPEFSCR?

683 Views
민지혜
Contributor I

Hi, dear.

I'm using mpc5773 and have a question about SPEFSCR.

For using under, divide 0, invalid exception, I made some bits to 1. -> set SPEFSCR value : 0x0000 0039

and made Interrupt is occured when an exception is occured.

But, when Interrupt is occured, back to address which stored in SRR0. So,  Proceed again the operation that caused the exception. and again and again.

I try to update SRR0 value and it can, but SRR0 value is return to original value after SRR0 update.

e_lmvsrrw 0x8(r1) make SRR0 value is return to original value.

as a result, I can't get out of the exception. Could you give me a tip or some help?

(I already make some flags(FINVS, FDBZS, FUNFS) clear when exception occured.)

Labels (1)
Tags (2)
0 Kudos
1 Reply

560 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

how did you update the SRR0? There's application note AN4648 which describes how to increment the address in SRR0:

https://www.nxp.com/docs/en/application-note/AN4648.pdf

Regards,

Lukas

0 Kudos