View previous topic :: View next topic |
Author |
Message |
pic gurusu Guest
|
Interrupts Disabled During call to prevent re-entrancy |
Posted: Wed Jul 30, 2008 12:11 am |
|
|
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
|
|
Posted: Wed Jul 30, 2008 12:39 am |
|
|
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
|
|
Posted: Wed Jul 30, 2008 12:54 am |
|
|
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
|
|
Posted: Wed Jul 30, 2008 1:23 am |
|
|
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
|
|
Posted: Wed Jul 30, 2008 1:32 am |
|
|
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
|
|
Posted: Wed Jul 30, 2008 2:45 am |
|
|
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
|
|
Posted: Wed Jul 30, 2008 1:02 pm |
|
|
Keep commenting out lines of code until you do find the problem. |
|
|
|