Catching NULL Pointers on the Nano54415 and MOD5441X
Posted: Tue Sep 02, 2014 2:04 pm
As Professor Farnsworth says: "Good News Everyone!" We now have a way to catch NULL pointers on MCF5441X based parts. There's a couple limitations to the change that I'll layout real quick:
-Dan
- It uses both the cache and debug modules.
- It consumes the first 1MB (0x00_0000 -> 0xFF_FFFF) of memory space.
- NULL Writes are caught by the Cache Control and reported as Access Exceptions (type 2).
- NULL Reads are caught by the Debug Module and reported as Debug Interrupt (type 12).
- As a consequence of using the debug module for NULL read catching, this will not work in debug mode or if utilizing AddressWritten traps.
-Dan