Jim, Thank you for your reply. > Do you have debug mode chosen? Do you mean a Debug or Release mode from the Drop-down list in the icons li= ne below the=20 menu? If so, YES, I have the Debug mode when building project. But yet, debugging does NOT work L. >=20 > Do you have debug mode chosen? >=20 >=20 > Regards, >=20 > Jim >=20 > > -------- Original Message -------- > > Subject: Re: [PIC] IS this faulty? > > From: jana1972@centrum.cz > > Date: Fri, November 04, 2011 11:13 am > > To: "Microcontroller discussion list - Public." > >=20 > >=20 > > Hi Dwayne, > > Thank you for your reply.My problem was that I could not debug my code = ..( so I tested the=20 > > function of the header) > > The code is here > >=20 > >=20 > >=20 > > LIST P=3DP16F628A, R=3DDEC ; Use the PIC16F628 and decimal system=20 > >=20 > > #include "P16F628A.INC" ; Include header file=20 > > __CONFIG _CP_OFF & DATA_CP_OFF & _LVP_OFF & _BOREN_OFF &=20 > > _MCLRE_ON & _WDT_OFF & _PWRTE_OFF & _XT_OSC=20 > > =20 > > org 0 > > bcf STATUS,RP1 > > bsf STATUS,RP0 =09 > > movlw 0x0C =20 > >=20 > > END > >=20 > >=20 > > I tried to program ( from Debuger menu and a choice Program) > >=20 > > I could see output=20 > > Programming... > > Programming/Verify complete > >=20 > > but when I tried to debug I got > >=20 > >=20 > > ICD3Err0040: The target device is not ready for debugging.Please check = your=20 > > configuration bit settings and programthe device before proceeding.Step= ping target=20 > > failed > >=20 > > Can you see any problem with the code? > > Thanks > >=20 > > Lad. > >=20 > >=20 > >=20 > > > At 06:23 AM 11/4/2011, jana1972@centrum.cz wrote: > > > >I bought PIC16f648A - ICD header.But when I try to check its functio= n, from > > > >MPLAB IDE V8.80, > > > >during testing from menu > > > > > > > >Debugger - Settings - ICD3 Settings - Status > > > > > > > >and here I push the > > > >Run ICD 3 Test Interface button > > > > > > > >I receive > > > > > > > >ICD3Err0063: Test interface PGC clock line write failure. > > > > Please ensure that the tester is properly connected. > > > >Test interface PGD data line write not tested. > > > >Test interface PGC clock line read not tested. > > > >Test interface PGD data line read not tested. > > > >Test interface LVP control line not tested. > > > >Test interface MCLR level not tested. > > > >ICD3Err0057: Interface test could not be completed. > > > >Please contact your local FAE/CAE to SAR the unit. > > > > > > > >Is it the problem of PIC16f648A - ICD header? > > > > > > > >If I test another header that was supplied with ICD3 , it works OK > > >=20 > > > As far as I know, the test function works ONLY with the little test=20 > > > adapter that was supplied with the ICD3. This function exists so=20 > > > that you can verify that the pin drivers are working properly on the = ICD3. > > >=20 > > > One of the common problems with debugging is that when something=20 > > > doesn't work, you don't know what the problem is. It might be=20 > > > something haywire in the test circuit ** OR ** it might be a problem= =20 > > > with the debugger. Microchip listened to the problems that happen in= =20 > > > the field and provided a method for you to test the debugger and make= =20 > > > sure that it is working properly. > > >=20 > > > dwayne > > >=20 > > > --=20 > > > Dwayne Reid > > > Trinity Electronics Systems Ltd Edmonton, AB, CANADA > > > (780) 489-3199 voice (780) 487-6397 fax > > > www.trinity-electronics.com > > > Custom Electronics Design and Manufacturing > > >=20 > > > --=20 > > > http://www.piclist.com PIC/SX FAQ & list archive > > > View/change your membership options at > > > http://mailman.mit.edu/mailman/listinfo/piclist > >=20 > >=20 > > --=20 > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist >=20 >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .