CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Bootloader please help

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
AlanUK



Joined: 25 Aug 2004
Posts: 2

View user's profile Send private message

Bootloader please help
PostPosted: Wed Aug 25, 2004 11:39 am     Reply with quote

Using 16F877 device- 4Mhz clock - programmed 16F877 with hex file from microchip website. 16F877 4MHZ 19200 Baud. Using CCS PCM ver 2.707 tryed both extra lines in code

#org 0x1F00, 0x1FFF{} ,#org 0x1F00, 0x1FFF void loader16F877(void){}

Problems :-

Downloads ok if I switch +5V off then on and seems to run code - only checked with simple code tho. Using downloader 1.08

Doesnt download if I reset

Doesnt run program if I just power on circuit as normal - you have got to use bootloader to run code, i.e power off then on.

Known hardware working.

Any ideas please ?

Alan
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 25, 2004 12:01 pm     Reply with quote

Check the config bit settings before you program the HEX file into
your 16F877. The HEX file from Microchipc has certain default config
bit settings that are not perfect.

If you're using PicStart-Plus with MPLAB as a programmer, then there
is a little window that pops up that will let you change the config bits.

I suggest using these settings:

Oscillator: XT
Watchdog: OFF
Power-up Timer: On
Code Protect: OFF
Brownout Detect: On
Low Voltage Program: Disabled
Data EE Protect: OFF
Flash Program Write: Enabled
Background Debug: Disabled
AlanUK



Joined: 25 Aug 2004
Posts: 2

View user's profile Send private message

PostPosted: Wed Aug 25, 2004 2:34 pm     Reply with quote

Thanks for the reply m8 - yeah using Picstart plus and the config bits were causing the problem - just changed the low voltage programming part and it runs.

Thanks

Alan
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group