View previous topic :: View next topic |
Author |
Message |
cfernandez
Joined: 18 Oct 2003 Posts: 145
|
Help me with #int_timer1 and #build |
Posted: Tue Aug 08, 2006 4:29 pm |
|
|
Hi,
I use a bootloader and in the main program I use the following instruction:
#build ( reset = 0x05FF + 2, interrupt = 0x05FF + 8 )
#org 0, 0x05FF {}
but now I need use the following interrupt:
#int_timer1
void ET_OverflowCount( void )
{
ET_OFCount++;
}
and the compiler tell me the following error:
Info 300: Segment at 00000-005FE (0000 used) Priv
Info 300: Segment at 00600-00606 (0004 used) Priv
Info 300: Segment at 00608-0FFFE (0004 used)
Info 300: Segment at 10000-1FFFE (0000 used)
Info 300: Attempted to create: 00606-006A4 for ISR
Error 126: Invalid ORG Range
Where is the problem????
Thank you for help me!
Best Regards, |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed Aug 09, 2006 5:48 am |
|
|
You have a problem with addresses overlapping. Change to: Code: | #build ( reset = 0x05FF + 2, interrupt = 0x05FF + 10 )
#org 0, 0x05FF {}
|
|
|
|
cfernandez
Joined: 18 Oct 2003 Posts: 145
|
|
Posted: Wed Aug 09, 2006 2:40 pm |
|
|
Excellent!!, Thank you very much!!!
Best Regards, |
|
|
|