In-Circuit-Debugging with ICD2 at Core Module

Hello,

has anybody experiences in in-circuit-debugging a core module with ICD2?

Background: I build an own AOUT module with MCP4922 DACs, now I have to debug the hard- and software by setting breakpoints and single-stepping.

I build a cable to connect the ICD2 to J2 at the core, in-circuit-programming works still fine.

I could start the application, but not debugging it.

I recognized, that the “debug flag” of the PIC has to be enabled. After doing this, the application would not start.

Can anybody help me?

TmsidR

If you’re programming in C you could take a look at the ACSimulator

It’s purely software based but seems to do what you need…

Cheers,

Michael

@audiocommander

I am programing assembler and use MPLAB 7.5

Cheers,

Michael

TK has commented on this in the past but I never can find the post ::slight_smile:

IIRC the ICD won’t work and main trick he uses is to send debugging info out via midi and/or by driving a pin and monitoring it on a scope… Kinda like breakpoints but, not :slight_smile:

It helps that TK is superhuman and writes perfectly functional code that works with no debugging, off the top of his head :wink: