Hi,
I am using:
- NXP LPC2103FBD48 with ARM7 core.
- Rowley Associates CrossStudio for ARM v1.7 Build 4.
- C++.
- Compiling with no optimizations.
I have a mysterious bug that is causing, once in a while, a prefetch abort exception or a data abort exception. I suspect it is either the chip or the CrossStudio's fault, because commenting out one single line of source code that says "config_ok=true;" seems to "solve" the problem. However, I need that line, and I hate mysterious problems like this one. Anyway, those exceptions (according to the datasheet) are thrown when the ARM7 core either tries to execute an instruction fetched from "reserved space" or from "AHB/APB space" in the memory map or tries to access data from "reserved space" in the memory map.
The LPC2103 does not have trace. Is there a way to know the address of the instruction that tried the illegal fetch or data access? Doesn't the VIC hold such information? That small piece of information would be very valuable.
Thank you very much, Jon