: Interrupts disabled during call to prevent re-entrancy: malloc
any help,as always is greatly appreciated
Thanks
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Sat Aug 06, 2005 10:05 am
Not an error but something doesn't seem right or imformation to the user that he might not realize. In this case, you call a function from an interrupt so the compiler automatically disabled interrupts in that function so that the local variables won't get trashed if you are in that function and an interrupt occurs and that interrupt calls that same function.
MikeValencia
Joined: 04 Aug 2004 Posts: 238 Location: Chicago
Posted: Sun Aug 07, 2005 8:13 pm
Similiarly, you will see the same kind of warning if you call delay_ms() in an ISR and also in main(). Best thing to do is not to use delay_ms() in an isr.
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