![]() |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
I've been able to successfully cause the 8.2 battery voltage bug to occur on demand by sequentially downloading 2 different versions of code (both based off the default code). I haven't narrowed down the exact cause, but I will see what I can find out tonight and call IFI tomorrow. With a way to reproduce the problem, they will hopefully be able to come up with a fix or workaround.
Mike |
Re: The 8.2 (or 8.3) Battery Voltage Bug
I have some information that may be relevant. There is a problem with the silicon in the PIC chip that involves the interrupts not properly restoring register values upon return. I'm not sure if this could cause the problems you're all reporting, but the possibility exists - it may be this problem that the new libraries are supposed to fix.
You can read about this and other errors in the silicon of this line of chips here: http://ww1.microchip.com/downloads/e...doc/80221b.pdf |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
The new libraries didnt fix are problem. And the only interupts used are with Kevin's code.
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
We had this problem too - our workaround was to stop using structures. It seemed that even having a simple struct of a few integers would cause rampant corruption and crashing. I'd suggest that as something to try if you're at your wit's end...
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
-Kevin |
Re: The 8.2 (or 8.3) Battery Voltage Bug
We were using a struct too, in our auto routines....
Has everyone here with this problem used a struct? It'd be funny if it was something as simple as that, but just checking... |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
also uses structs. Remember that in an earlier post in this thread the problem has been demonstrated to occur with the default code. The problem comes and goes with small changes to your code, so things like "getting away from structs" might make the problem go, but it will come back later. Unless there is a decisive cure, the only way out is the 2005 controller and a squeeze to fit if your code has gotten too big... Eugene |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Our code: Uses a lot of structures with mixed char, int, and long types. Uses Kevin Watson's serial port code. Uses Timer 4 interrupt for a 5ms real time clock Uses Kevin Watson's ADC with 5 analog channels each with a 200Hz rate for a 1KHz timer 2 interrupt Points to structures and calls routines through pointers Uses two additional shaft encoder interrupts Assembles a lot of instrumentation data and sends that to the OI user variables, LED variables, and unused PWM outputs for data logging Process_data_from_local_IO always runs at least every 10ms - we set a flag if two or more 5ms timer ticks have occured so I don't think this is an excessive loading issue. A printf with multiple arguments will cause this dely, however. When we removed support for the shaft encoders and yanked out all the code that was not absolutely necessary toward the end of the qualification rounds on Sat the problem went away but it is clear to me that it will come back. Code that was "bad" causing the 8.2 volt problem on Friday night worked first thing Sat morning! (Power was removed for an extended period, however the backup battery was connected overnight) Tried to re-load the same code and it started failing again. My instincts and experience with these problems is leading me to take a good look at the map file to see if there is something fishy going on with data section allocation. The problem is is that I don't have a "known good" hex/map file to use as a reference. We had no problems until Friday and I was wondering if it was the new IFI libraries but I can see from this thread that the problem can occur with the old libraries. I posted more details to IFI - waiting for a reply. If all else fails, I am inclined to trim the code to fit in the 2005 controller - not sure if it is legal to use it yet? Greg |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
(although I like the idea of using a timer to make sure that you aren't bogging down on the loop execution) |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
| All times are GMT -5. The time now is 19:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi