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

PIC18F4580 bootloader not working

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



Joined: 01 Feb 2011
Posts: 32
Location: 53

View user's profile Send private message AIM Address

PIC18F4580 bootloader not working
PostPosted: Thu Dec 04, 2014 5:26 am     Reply with quote

Hi,

I'm trying to get the ccs EX_BOOTLOADER working.

1. I've loaded the bootloader into the PIC.
2. I've hooked up the serial input/output tool via RS232
3. I've successfully powered-up the PIC with bootload PIN active which results in message on screen saying 'waiting for download'.
4. I've downloaded a simple flashing LED program
5. Powered-up the board again.

Result - LED not flashing so didn't work

Fuses are matched in both files.

It's a CCS CAN bus dev board so the hardware is all ok.

Compiler version PCWH 5.017

Not sure what I'm doing wrong at the moment.

Any assistance would be appreciated.
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Thu Dec 04, 2014 8:06 am     Reply with quote

Remember you need to build the program to be loadable. You can just build a program and load it.

Look at ex_bootload.c, which shows how a program that is to be loaded needs to be built.
jmaudley



Joined: 01 Feb 2011
Posts: 32
Location: 53

View user's profile Send private message AIM Address

Working
PostPosted: Thu Dec 04, 2014 8:26 am     Reply with quote

Missed BOOTLOADER.H

Thank you.
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Thu Dec 04, 2014 9:11 am     Reply with quote

Good. Smile

Nice things was your description was nice and clear so this seemed the obvious problem.

Best Wishes
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