Generating Exceptions on MPC5777C(e200z759CR)

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

Generating Exceptions on MPC5777C(e200z759CR)

1,131 Views
Suryav
Contributor I

I'm currently working with the MPC5777C (e200z759CR) and need to generate specific exceptions as part of my testing. I'd appreciate any guidance on implementing code that triggers the following exceptions:

 

 

 

Fixed Interval Timer (FIT)

 

Watchdog Timer

 

Instruction TLB Error

 

Debug Error

 

Data Storage Exception

 

Decrementer Exception

 

Any code examples, register settings to generate these exceptions would be incredibly helpful.

 

Thank you!

0 Kudos
Reply
1 Reply

1,090 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

If the intention is to validate all handlers, surely it is possible to generate most of them, for instance IVOR1 you can generate by ECC error, IVOR4 by any interrupt (by RM terminology external interrupt), core timers, watchdog, system call and so. However such appnote or similar document certainly does not exist.

Fixed Interval Timer - AN2865, section 3
Decrementer Exception - AN2865, section 2

Watchdog Timer - we are mostly using SWT so there is no example for core timer, but principle is simple: It is needed to have enabled watchdog in RCHW and let it run out without feeding it, which will lead to an exception.

Instruction TLB Error - It means there is attempt to execute data from address that does not have defined TLB entry in memory management unit. Redefine MMU TLB for portion of target memory to be invalid and try to execute the code from such undefined area

Debug Interrupt - it is whole set of exceptions that can be triggered in debug mode by debugger.

Data Storage Exception - IVOR2/3 access control - it means by restriction given by MPU. Configure MPU and execute/read/write to/from forbidden area

0 Kudos
Reply