Intermittent Writing Error using PIC Bootloader
Electronics Forum Index Electronics
Circuits, theory, electrons and discussions.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ElectronicsHelp.net
Intermittent Writing Error using PIC Bootloader

 
Post new topic   Reply to topic    Electronics Forum Index -> Design
Author Message
Jeff M.
Guest





Posted: Fri Feb 04, 2005 7:51 pm    Post subject: Intermittent Writing Error using PIC Bootloader Reply with quote

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.

Back to top
malvarezdel
Guest





Posted: Fri Feb 04, 2005 9:36 pm    Post subject: Re: Intermittent Writing Error using PIC Bootloader Reply with quote

Have you WDT enabled? if itīs enabled, try disabling it.
Back to top
Guy Macon
Guest





Posted: Sat Feb 05, 2005 5:51 am    Post subject: Re: Intermittent Writing Error using PIC Bootloader Reply with quote

Jeff M. wrote:

Quote:
Hi, I am trying to get the Shane Tolmie v9.30 bootloader
working with my PIC 16F877A @ 20MHz[snip]

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

Cheers!

Back to top
Memblers
Guest





Posted: Sun Feb 06, 2005 9:55 pm    Post subject: Re: Intermittent Writing Error using PIC Bootloader Reply with quote

On 4 Feb 2005 05:51:56 -0800, "Jeff M." <mahon@syrres.com> wrote:

Quote:
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.


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).
Back to top
mike
Guest





Posted: Mon Feb 07, 2005 6:08 am    Post subject: Re: Intermittent Writing Error using PIC Bootloader Reply with quote

Memblers wrote:
Quote:
On 4 Feb 2005 05:51:56 -0800, "Jeff M." <mahon@syrres.com> wrote:


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.



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).


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/
Back to top
 
Post new topic   Reply to topic    Electronics Forum Index -> Design All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Home & Living New Topics
Contact Us
Powered by phpBB