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

Compiler Option for implementing Boot Loader

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








Compiler Option for implementing Boot Loader
PostPosted: Fri Jul 09, 2004 10:12 am     Reply with quote

Hi

I am trying to implement Boot Laoder in 16F819 using CCS Compiler
My Compiler Version is 3.186
I went through the archives about this topic

Lokks like advnaced versions of the compiler (3.20) have the directive " #build(reset = 0x xxxx )" to relocate the user code to the desired location

But I do not see this option inmy version of the compiler
Is there any way of implementing this in ver 3.186
Anybody has a similar experience?

Any relevant info would be of great help

Thanks & Best Regards,

Raghu
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 09, 2004 11:09 am     Reply with quote

Quote:

Looks like advanced versions of the compiler (3.20) have the
directive " #build(reset = 0x xxxx )" to relocate the user code to
the desired location. But I do not see this option in my version of
the compiler. Is there any way of implementing this in ver 3.186 ?

Those directives have actually been in the compiler for over a year.
They were just undocumented. Do a search on this forum for these
keywords: build reset interrupt (Be sure to select "search for all terms")
You'll see lots of articles discussing how to use these directives.
They should work with your version.
ckielstra



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

View user's profile Send private message

PostPosted: Fri Jul 09, 2004 11:11 am     Reply with quote

These pre-processor directives are existing for some time now. Too bad CCS didn't document them anywhere. I use the code below in v3.187 and it works great.

Code:
// Remap the interrupt vectors and reserve space for the bootloader
#build(reset=0x0200)
#build(interrupt=0x0208)
#org 0x0000,0x01ff
void bootloader() {
#asm
nop
#endasm
}
ckielstra



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

View user's profile Send private message

PostPosted: Fri Jul 09, 2004 11:13 am     Reply with quote

Does anyone know how to remap the interrupts when using both normal and high priority interrupts?
Guest








PostPosted: Fri Jul 09, 2004 12:11 pm     Reply with quote

Thanks for all the replies

I will try it out

Thanks & Best regards,
Raghu
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