Problem programming pic

Discussions of any related software

Moderator: Related software moderators

Problem programming pic

Postby mbira » Mon Aug 22, 2011 10:16 pm

Hi folks. I'm hoping someone can help me out here. I run a mac, so my roommate let me install a Serial PCI card on his computer to program the PIC18F2550.

I am using Dmitris artwork for the new one board layout.

I'm using WinPic. The first issue is the PCI card is showing the ports as being numbers 5-8. WinPic is telling me that I have to use the win API for ports above 4. Can I still program the chip with that API in use?

When I try at this point, I am getting this error:

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=3.5795 MHz ... ok
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x001CF2
Verifying CODE, 0x000000..0x001CF2
Verifying 0x000000..0x001CF2
Verify Error: 000000: read 00FFFF, wanted 00EF67, mask 00FFFF ==> diff=001098
Verify Error: 000002: read 00FFFF, wanted 00F00E, mask 00FFFF ==> diff=000FF1
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=3706)
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 !

Any help would be appreciated.

I have the usb cable plugged in and I jumpered the connection so the PIC is getting the +5v from the USB. However, I'm not getting any LED indication or anything-not sure if I should be?
mbira
 
Posts: 81
Joined: Sat Aug 01, 2009 11:21 pm

Re: Problem programming pic

Postby dmitri » Mon Aug 22, 2011 11:32 pm

dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem programming pic

Postby mbira » Tue Aug 23, 2011 1:42 am

dmitri wrote:Is your problem uniquely different...


Yes.

1) This is on your new board.

2) I am wondering if I can use the API setting with WinPic for port #5.

The question:
Can I program the PIC if my serial port is on #5 and I have to use the API setting?
mbira
 
Posts: 81
Joined: Sat Aug 01, 2009 11:21 pm

Re: Problem programming pic

Postby kupooglop » Tue Aug 23, 2011 1:48 am

cue deja vu by iron maiden...
kupooglop
 
Posts: 116
Joined: Wed Aug 25, 2010 10:33 pm

Re: Problem programming pic

Postby mbira » Tue Aug 23, 2011 1:59 am

A search for "API" in the above threads brought up only my thread-if there is another one that is giving you deja vu-please post it, because I didn't see it.
mbira
 
Posts: 81
Joined: Sat Aug 01, 2009 11:21 pm

Re: Problem programming pic

Postby kupooglop » Tue Aug 23, 2011 5:00 am

that's my point. read your pic error report. then read the posts for pic programming errors. i know this problem has been solved before. i don't understand your confusion with regards to serial port #'s and API settings. you configure that in your pic programmer and either it works or it doesn't. looking at your error dump, i doubt you are having a "port/api setting" problem. the error you listed has been posed before and there is a good deal of info. on it. you gotta read it tho. how do you know your pic wasn't programmed during your last attempt?
kupooglop
 
Posts: 116
Joined: Wed Aug 25, 2010 10:33 pm

Re: Problem programming pic

Postby mbira » Tue Aug 23, 2011 6:23 am

All that error means is that the chip didn't write as far as I can tell. I am asking questions about the API, etc, to try and narrow down the reason WHY it is not writing to the chip. There are a thousand ways that a person could get that error message-I don't think the error message itself will really help address the problem...hence the reason I added more details and asked about those other issues.
mbira
 
Posts: 81
Joined: Sat Aug 01, 2009 11:21 pm

Re: Problem programming pic

Postby dmitri » Tue Aug 23, 2011 9:47 am

dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Problem programming pic

Postby ignotus » Tue Aug 23, 2011 10:50 am

Are you using Winpic or Winpic800? I found that Winpic800 failed every time for me but the version found here worked. It always gives me a failure message but it seems to program the pic ok regardless - you will know because your pc suddenly detects it.
If it ain't broken... fix it until it is.
ignotus
 
Posts: 882
Joined: Sat Nov 24, 2007 11:36 am

Re: Problem programming pic

Postby kupooglop » Tue Aug 23, 2011 1:51 pm

ignotus wrote:It always gives me a failure message but it seems to program the pic ok regardless - you will know because your pc suddenly detects it.

exactly. 8-)
kupooglop
 
Posts: 116
Joined: Wed Aug 25, 2010 10:33 pm

Next

Return to Related Software

Who is online

Users browsing this forum: No registered users and 68 guests