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
Posted: Fri Jul 09, 2004 11:09 am
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
Posted: Fri Jul 09, 2004 11:11 am
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
Posted: Fri Jul 09, 2004 11:13 am
Does anyone know how to remap the interrupts when using both normal and high priority interrupts?
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