Re: uBITX Software error messages #ubitx-help

Vince Vielhaber
 

You're not paying close enough attention to directory names and the ino file name. The main file that contains the setup() and loop() routines has to be the same name as the directory name but with .ino at the end.

eg.

uBITX.20/uBITX20.ino = no good

uBITX20/uBITX20.ino = good

and

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino = no good

C:\Users\mop\AppData\Local\Temp\sketch_mar12a\sketch_mar12a.ino = good

Vince.

On 03/12/2018 11:35 AM, bengt-ingvar.andersson@... wrote:
Hallo !

I have just put together the uBITX40 and had some QSO with good result.

Now I try to compile KD8CEC sketch version but also got a lot of errors.

I use the file uBITX.20/uBITX20.ino.

I have compile and loaded severels of Allards sketches before with no
problom to the " old " BITX40.

What do I wrong ?

SM6ERS/Ingvar

Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), Kort:"Arduino Nano,
ATmega328P"

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void setNextHamBandFreq(long unsigned int, char)':

sketch_mar12a:394: error: 'byteToMode' was not declared in this scope

byteToMode(loadMode, 1);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'byte delay_background(unsigned int, byte)':

sketch_mar12a:419: error: 'getPaddle' was not declared in this scope

if (getPaddle() != 0) //Interrupt : Stop cw Auto mode by Paddle
-> Change Auto to Manual

^

sketch_mar12a:423: error: 'autoSendPTTCheck' was not declared in this scope

autoSendPTTCheck();

^

sketch_mar12a:425: error: 'Check_Cat' was not declared in this scope

Check_Cat(3);

^

sketch_mar12a:430: error: 'Check_Cat' was not declared in this scope

Check_Cat(fromType);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void setFrequency(long unsigned int)':

sketch_mar12a:499: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_USB - usbCarrier + f + (isIFShift
? ifShiftValue : 0));


^

sketch_mar12a:503: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_LSB + usbCarrier + f + (isIFShift
? ifShiftValue : 0));


^

sketch_mar12a:510: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_LSB + cwmCarrier + f + (isIFShift
? ifShiftValue : 0));


^

sketch_mar12a:514: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_USB - cwmCarrier + f + (isIFShift
? ifShiftValue : 0));


^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void startTx(byte, byte)':

sketch_mar12a:549: error: 'byteToMode' was not declared in this scope

byteToMode(vfoA_mode, 0);

^

sketch_mar12a:554: error: 'byteToMode' was not declared in this scope

byteToMode(vfoB_mode, 0);

^

sketch_mar12a:563: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(0, 0);

^

sketch_mar12a:589: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void stopTx()':

sketch_mar12a:598: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(0, usbCarrier + (isIFShift ? ifShiftValue : 0));
//set back the carrier oscillator anyway, cw tx switches it off

^

sketch_mar12a:600: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(0, cwmCarrier + (isIFShift ? ifShiftValue : 0));
//set back the carrier oscillator anyway, cw tx switches it off

^

sketch_mar12a:609: error: 'byteToMode' was not declared in this scope

byteToMode(vfoA_mode, 0);

^

sketch_mar12a:614: error: 'byteToMode' was not declared in this scope

byteToMode(vfoB_mode, 0);

^

sketch_mar12a:621: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void ritDisable()':

sketch_mar12a:640: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void checkButton()':

sketch_mar12a:670: error: 'btnDown' was not declared in this scope

if (!btnDown())

^

sketch_mar12a:673: error: 'btnDown' was not declared in this scope

if (!btnDown()) //debounce

^

sketch_mar12a:676: error: 'doMenu' was not declared in this scope

doMenu();

^

sketch_mar12a:679: error: 'btnDown' was not declared in this scope

while(btnDown()) {

^

sketch_mar12a:681: error: 'Check_Cat' was not declared in this scope

Check_Cat(0);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void doTuningWithThresHold()':

sketch_mar12a:710: error: 'enc_read' was not declared in this scope

s = enc_read();

^

sketch_mar12a:746: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void doRIT()':

sketch_mar12a:753: error: 'enc_read' was not declared in this scope

int knob = enc_read();

^

sketch_mar12a:765: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void initSettings()':

sketch_mar12a:844: error: 'printLineF' was not declared in this scope

printLineF(1, F("Init EEProm..."));

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void setup()':

sketch_mar12a:1111: error: 'printLineF' was not declared in this scope

printLineF(1, F("CECBT v1.03"));

^

sketch_mar12a:1113: error: 'Init_Cat' was not declared in this scope

Init_Cat(38400, SERIAL_8N1);

^

sketch_mar12a:1114: error: 'initMeter' was not declared in this scope

initMeter(); //not used in this build

^

sketch_mar12a:1119: error: 'printLineFromEEPRom' was not declared in
this scope

printLineFromEEPRom(0, 0, 0, userCallsignLength -1); //eeprom to
lcd use offset (USER_CALLSIGN_DAT)

^

sketch_mar12a:1125: error: 'clearLine2' was not declared in this scope

clearLine2();

^

sketch_mar12a:1130: error: 'byteToMode' was not declared in this scope

byteToMode(vfoA_mode, 0);

^

sketch_mar12a:1131: error: 'initOscillators' was not declared in this scope

initOscillators();

^

sketch_mar12a:1136: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

sketch_mar12a:1138: error: 'btnDown' was not declared in this scope

if (btnDown())

^

sketch_mar12a:1139: error: 'factory_alignment' was not declared in this
scope

factory_alignment();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void checkAutoSaveFreqMode()':

sketch_mar12a:1160: error: 'FrequencyToVFO' was not declared in this scope

FrequencyToVFO(1);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void loop()':

sketch_mar12a:1173: error: 'controlAutoCW' was not declared in this scope

controlAutoCW();

^

sketch_mar12a:1175: error: 'cwKeyer' was not declared in this scope

cwKeyer();

^

sketch_mar12a:1187: error: 'idle_process' was not declared in this scope

idle_process();

^

sketch_mar12a:1194: error: 'Check_Cat' was not declared in this scope

Check_Cat(inTx? 1 : 0);

^

exit status 1
'byteToMode' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Join BITX20@groups.io to automatically receive all group messages.