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

Problem with my Bootloader PIC18

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



Joined: 28 Nov 2003
Posts: 3

View user's profile Send private message Send e-mail

Problem with my Bootloader PIC18
PostPosted: Mon Apr 05, 2004 12:29 am     Reply with quote

Hello,

i wrote an bootloader and he works fine. today I want to compile again and i get an ERROR

invalid Org range

My Code:
//#ORG 0x0006,0x001e
void IRQ1()
{
#asm
goto 0x2008
nop
nop
nop
nop
nop
nop
goto 0x2018
#endasm
}

ok -> I try the code of CCS
#int_global
void isr(void)
{
#asm
goto 0x2008
nop
nop
nop
nop
nop
nop
goto 0x2018
#endasm
}
And then I get this ERROR:
Duplicate Interrupt function

I need this function to move the IRQs to the Application.

Can anyone help me ?

regards

Oliver
Al



Joined: 13 Nov 2003
Posts: 28
Location: Belfast

View user's profile Send private message

Re: Problem with my Bootloader PIC18
PostPosted: Mon Apr 05, 2004 5:43 am     Reply with quote

These are 2 separate problems.


i wrote an bootloader and he works fine. today I want to compile again and i get an ERROR

invalid Org range

For the ORG error - do a search for INVALID ORG range - you will find others with the same problem. Also try to combine the above search with Author: Roger Courtney - He has some usefuls comments on it.



ok -> I try the code of CCS
#int_global
void isr(void)
{
#asm
goto 0x2008
nop
nop
nop
nop
nop
nop
goto 0x2018
#endasm
}
And then I get this ERROR:
Duplicate Interrupt function
[/quote]

For the second problem the #int_global interupt function names seems strange to me as this is a reference to all interupts. In my mind you should be waiting for a specific interrupt. For example if you are waiting for a character arriving on the RS232 line use #int_rda. Which interrupt are you waiting for?

Also Iwould rename the interupt something other than isr.
_________________
Alan Murray
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