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 18f46k80

 
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

Bootloader 18f46k80
PostPosted: Mon Oct 24, 2016 6:11 am     Reply with quote

Hi,

Having bootloader issues.

My starting point was to use Ex_bootloader and ex_bootload.

I have programmed these on a CCS development board which uses a PIC18f4580 chip and everything works fine.

Now I need to get this working on my new hardware platform which uses a PIC18F46K80 chip.

I have modified the chip and fuses to suit the new board otherwise programs are the same as on the working system.

Result:

Bootloader displays prompt: waiting for data (as expected)

Download using SIOW.exe : runs through programming but application doesn't work.

I'm trying to understand if the new 18f46k80 chip requires me to adjust the LOADER_END address in BOOTLOADER.H.

Could this be problem? Studying BOOTLOADER.H but not really getting it at the moment.

Any help appreciated.

(PCWH compiler 5.051)
Ttelmah



Joined: 11 Mar 2010
Posts: 19518

View user's profile Send private message

PostPosted: Mon Oct 24, 2016 7:33 am     Reply with quote

Unless you have changed the size of the bootloader, no.

Are you sure your fuses are right?. Basic test, program using the same fuses, a little test program to flash an LED or toggle a pin at a fixed rate. Does the pin toggle or the LED flash at the right rate?. If this is wrong, the baud rate will be wrong and the bootloader will reject everything.....

Are you sure the pin you are using to trigger the bootloader is programmed correctly?. The 46K80 has a lot more peripherals that in some cases may need to be disabled. The pin used in the example (B5), is connected to CCP5 on the 46K80, which takes priority over port I/O.
jmaudley



Joined: 01 Feb 2011
Posts: 32
Location: 53

View user's profile Send private message AIM Address

PostPosted: Mon Oct 24, 2016 7:52 am     Reply with quote

LED flashes correctly.

RS232 debug message is working fine.


Bootloader triggers OK as I can see the message 'waiting for download'.

SIOW displays downloading.

Application doesn't run after download.

bootloader.h is included.
jmaudley



Joined: 01 Feb 2011
Posts: 32
Location: 53

View user's profile Send private message AIM Address

PostPosted: Wed Oct 26, 2016 2:26 am     Reply with quote

Resolved - thank you Richard CCS support.

I had a timeout specified in the #uses RS232 line which messed up the bootloader.

Had I posted the code I'm sure someone else would have spotted that.
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