Den 2007-09-10 23:51:21 skrev Herbert Graf : > I don't know about RealICE (I would expect, being a full ICE The way I understand this is that "Real-ICE" is not an emulator at all, only a communications device with logging capabilities and faster communicaiton than ICD2 and better but still not finished interface in MPLAB. Code is only run in the target, and it can only set breakpoints using the facilities in the PIC. For logging it needs to inject code in the program, and that currently works only be in Microchip C compiler. Seem to be unable to do some decent execution trace (but some), and some chosen variables can be sampled bot no guarantee for them being sampled for every change (I think). And i have not found any way to use it in assebler for tracing. But maybe i have not found the right document to explain how Real-ICE works yet... (And we have been looking for the more basic problems we have had...) Real-ICE aside, it would be interesting to get documentation on the debugging black magic cirquitry in the PIC. There are apparently compare logics for adresses and data bus, and register to set them up, and to trigger code execution at a speial location. Like an advanced monitor+interrupt-system. That might be useful... if not for other things it could be used for i.e a kind of stackpointer watchdog to try to shutdown the system in a controlled way and log fault conditions. -- Morgan Olsson -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist