WH Tan wrote: >Hello, >Disable "Dedicated ICD port" setting. If you're using a DIP part, >alternate ICD pins are not available. Those pins only exist on TQFP >part, and if you're using this part, the ICD connection is no longer >using RB7, RB6 etc. Check the datasheet under "Special features of uC" > >Hope this helps. >WH Tan > > >----- Original Message ----- >From: "Dave Turner" >To: "Microcontroller discussion list - Public." >Sent: Tuesday, May 24, 2005 1:31 AM >Subject: Re: [PIC] ICD2 > > > > >>Well, it's probably the oscillator - I'm not sure, but the ICD2 >>probably can't run from a USB clock. Try using either the internal >>or >>external RC, or an external crystal - Crystals are only really >>needed >>for anything that uses a clock, etc - RCs are useless for clocks, >>but >>fine for everything else. >> >>On 5/23/05, Paul van der Linden wrote: >> >> >>>> LIST P=18F4550, R=DEC >>>> >>>> #include "P18F4550.INC" >>>> >>>> CLRF TRISB >>>> BSF PORTB, 0 >>>> END >>>> >>>> >>>Ok, if I program the device, this is working, so it runs, only >>>debugging >>>isn't working. >>>I've these configuration bits: >>>http://members.lycos.nl/pvdl1984/icd2.html >>> >>>Log of the icd2: >>>Connecting to MPLAB ICD 2 >>>...Connected >>>Setting Vdd source to target >>>Target Device PIC18F4550 found, revision = a3 >>>...Reading ICD Product ID >>>Running ICD Self Test >>>...Passed >>>MPLAB ICD 2 Ready >>>Programming Target... >>>...Validating configuration fields >>>...Erasing Part >>>...Programming Program Memory (0x0 - 0x3F) >>>...Loading DebugExecutive >>>...Programming DebugExecutive >>>...Programming Debug Vector >>>...Programming RSBUG >>>Verifying... >>>...Program Memory >>>...Debug Executive >>>...Debug Vector >>>...Verify Succeeded >>>Programming Configuration Bits >>>.. 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 >>> >>> >>> > > > > Thank you, now it works -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist