Welcome, Guest. Please login or register.

Username: Password:

Author Topic: Error compiling AEQ 8.17 with Arduino IDE  (Read 1272 times)

corwen

  • Newbie
  • *
  • Posts: 2
    • View Profile
Error compiling AEQ 8.17 with Arduino IDE
« on: March 10, 2020, 22:08:17 »

Hello Stargazers!

I was about, to change PinMappings.h to meet my needs, but I stucked when compiling the sketch. I thought I messed up someting unintentionally, so I  tried to verify the untouched firmware, downloaded from AstroEQ-Firmware-master. The only thing I had to change, the path of vernum.txt and vernumstr.txt to the full one. After that, the following messages came up on the console:

Code: [Select]
Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\corwe\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0042 -ide-version=10812 -build-path C:\Users\corwe\AppData\Local\Temp\arduino_build_188162 -warnings=none -build-cache C:\Users\corwe\AppData\Local\Temp\arduino_cache_565688 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose D:\_gAstro\817_orig_AstroEQ-master\AstroEQ-Firmware\AstroEQ\AstroEQ.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\corwe\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0042 -ide-version=10812 -build-path C:\Users\corwe\AppData\Local\Temp\arduino_build_188162 -warnings=none -build-cache C:\Users\corwe\AppData\Local\Temp\arduino_cache_565688 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose D:\_gAstro\817_orig_AstroEQ-master\AstroEQ-Firmware\AstroEQ\AstroEQ.ino
Using board 'mega' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\AstroEQ.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\AstroEQ.c
Using cached library dependencies for file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\EEPROMReader.c
Using cached library dependencies for file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\SerialLink.c
Using cached library dependencies for file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\commands.c
Using cached library dependencies for file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\synta.c
Generating function prototypes...
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\AstroEQ.ino.cpp" -o "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
Using previously compiled file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\SerialLink.c.o
Using previously compiled file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\commands.c.o
Using previously compiled file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\AstroEQ.c.o
Using previously compiled file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\EEPROMReader.c.o
Using previously compiled file: C:\Users\corwe\AppData\Local\Temp\arduino_build_188162\sketch\synta.c.o
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\AstroEQ.ino.cpp" -o "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\AstroEQ.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\corwe\AppData\Local\Temp\arduino_cache_565688\core\core_arduino_avr_mega_cpu_atmega2560_2cb511727fd0f7bc3455e21cd7b42d76.a
Linking everything together...
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162/AstroEQ.ino.elf" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\AstroEQ.c.o" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\EEPROMReader.c.o" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\SerialLink.c.o" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\commands.c.o" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\synta.c.o" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162\\sketch\\AstroEQ.ino.cpp.o" "C:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162/..\\arduino_cache_565688\\core\\core_arduino_avr_mega_cpu_atmega2560_2cb511727fd0f7bc3455e21cd7b42d76.a" "-LC:\\Users\\corwe\\AppData\\Local\\Temp\\arduino_build_188162" -lm
C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `synta_hexToLong':

<artificial>:(.text+0x2ca): undefined reference to `hexToByte'

<artificial>:(.text+0x2d4): undefined reference to `hexToByte'

<artificial>:(.text+0x2de): undefined reference to `hexToByte'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `motorStopRA':

<artificial>:(.text+0x3dc): undefined reference to `clearGotoRunning'

<artificial>:(.text+0x3f0): undefined reference to `clearGotoRunning'

<artificial>:(.text+0x44e): undefined reference to `timerDisable'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `motorStopDC':

<artificial>:(.text+0x466): undefined reference to `clearGotoRunning'

<artificial>:(.text+0x47c): undefined reference to `clearGotoRunning'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `motorStartDC':

<artificial>:(.text+0x5d0): undefined reference to `timerEnable'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `gotoMode':

<artificial>:(.text+0x726): undefined reference to `clearGotoDecelerating'

<artificial>:(.text+0x72c): undefined reference to `setGotoRunning'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `__vector_16':

<artificial>:(.text+0xb06): undefined reference to `setGotoDecelerating'

<artificial>:(.text+0xb38): undefined reference to `clearGotoRunning'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `__vector_31':

<artificial>:(.text+0xcf8): undefined reference to `setGotoDecelerating'

<artificial>:(.text+0xd2a): undefined reference to `clearGotoRunning'

<artificial>:(.text+0xd34): undefined reference to `timerDisable'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `main':

<artificial>:(.text.startup+0x7a0): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x7ac): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x934): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x9d2): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0xbcc): undefined reference to `private_byteToHex'

<artificial>:(.text.startup+0xc66): undefined reference to `cmd_fVal'

<artificial>:(.text.startup+0xe9c): undefined reference to `hexToByte'

<artificial>:(.text.startup+0x106c): undefined reference to `hexToByte'

<artificial>:(.text.startup+0x10d2): undefined reference to `hexToByte'

<artificial>:(.text.startup+0x10f6): undefined reference to `hexToByte'

<artificial>:(.text.startup+0x115c): undefined reference to `hexToByte'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o:<artificial>:(.text.startup+0x1222): more undefined references to `hexToByte' follow

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o: In function `main':

<artificial>:(.text.startup+0x1420): undefined reference to `nibbleToHex'

<artificial>:(.text.startup+0x142e): undefined reference to `nibbleToHex'

<artificial>:(.text.startup+0x143a): undefined reference to `nibbleToHex'

<artificial>:(.text.startup+0x145e): undefined reference to `private_byteToHex'

<artificial>:(.text.startup+0x146e): undefined reference to `private_byteToHex'

<artificial>:(.text.startup+0x14c0): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x14f8): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x151e): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x153e): undefined reference to `cmd_updateStepDir'

<artificial>:(.text.startup+0x1564): undefined reference to `cmd_updateStepDir'

C:\Users\corwe\AppData\Local\Temp\ccvKQFNG.ltrans0.ltrans.o:<artificial>:(.text.startup+0x15d4): more undefined references to `cmd_updateStepDir' follow

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Mega or Mega 2560.

Anyone can help solve this problem, please?

Kind regards,
Daniel
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: Error compiling AEQ 8.17 with Arduino IDE
« Reply #1 on: March 10, 2020, 22:56:45 »

AstroEQ doesn't use the Arduino IDE for compilation - there is no "sketch".

I switched away from the Arduino software a few years ago for various reasons, in part because it was going through a rapid changes that were messing everything up, and also because the amount of bloat that resulted from using C++ and the arduino libraries meant the code wouldn't fit on the ATMega162 variant.


To compile you will need Atmel Studio 7 which is free to download from Microchip (https://www.microchip.com/mplab/avr-support/atmel-studio-7).
Once installed, open the "AstroEQ6.atsln" project file, edit the PinMappings.h file and build the solution.


Kind Regards,
Tom
Logged
Tom Carpenter (AstroEQ)

corwen

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Error compiling AEQ 8.17 with Arduino IDE
« Reply #2 on: March 11, 2020, 11:33:14 »

Hello Tom,

Thanks for the fast response! Awkward, to miss a such important information what programming framework to use. With your quick guide, compiling works like a charm, so again, thank you!

DAniel
Logged