Problem Programming PIC18F2550

Discussions related to MegaDrum Hardware

Re: Problem Programming PIC18F2550

Postby jman 31 » Sat Jun 06, 2009 8:23 pm

Info: Loading definitions for "PIC18F2550" from C:\Program Files\WinPic\devices.ini .
Info: Support for some newer PIC18F devices added by Martin v.d. Werff 2005
Couldn't find "devices\PIC18F2550.dev", please borrow/copy from MPLAB !
PIC18F: family='21'=4550, WriteLatch=32 bytes, EraseLatch=64 bytes .
Initialising PIC-Programmer: Success.
Testing: delay(500ms) took 0.50 seconds, timer_freq=3058.0300 MHz ... ok
Initialising PIC-Programmer: Success.
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x001692
Verifying CODE, 0x000000..0x001692
Verifying 0x000000..0x001692
Verify Error: 000000: read 00FFFF, wanted 00EF30, mask 00FFFF ==> diff=0010CF
Verify Error: 000002: read 00FFFF, wanted 00F00B, mask 00FFFF ==> diff=000FF4
Verify Error: 000004: read 00FFFF, wanted 000012, mask 00FFFF ==> diff=00FFED
Verify Error: 000006: read 00FFFF, wanted 000012, mask 00FFFF ==> diff=00FFED
More Verify Errors, unable to list all (total=2890)
Programming CONFIG, 0x300000..0x30000C
Verifying CONFIG, 0x300000..0x30000C
Verifying 0x300000..0x30000C
Verify Error: 300000: read 00FFFF, wanted 000E22, mask 00FFFF ==> diff=00F1DD
Verify Error: 300002: read 00FFFF, wanted 001E3F, mask 00FFFF ==> diff=00E1C0
Verify Error: 300004: read 00FFFF, wanted 0081FF, mask 00FFFF ==> diff=007E00
Verify Error: 300006: read 00FFFF, wanted 00FF85, mask 00FFFF ==> diff=00007A
More Verify Errors, unable to list all (total=7)
ERROR: Programming FAILED !
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

Re: Problem Programming PIC18F2550

Postby jman 31 » Sat Jun 06, 2009 8:37 pm

dmitri wrote:
jman 31 wrote:Reflashed the Atmega32. It said that it was successful, but the LCD is still not lighting up. I don't get it. I am pretty sure I have no shorts or breaks.

viewtopic.php?f=3&t=492


Thanks, Dmitri. I now have that problem sorted. I swore I wasn't going to be a pain in the ass when I finally got to this point and look at me. You would think I had never read a post on this site before! :oops: sorry guys.

From looking at the results of winpic, do you think I fried my PIC by having the programmer hooked up wrong?
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

Re: Problem Programming PIC18F2550

Postby jman 31 » Sat Jun 06, 2009 9:17 pm

I did a "read" of the PIC. I don't know if that tells us anything.
You do not have the required permissions to view the files attached to this post.
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

Re: Problem Programming PIC18F2550

Postby dmitri » Sat Jun 06, 2009 9:28 pm

jman 31 wrote:I did a "read" of the PIC. I don't know if that tells us anything.

It won't tell if the PIC is good or not. It probably read only 'FFFFF' from it. It will do it even if the PIC is not in the socket.
You either have a short/break somewhere around the PIC or your ICSP cable is still not ok. Start with checking for continuity on the board and the cable, check that the PIC gets +5 on pin 20 and that there is +3.3 on pin 14.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby jman 31 » Sat Jun 06, 2009 9:36 pm

Yes, 5v on pin 20, but 0v on pin 14.....
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

Re: Problem Programming PIC18F2550

Postby dmitri » Sat Jun 06, 2009 9:50 pm

jman 31 wrote:Yes, 5v on pin 20, but 0v on pin 14.....

If there are no shorts around the PIC then it is fried.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby jman 31 » Sat Jun 06, 2009 10:36 pm

dmitri wrote:
jman 31 wrote:Yes, 5v on pin 20, but 0v on pin 14.....

If there are no shorts around the PIC then it is fried.


I did find a break on on pin 18, but no luck. I will order another PIC. Thanks for the time and help Dmitri.
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

Re: Problem Programming PIC18F2550

Postby dmitri » Sat Jun 06, 2009 10:56 pm

jman 31 wrote:
dmitri wrote:
jman 31 wrote:Yes, 5v on pin 20, but 0v on pin 14.....

If there are no shorts around the PIC then it is fried.


I did find a break on on pin 18, but no luck.

It should be worrying that you've already made a few mistakes. Be more careful.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem Programming PIC18F2550

Postby jman 31 » Sat Jun 06, 2009 11:21 pm

Just to set your mind at ease, I did check all of the board for breaks and shorts. In particular the area that it was. I had repaired a break in a very small trace and I think it may have gotten fudged when I was inserting an IC or something. Possibly warped the board some and stressed it. I was worried about the area on the board as it was.

I will be careful though. I wish Synthex would have made this board twice as big so that the traces were easier to toner transfer. I'm not complaining though. it wouldn't be any fun if not for the challenge. That's why I built my own instead of just buying the kit. The worst I can do is screw it all up and start over. That shouldn't happen though. I am pretty confident that I can get this one working.

Thanks again Dmitri
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

Re: Problem Programming PIC18F2550

Postby jman 31 » Mon Jul 13, 2009 10:48 pm

I ordered a new PIC18F2550 and installed it. It does exactly the same thing as the old one when I try to program it. Below is the results I get from WINPIC.

"Info: Loading definitions for "PIC18F2550" from C:\Program Files\WinPic\devices.ini .
Info: Support for some newer PIC18F devices added by Martin v.d. Werff 2005
Couldn't find "devices\PIC18F2550.dev", please borrow/copy from MPLAB !
PIC18F: family='21'=4550, WriteLatch=32 bytes, EraseLatch=64 bytes .
Initialising PIC-Programmer: Success.
Testing: delay(500ms) took 0.50 seconds, timer_freq=3057.9900 MHz ... ok
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x001692
Verifying CODE, 0x000000..0x001692
Verifying 0x000000..0x001692
Verify Error: 000000: read 00FFFF, wanted 00EF30, mask 00FFFF ==> diff=0010CF
Verify Error: 000002: read 00FFFF, wanted 00F00B, mask 00FFFF ==> diff=000FF4
Verify Error: 000004: read 00FFFF, wanted 000012, mask 00FFFF ==> diff=00FFED
Verify Error: 000006: read 00FFFF, wanted 000012, mask 00FFFF ==> diff=00FFED
More Verify Errors, unable to list all (total=2890)
Programming CONFIG, 0x300000..0x30000C
Verifying CONFIG, 0x300000..0x30000C
Verifying 0x300000..0x30000C
Verify Error: 300000: read 00FFFF, wanted 000E22, mask 00FFFF ==> diff=00F1DD
Verify Error: 300002: read 00FFFF, wanted 001E3F, mask 00FFFF ==> diff=00E1C0
Verify Error: 300004: read 00FFFF, wanted 0081FF, mask 00FFFF ==> diff=007E00
Verify Error: 300006: read 00FFFF, wanted 00FF85, mask 00FFFF ==> diff=00007A
More Verify Errors, unable to list all (total=7)
ERROR: Programming FAILED !"


I was wondering if I should be using a different programming cable than the one shown on the schematics page for the v2.5? I have checked the board over again and there are no shorts or breaks that I can find. Any suggestions would be greatly appreciated. The Atmega is programmed fine.

Thanks
Jman
jman 31
 
Posts: 536
Joined: Thu Jul 10, 2008 10:51 pm
Location: USA

PreviousNext

Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 97 guests