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

PIC24 USB HID "Interrupts Disabled" Warnings

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



Joined: 27 Sep 2005
Posts: 25

View user's profile Send private message

PIC24 USB HID "Interrupts Disabled" Warnings
PostPosted: Thu Jun 13, 2013 7:08 pm     Reply with quote

I have followed the example ex_usb_hid.c, using a 24FJ256GB106, PCD 5.001, MPLAB X, and get the following warnings:

Warning#216 Interrupts disabled during call to prevent re-entrancy: (usb_clear_isr_reg)
Warning#216 Interrupts disabled during call to prevent re-entrancy: (usb_token_reset)

The warnings appear to be triggered by both usb_init_cs() and usb_task(), and are indicated as occurring at the end of the file (not too useful). Other than following the basic example, the following is added:

#define USB_CABLE_IS_ATTACHED 1
#define USB_CON_SENSE_PIN PIN_F3
#include <pic24_usb.h>
#include <usb_desc_hid.h>
#include <usb.c>

Does anyone know why these earnings are generated, and/or if they are serious? I don't yet have the hardware to test.

I have not succeeded in finding an example specific to the 24F with USB.

Thanks, Steve
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 8:51 pm     Reply with quote

See the comments about "interrupts disabled to prevent re-entrancy" in these threads:
http://www.ccsinfo.com/forum/viewtopic.php?t=44315&start=9
http://www.ccsinfo.com/forum/viewtopic.php?t=27115
SteveW



Joined: 27 Sep 2005
Posts: 25

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 9:13 pm     Reply with quote

PCM programmer: Thanks for the response. I was hoping that the answer was along the lines of what you pointed me to.
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