Joan Ilari wrote: >>>.. 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. I assure you that the ICD2 firmware thinks the processor is NOT enabled for debugging. I don't know WHERE your problem lies, but thats the exact error I get when I have not set MPLAB up properly. To use the ICD2 in debug mode, be sure to set the programmer to NONE. To debug it, try asking PICLIST as if it was NOT a clone, and see what happens. The clone hardware is pretty trivial, really: its the ICD2 firmware that makes it work... Besides, Olimex makes pretty good stuff. --Bob > 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 > > -- Replier: Most attachments rejected -------------- Bob Axtell PIC Hardware & Firmware Dev http://beam.to/baxtell 1-520-219-2363 -- 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