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

Interrupt disabled during strcpy()?

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



Joined: 09 Mar 2005
Posts: 3

View user's profile Send private message

Interrupt disabled during strcpy()?
PostPosted: Wed Mar 09, 2005 10:54 am     Reply with quote

Are my eyes deceiving me or are general interrupts disabled for a strcpy? What am I missing here or why?

Using 18F242, PCH 3.212

Easiest way to confirm is compile EX_STR.C

Paul
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 10, 2005 1:51 pm     Reply with quote

I don't have that version, but I tried it with PCH 3.188 and it does
turn off the GIE bit during strcpy(). Some of the older errata documents
for the 18Fxx2 said you should disable peripheral interrupts during
table write operations, but there are no table writes in strcpy.
It could be just a mistake that got left in the code. You should email
CCS support and let them know about it. Tell them how to duplicate
the problem and show them a section of the .LST file with the bad code
marked. Also tell them your compiler version.
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