Catching NULL Pointers on the Nano54415 and MOD5441X

Discussion to talk about software related topics only.
Post Reply
User avatar
dciliske
Posts: 623
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Catching NULL Pointers on the Nano54415 and MOD5441X

Post 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
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply