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

Interrupts turned off

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



Joined: 19 Dec 2005
Posts: 2

View user's profile Send private message

Interrupts turned off
PostPosted: Wed Dec 21, 2005 12:14 pm     Reply with quote

I have an application that works when compiled with ver3.191. When compiled with ver3.241 it runs for a short time (a few minutes) and then stops working. The problem appears to be the interrupts are disabled and never re-enabled. (INTCON high order bit set to 0).

This is on a PIC 18F6720.

Has anyone seen similar behaviour? I'm hoping that there may be a clue out there before I build a number of test programs to try to isolate the cause.

Thanks

Howard
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Dec 21, 2005 7:08 pm     Reply with quote

I know you said it worked with the earlier version but have you checked the usual culprits the NOLVP and the WDT?

Failing that the most likley culprit is a problem with the interrupt handler or an interaction between your mainline code and the handler. Different versions of compilers can produce different code constructs. You may have an underlying problem that is masked by one and exposed by another.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Dec 22, 2005 2:19 am     Reply with quote

V3.241 is the latest compiler version. I'm always suspicious in using the newest version as you can't know how stable it is. Especially with the v3.241 I'm suspicious because of the release notes which mention an optimization bug being fixed which was introduced in v3.240.
Have you tried with an older compiler version in the range v3.226 to v3.239?
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