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

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
pic gurusu
Guest







Interrupts Disabled During call to prevent re-entrancy
PostPosted: Wed Jul 30, 2008 12:11 am     Reply with quote

hi all,

my code gives some warning after compile,

Interrupts Disabled During call to prevent re-entrancy (@DIV3232)
Interrupts Disabled During call to prevent re-entrancy (@MUL3232)

after compiling, compiling notice below shows below number of line as (917th Line) but my code has just 913 lines.

So i couldn't find division and multiplication that prevents interrupts in my code. How to find theese multiply and division. (besides, i didnt use any functions MUL() or DIV(), i just use * and / lot of times. )

thks in adv.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 30, 2008 12:39 am     Reply with quote

Quote:
My code gives some warning after compile.

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=32967


Quote:
I didn't use any functions MUL() or DIV(), i just use * and / lot of times

What operation is done by the '/' symbol ? What CCS library code
would be used to do that operation ?
pic gurusu
Guest







PostPosted: Wed Jul 30, 2008 12:54 am     Reply with quote

Quote:
What operation is done by the '/' symbol ? What CCS library code
would be used to do that operation ?


is not symbol "/" for division? i do division with it.
i dont add any of library files and not use divide function.?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 30, 2008 1:23 am     Reply with quote

Quote:
is not symbol "/" for division ?

That is correct. That's why the message refers to the CCS DIV3232
function. You are doing division.
pic gurusu
Guest







PostPosted: Wed Jul 30, 2008 1:32 am     Reply with quote

sorry it's my fault, i didnt achieve to explain my problem,

but i have used three of timer intterrupts, and three of them consist some division (/) proccesses, not only 1 time, or not only at 1 interrupt. a lot of time, and in all of them.

now, i wanna mean, which of them causes that warning. and if i use DIV function, does it handle my problem?

if it does:
DIV(a,b) consist remainder and quotient. i need just quotient. how to get it.?

thx.
pic g.
Guest







PostPosted: Wed Jul 30, 2008 2:45 am     Reply with quote

i did comment line (//) all of my timer interrupts one by one, to find out which one of them causes these warnings(@DIV3232, @MUL3232)

but none of them provide to get rid of these warning. So these @MUL3232 and @DIV3232 staffs are not in my interrupts. else where, but where? how to find?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 30, 2008 1:02 pm     Reply with quote

Keep commenting out lines of code until you do find the problem.
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