![]() |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Code:
#pragma interruptlow InterruptHandlerLow save=PROD,section("MATH_DATA"),section(".tmpdata")EDIT: What version of the compiler is everyone using? |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
-Kevin |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
So far, the IFI folks think that ADC_Int_Handler() is too long, but I'm not sure I agree (since I'm not seeing the RLOD, and it works flawlessly on my 2004 RC). Oh, and to answer your question, I'm using mcc18 v2.40. (Is an update available to us?) |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Yes, we are using v 2.40 as well, this is the version that was supplied in the kit. Did we miss an update? I don't recall seeing anything come across the board...
Perhaps that is the root of our issues, From the IFI Website: NOTE: To Compile 2004, 2005 or 2006 code, use MPLAB ver 7.20 and C18 Compiler ver 2.40 (newer versions can not be used) Kevin...you didnt give us base code compiled with 2.44 did you...? :rolleyes: Even if so, we do appreciate all the hard work you do to provide us with the code each year, so Thank You! :) |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Here's an idea for someone with access to a 2006 controller: Try compiling your code for the PIC18F8520 instead of the PIC18F8722 and see if that cures the problem. It'll still run on the '8520, but I wonder if it might fix some of the problems (if it is truly a compiler bug, maybe it is restricted to the '8722 compiler). Just a hunch... :) |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Greg |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Thanks to the Wayback Machine (www.archive.org), I was able to find the 2.42 upgrade file here:
http://ww1.microchip.com/downloads/e...oc/C18_242.zip Aha! I found the 2.44 upgrade file here: http://ww1.microchip.com/downloads/e...rade-v2_44.exe I found this interesting section in the Readme (emphasis mine): "The following parts have updates and/or corrections: 18F6520, 18F6620, 18F8520, and 18F8620" Also, it makes mention of the 18F8722 having a problem or two... :) |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Has anyone tried a master update in case some of the RCs have a corrupted master firmware? |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
I asked IFI if they knew what master processor version was shipped but I haven't gotten a reply yet. Part of post to IFI new problem under gsmith last night... ******* I ran into a problem at the VCU regional starting last Friday where the communications between the OI and RC were getting corrupted. It looks like the data structure between the master processor and the OI is shifted by a byte or so. We are using the 2006 RC and OI received in the FIRST KOP. We have not re-flashed the master processor and I don’t know what firmware revision it is although I noticed that the date of the Frc_master_v12.bin file, the latest?, is 10/27/2005 so I assume we have the latest master code. ***** |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
Quote:
Quote:
-Kevin |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
|
Re: The 8.2 (or 8.3) Battery Voltage Bug
I'm using 2.40 and I haven't seen any of the problems stated here.. The real test will come on Thursday, when I see if any of these problems have appeared since we put it in the box...
I'm going to check tonight to see if we have a spare 2005/2004 RC that we can bring, but as of the current FIRST rules, they are not allowed. Maybe someone should go post on the Q&A forums, explaining the situation.. maybe we could get the 2005 RC cleared to use until this problem is resolved (It DOES work with the field control system, we were using it at the scrimmage with no problems) It wouldn't even be a tight fit for me.. 55% usage on the 2005 controller :) Someone with access to a 2006 RC: Disable compiler optimizations... Project->Build Options->Project->MPLAB C18->Optimization (Dropdown), Disable. If that fixes it, then its a compiler bug (But it can be worked around!) I can tell you right now I've had all the optimizations enabled since the second week of build, and haven't seen this problem. |
Re: The 8.2 (or 8.3) Battery Voltage Bug
Quote:
"2006 RC Code (zip,21-28-2006) Contains both Default/User and Master Code, contains new libraries below." Zip file. |
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