> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Josh Koffman > Sent: 12 May 2010 20:49 > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] MPLAB Crash? > = > On Wed, May 12, 2010 at 3:30 PM, Barry Gershenfeld > wrote: > >> So, I guess my question is now...has anyone ever had a chip that > >> accepted a program and ran in debug mode, but refused to debug? > > > > Many times. It seems that the transactions over the ICD connection are > > sensitive to electrical things, and debug seems to make many small > > transactions, which is different than the program/verify kind of > behavior. > > The best fix I arrived at over the years was to shorten the ICD cable > from > > 19" to about a foot (50 cm to 30 cm). =A0And I'm prepared to go shorter= if > it > > acts up again. > = > Interesting. My PK3 is attached with an inch and a half cable to my > circuit. Your post did give me an idea though. I thought perhaps the > debug executive was somehow corrupted. I switched to release mode, > rebuilt, and programmed, which worked fine. Then I switched back to > debug, rebuilt, and tried to download to the chip. This is the error I > got: > = > Programming... > The following memory regions failed to program correctly: > Debug Executive > Programming failed > = > I'm going to do a bit more programming with the simulator, then I > guess I'll remove the chip and replace it. I guess I'm also concerned > because I'm so unsure what causes this that I don't want to ruin > another chip when it happens again. > = > Thanks, > = > Josh Did you read the MPLAB help file on PK3 problems? It's surprisingly compre= hensive, though you have covered the basic advice already. The final sugge= stion in the Help file is to un-install and re-install MPLAB to eliminate a= ny possibility of corrupted files. Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist