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 CCS Technical Support

Help me with #int_timer1 and #build

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



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

Help me with #int_timer1 and #build
PostPosted: Tue Aug 08, 2006 4:29 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 5:48 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 2:40 pm     Reply with quote

Excellent!!, Thank you very much!!!

Best Regards,
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