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: 1634 Location: Perth, Australia
Posted: Wed Dec 21, 2005 7:08 pm
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
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Thu Dec 22, 2005 2:19 am
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?
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