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

Warning 216 _____ Interrupt disabled during call to prevent.

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



Joined: 18 Apr 2006
Posts: 66

View user's profile Send private message Yahoo Messenger

Warning 216 _____ Interrupt disabled during call to prevent.
PostPosted: Sun Apr 20, 2008 12:01 pm     Reply with quote

I am using an 18F4550 using int_rda for capturing rs232 data and using int_timer1 for maintaining a seconds counter. I disable the appropriate interrupt while the other is working to prevent re-entering the irq routines but when I compile I get the following message in my watch output... (I have used x's for file name)

Warning 216 xxxxxx.c Line 982(0,1) Interrupt disabled during call to prevent re-entrancy: (@ADDFF).

The only problem is that my source code ends at line 979. It appears that this is causing the interrupt to become disabled, but I cannot see anything that would cause it... Anyone have any ideas?
Ttelmah
Guest







PostPosted: Sun Apr 20, 2008 2:41 pm     Reply with quote

It'll happen whenever you use the same functions inside an interrupt, and in the main code. It is only a warning. A quick search here, will find a huge amount about it. Since it applies to the 'main' as a whole, the line number is always the last line of this.

Best Wishes
foodwatch



Joined: 18 Apr 2006
Posts: 66

View user's profile Send private message Yahoo Messenger

PostPosted: Sun Apr 20, 2008 5:58 pm     Reply with quote

Thanks.... its been a long weekend and getting a bit foggy....
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