I dont have a icd 2 but with the icd1 there is a dialog box for the debugger where a checkbox for debug on overrides config info in the hex file Peter ----- Original Message ----- From: "Joan Ilari" To: Sent: Friday, July 16, 2004 8:44 PM Subject: Re: [PIC:] ICD2 not debugging > > > .. Config Memory > > > Verifying configuration memory... > > > ...Verify Succeeded > > > Connecting to debug executive > > > ICD0083: Target not in debug mode, unable to perform > > operation MPLAB > > > ICD 2 Ready > > > > This error is your fault; you MUST set the configuration > > words so that debug mode is always set to ENABLE if you want > > to use the ICD2 as a debugger, and DISABLE is you want to use > > the ICD2 as an external programmer. > > I am affraid that this is not the case :-( . Here is my config bits > declaration : > > #pragma romdata CONFIG > _CONFIG_DECL ( > _OSCS_OFF_1H & _OSC_HS_1H, > _BOR_OFF_2L & _BORV_25_2L & _PWRT_ON_2L, > _WDT_OFF_2H & _WDTPS_128_2H, > _CCP2MUX_ON_3H, > _STVR_OFF_4L & _LVP_OFF_4L & _DEBUG_OFF_4L, > _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L, > _CPB_OFF_5H & _CPD_OFF_5H, > _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L, > _WPC_OFF_6H & _WPB_OFF_6H & _WPD_OFF_6H, > _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L, > _EBTRB_OFF_7H > ); > #pragma romdata > > (DEBUG OFF -> enabled, ON-> disabled) Anyway, I have tried also DEBUG_ON. > > BTW : DEBUG bit does not appear in >Configure>Configuration bits. I guess > that this is so because it is set by Mplab software. > > > You can also program within the debugger, but that is under > > control of the debugger, and is a different process. > > > > Just fix that, and you'll be running. > > It's 2:45 am in Spain. I think that I have tried all the possible > combinations of configuration bits. Pretty soon I won't be able to see an > elephant crossing my computer screen ... > > > And, let us know how the CZ ICD2 clone works. Also, how long > > did it take to get it in? > > > > It is not the CZ version the one that I have bought. It is the Olimex one. > If I am able to Debug with it, it will be a reasonable deal. If not, I will > have thrown to the wastebasket 100$. It took one week to go from Bulgaria to > Spain. > > Best regards > > Joan > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics