Intermittent Writing Error using PIC Bootloader

Hi, I am trying to get the Shane Tolmie v9.30 bootloader working with my PIC 16F877A @ 20MHz and am encountering some strange problems. I am able to program the bootloader into the chip no problem. When I try to load the test program, I keep getting a "writing error". I sometimes also get a communication timeout error, but this is much less frequent. I keep doing this and eventually, I am able to complete the programming successfully. When it fails, which is most of the time, it fails at random points during the download. I have confirmed this same behavior on a second chip I have.

In despiration, I tried this same experiment with the Tiny Bootloader and had the same issue, fail most of the time, work once in awile. I looked at my serial cable on a Scope and it looked ok. If anything, the RS-232 data from the PC looked real good. The RS-232 data from the PIC was not ideal, its peak to peak swing was about 3 volts lower then expected. Also, the signals had a slope on them. The little I know about RS-232, my signal should be well within the operating range.

Is there any debug commands in the windows bootloader software I can use to further isolate this problem? Does anyone have any thoughts on what this could be? Thanks for your help.

Reply to
Jeff M.
Loading thread data ...

Have you WDT enabled? if it´s enabled, try disabling it.

Reply to
malvarezdel

You will get better answers if you ask this question in the comp.arch.embedded newsgroup.

Cheers!

Reply to
Guy Macon

I think the 16F877A requires program writes to be in multiples of some amount (4 words, I think it was)). 16F877 doesn't require that.

I've used that bootloader with no problem here (haven't tried the 'A' revision of that PIC though).

Reply to
Memblers

Bootloaders for the 877 and 877A are different because of this. You also have to strip out the configuration word so that the 4-word write doesn't overwrite needed data. But that's not an intermittent problem. Breaks every time...in my experience. mike

--
Return address is VALID.
Wanted, PCMCIA SCSI Card for HP m820 CDRW.
FS 500MHz Tek DSOscilloscope TDS540 Make Offer
http://nm7u.tripod.com/homepage/te.html
Wanted, 12.1" LCD for Gateway Solo 5300. Samsung LT121SU-121
Bunch of stuff For Sale and Wanted at the link below.
http://www.geocities.com/SiliconValley/Monitor/4710/
Reply to
mike

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.