Page 1 of 1

Catching NULL Pointers on the Nano54415 and MOD5441X

Posted: Tue Sep 02, 2014 2:04 pm
by dciliske
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:
  1. It uses both the cache and debug modules.
  2. It consumes the first 1MB (0x00_0000 -> 0xFF_FFFF) of memory space.
  3. NULL Writes are caught by the Cache Control and reported as Access Exceptions (type 2).
  4. NULL Reads are caught by the Debug Module and reported as Debug Interrupt (type 12).
  5. As a consequence of using the debug module for NULL read catching, this will not work in debug mode or if utilizing AddressWritten traps.
We will have these changes available in the upcoming release, though if you're in the midst of a debug nightmare, let me know.

-Dan