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

interrupts disabled during call to prevent re-entrancy

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



Joined: 13 Aug 2012
Posts: 1

View user's profile Send private message

interrupts disabled during call to prevent re-entrancy
PostPosted: Mon Aug 13, 2012 10:12 am     Reply with quote

Hello everyone,
CCS compiler give me a warining:

>>> warnning 216: interrupts disabled during call to prevent re-entrancy:[@PSTRINGC7_115200_62_63]

But I don't know the reason. The program can't work properly? Would you pls tell me? please help...
Idea
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Mon Aug 13, 2012 11:12 am     Reply with quote

Chances are you have bloated up an isr. The rule for isr's is never never ever put printf or float in an isr. Now you might break the rule during testing but you must be aware of the time a printf or float calc blocks the isr.
Here your issue is related to string routines.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Mon Aug 13, 2012 1:35 pm     Reply with quote

post your code in question???
mr_Orange



Joined: 14 Apr 2012
Posts: 12

View user's profile Send private message

PostPosted: Wed Aug 15, 2012 3:13 am     Reply with quote

I do get the same message because I use fprintf() in the HLVDIN interrupt. I think that the compiler is warning you about the possibility that while main is using fprintf() the interrupt routine is called so it tries to start fprint() a second time while the first fprintf() is not finished. I think the interrupt will start up after finishing the first fprintf() in main() so there will be a delay in starting the interrupt routine.

Since in my case HLVDIN detects that the controller is powered down I don't bother since the fprintf() in the interrupt is executed and the program stays in the HLVDIN interrupt routine until the power is gone.
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