|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
ADC code errors
I have been trying to compile the code for this year (gyro) and have been running into a strange error during the compile that says that the ADC voltage variables are not set, could anyone help me make the correct modifications to ether our build environment or the code itself to get it to compile?
|
|
#2
|
|||||
|
|||||
|
Re: ADC code errors
Do you mean like:
ADC_VREFPLUS_VDD and ADC_VREFMINUS_VSS ? If that's what you're talking about then there are two solutions to this problem with the student version 3.15 of the compiler: -- Fix the 3.15 version of the adc.h system file. There is a missing "#endif" at line 536. It does a series of PIC architecture checks and they forgot to close one conditional #if, thereby wiping out all the subsequent statements. or -- You can comment out the code that uses those macros. |
|
#3
|
||||
|
||||
|
Re: ADC code errors
yes, that was the error, thank you, il get to updating our code when next i get a chance to.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timers causing code errors? | Uberbots | Programming | 6 | 22-01-2008 02:10 |
| Problems when combine ADC code && camera code | nirhaim1942 | Programming | 1 | 24-01-2007 06:58 |
| ADC code effecting motor outs??? | Kyveck | Programming | 16 | 28-03-2006 15:12 |
| adc code problem | railerobotics | Programming | 6 | 24-01-2006 22:26 |
| problems using gyro/adc code with camera default code | tanstaafl | Programming | 7 | 22-01-2006 23:09 |