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 support@ccsinfo.com

PIC bootloader

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







PIC bootloader
PostPosted: Thu May 25, 2006 5:07 am     Reply with quote

I have developed a CAN bootloader for the PIC18F448. It works fine, and now I want to use it for a PIC18F4580. But it doesn't seem to work...
I have laoded just the application with the reset and interrupt vectors reallocated, but it doesn't work either. Could it be that the #build does not work the same way with this device?

The following code is what I use for reallocating the code and leaving free space for the bootloader:

Code:

#define LOADER_END 0x3FF
#define LOADER_SIZE 0x2FF

#build (reset=LOADER_END+2, interrupt=LOADER_END+8)
#org 0, LOADER_END{}
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu May 25, 2006 5:36 am     Reply with quote

You don't give us enough information to build an exact copy of your situation, please post a short but complete program and mention your compiler version.

Quote:
I have laoded just the application with the reset and interrupt vectors reallocated, but it doesn't work either.
Is that all you did? With just the relocated vectors it will not work. You need some code (the bootloader) at the original reset and interrupt addresses to jump to your relocated vectors.
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