Added the PIC tag... -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Harold Hallikainen Sent: Friday, July 11, 2003 5:51 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: C compiler choice ? I'm using C18 for a pretty large project running on an 18F6720. I DID = have problems with corrupt values being returned from function calls. I = changed to the large memory model and that problem seems to have gone = away. I do still have a problem with the ICD2 and C18 when I do a "run = to cursor." The program stops at the appropriate point, but MPLAB then = flashes 'updating memory' in the bottom left corner of the screen = forever, keeping me from doing much more until I shut down MPLAB and = start it again. It seems that the step functions (F7 and F8) still work = when it's in that strange state, and the mouseover does show variable = contents, so it's not a disaster, just almost. I noticed yesterday that = it seems to work better if I set a breakpoint instead of doing run to = cursor (which, I think, would be pretty much the same thing as far as = the debugger is concerned). Microchip has verified the problem when = running the debugger with my code (and no one elses) and is working on = it. Other than this one thing, C18 has se rved me well for about a year. Harold FCC Rules Online at http://www.hallikainen.com/FccRules/ --- Omer Yalhi wrote: I am using C18 v2.2. The pic i am using is 18F452 with portb 0, timer 0 interrupt, timer 1, low voltage interrupts. I have a stable version of the software. Sometimes I change a very small thing, like it was A=3D1, = I change it to A=3D0 and the software hangs!!! Unbeliveable! I always blamed this result to the buggy 18f452 but I am not sure (don't have the -not buggy- one). This remaind me of another problem. How would I implement a WDT with C? Isn't it a bit difficult maybe impossible or am I not thinking right? -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Peter Moreton Sent: Friday, July 11, 2003 11:05 AM To: PICLIST@MITVMA.MIT.EDU Subject: C compiler choice ? I'm using the Microchip C18 v2.2 compiler at the moment, and getting some odd results (specifically parameters passed to a routine getting corrupted by the time the routine is reached) Now, I'm sure it's probably me doing something goofy, and I'm debugging on that basis now, but, could I just ask the general question "is the Microchip C18 compiler any good?" - I know a lot of folk use the various 3rd party compilers, and just wonder if perhaps C18 is still a bit buggy? Has anyone had success with C18 for a big project, using several interrupts, Timers & I/O modules etc? Thanks, Peter Moreton -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads