NodeMCU Not Found

Hi Experts! I'm running Arduino IDE 1.8.19 on a MacBook Pro running Mac OS 10.13.6. I'm trying to upload a program to an ai-thinker NodeMCU-32 with an ESP-32S microcontroller and a CH340C USB to serial chip. I've downloaded and installed the CH340 v1.5 driver from here: GitHub - adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver: CH340G CH34G CH34X Mac OS X driver. The program I want to upload compiles successfully but during the upload process, it errors out, ending with:

No device found on cu.wchusbserial1420
Send auto-baud
Set binary mode
An error occurred while uploading the sketch

The complete error dump with verbose mode on for both compiling and uploading is at the end of this post. Some things to note:

  • I've verified that my USB cable is for both power and data
  • Before the upload process, the red LED on the board is lit. Some time after the IDE errors out, the blue LED lights up as well.
  • The board vendor instructed to use Arduino Zero (Native USB Port) for the board which I've done.
  • I've set the baud rate to 115200 in the serial monitor. When the board is connected to the IDE on the Mac, the serial monitor is outputting, seemingly from the board. The first few dozen lines of the output suggest that the firmware I'm trying to upload actually has uploaded as the author of the code, JJ Robotics, is in the output. I've pasted in the serial monitor output at the bottom of this post, below the error dump.
  • The message in the lower right of the IDE reads: "Arduino Zero (Native USB Port) on dev/cu.wchusbserial1420" which matches what I've selected in Tools --> Port:
  • I've tried uploading after pressing the reset button, while holding the reset button down and while holding both the reset button (right side of the board) and the bootloader button on the left side of the board. No joy with any of these, same behavior.
  • I've confirmed through the System Report on my Mac that a device is found on a port (in addition to the Bluetooth-Incomming-Port. When I disconnect the board from my Mac that device disappears from the system report. I've included the device information at the very bottom of the post.

Any help would be greatly appreciated. I'm happy to provide any additional data requested. Many thanks in advance!

Data Follows:

Arduino: 1.8.19 (Mac OS X), Board: "Arduino Zero (Native USB Port)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/ronaldseide/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/ronaldseide/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/ronaldseide/Documents/Arduino/libraries -fqbn=arduino:samd:arduino_zero_native -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323 -warnings=none -build-cache /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_cache_551421 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.CMSIS.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.bossac.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.arduinoOTA.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -verbose /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/ronaldseide/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/ronaldseide/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/ronaldseide/Documents/Arduino/libraries -fqbn=arduino:samd:arduino_zero_native -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323 -warnings=none -build-cache /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_cache_551421 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.CMSIS.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.bossac.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.arduinoOTA.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -verbose /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino
Using board 'arduino_zero_native' from platform in folder: /Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14
Using core 'arduino' from platform in folder: /Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14
Detecting libraries used...
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp -o /dev/null
Alternatives for Servo.h: [Servo@1.1.8]
ResolveLibrary(Servo.h)
 -> candidates: [Servo@1.1.8]
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero -I/Applications/Arduino.app/Contents/Java/libraries/Servo/src /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
 -> candidates: [Wire@1.0]
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero -I/Applications/Arduino.app/Contents/Java/libraries/Servo/src -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/libraries/Wire /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp -o /dev/null
Alternatives for VL53L0X.h: [VL53L0X@1.3.1]
ResolveLibrary(VL53L0X.h)
 -> candidates: [VL53L0X@1.3.1]
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero -I/Applications/Arduino.app/Contents/Java/libraries/Servo/src -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/libraries/Wire -I/Users/ronaldseide/Documents/Arduino/libraries/VL53L0X /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp -o /dev/null
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/avr/Servo.cpp
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/mbed/Servo.cpp
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/megaavr/Servo.cpp
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/nrf52/Servo.cpp
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/sam/Servo.cpp
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/samd/Servo.cpp
Using cached library dependencies for file: /Applications/Arduino.app/Contents/Java/libraries/Servo/src/stm32f4/Servo.cpp
Using cached library dependencies for file: /Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/libraries/Wire/Wire.cpp
Using cached library dependencies for file: /Users/ronaldseide/Documents/Arduino/libraries/VL53L0X/VL53L0X.cpp
Generating function prototypes...
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero -I/Applications/Arduino.app/Contents/Java/libraries/Servo/src -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/libraries/Wire -I/Users/ronaldseide/Documents/Arduino/libraries/VL53L0X /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp -o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10819 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero -I/Applications/Arduino.app/Contents/Java/libraries/Servo/src -I/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/libraries/Wire -I/Users/ronaldseide/Documents/Arduino/libraries/VL53L0X /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp -o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp.o
Compiling libraries...
Compiling library "Servo"
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/avr/Servo.cpp.o
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/mbed/Servo.cpp.o
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/megaavr/Servo.cpp.o
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/nrf52/Servo.cpp.o
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/sam/Servo.cpp.o
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/samd/Servo.cpp.o
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/stm32f4/Servo.cpp.o
Compiling library "Wire"
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Wire/Wire.cpp.o
Compiling library "VL53L0X"
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/VL53L0X/VL53L0X.cpp.o
Compiling core...
Using previously compiled file: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/core/variant.cpp.o
Using precompiled core: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_cache_551421/core/core_arduino_samd_arduino_zero_native_430e57ab8c4db3f09270a1f2ce792992.a
Linking everything together...
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -L/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323 -Os -Wl,--gc-sections -save-temps -T/Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/variants/arduino_zero/linker_scripts/gcc/flash_with_bootloader.ld -Wl,-Map,/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.map --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.elf /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/sketch/PyBotArm_v1.ino.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/avr/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/mbed/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/megaavr/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/nrf52/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/sam/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/samd/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Servo/stm32f4/Servo.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/Wire/Wire.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/libraries/VL53L0X/VL53L0X.cpp.o /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/core/variant.cpp.o -Wl,--start-group -L/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Lib/GCC/ -larm_cortexM0l_math -lm /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/../arduino_cache_551421/core/core_arduino_samd_arduino_zero_native_430e57ab8c4db3f09270a1f2ce792992.a -Wl,--end-group
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O binary /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.elf /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.bin
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O ihex -R .eeprom /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.elf /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.hex
Using library Servo at version 1.1.8 in folder: /Applications/Arduino.app/Contents/Java/libraries/Servo 
Using library Wire at version 1.0 in folder: /Users/ronaldseide/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/libraries/Wire 
Using library VL53L0X at version 1.3.1 in folder: /Users/ronaldseide/Documents/Arduino/libraries/VL53L0X 
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.elf
Sketch uses 53932 bytes (20%) of program storage space. Maximum is 262144 bytes.
Global variables use 6408 bytes (19%) of dynamic memory, leaving 26360 bytes for local variables. Maximum is 32768 bytes.
Forcing reset using 1200bps open/close on port /dev/cu.wchusbserial1420
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.wchusbserial1420, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.wchusbserial1420, } => {}
Uploading using selected port: /dev/cu.wchusbserial1420
/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3/bossac -i -d --port=cu.wchusbserial1420 -U true -i -e -w -v /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_915323/PyBotArm_v1.ino.bin -R 
Set binary mode
No device found on cu.wchusbserial1420
Send auto-baud
Set binary mode
An error occurred while uploading the sketch

Serial Output from Serial Monitor:

WIFI init
⸮Rձ⸮29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
WIFI init
MAC:
Start UDP server
AT+CIPSTART="UDP","192.168.4.2",2223,2222,0
Steper motors initialization...
Timers initialized
Timers started
Moving to initial position...
->M2 STOP
->M1 STOP
->M2 STOP
->M1 STOP
->M2 STOP
->M2 STOP
Initial position configured!
91.61
105.92
197.53
Ready...
JJROBOTS SCARA Scara v0.16
$$0,0,0,0,150,150,0,1
$$0,0,0,0,150,150,0,2
$$0,0,0,0,150,150,0,3
$$0,0,0,0,150,150,0,4

**it keeps outputting the above, incrementing the last number. I let it run to 500+ **

The installed device from the Mac System Report:

USB Serial:
  Product ID:	0x7523
  Vendor ID:	0x1a86
  Version:	2.64
  Speed:	Up to 12 Mb/sec
  Location ID:	0x14200000 / 13
  Current Available (mA):	500
  Current Required (mA):	98
  Extra Operating Current (mA):	0

Hi @ronseide.

You have the wrong board selected in Arduino IDE. A completely different tool is used for uploading to the "Arduino Zero (Native USB Port)" board you had selected than when uploading to an ESP32 board so there is no chance the upload could succeed with the IDE configured this way.

Select Tools > esp32 > NodeMCU-32S from the Arduino IDE menus and then try uploading again.

If you don't have a Tools > esp32 menu in Arduino IDE, this means you haven't installed the "esp32" boards platform. If so, you can install it by following these instructions:

https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide

Hi ptillish-- Thank you for the early and detailed reply! Here's the update:

  • I was able to add the esp32 boards to my IDE and was able to select NodeMCU-32S.
  • I then attempted to compile the code with the new board profile. It then threw off an error, the dump of which is pasted below. The summary of it is that it was looking for a file called libpython3.8.dylib which it couldn't find. It did, however, find a file called libintl.8.dylib which it then tried to load. That didn't work because "load command 0x80000034 is unknown". I researched this a bit and now understand that the command 0x80000034 is newer than the OS on the Mac I'm running the Arduino IDE on (Mac OS 10.13.6).
  • So I switched to my new Mac which is running OS 14.2 and the new Arduino IDE, 2.3.3. As an aside, with this newer Mac OS the CH340 driver seems to be preinstalled, the board was recognized on a port with no driver download required. I then attempted a compile and got a new error message which is also pasted below. The summary of this one is that the software I received with my device (a SCARA robot arm) apparently is written for a select set of processors, AVR, SAM, SAMD, NRF52 and STM32F4.
  • I suspect that if I didn't encounter the "0x80000034 is unknown" error on my old Mac I would have encountered the same unsupported processor error as I encountered on my new Mac.
  • The SCARA arm was originally an open source project, pyBot Robotic ARM – jjrobots, and the hardware is now discontinued by the original company. I bought a hardware kit based on the same hw/sw design from a Chinese company which included the NodeMCU-32S board along with a compatible stepper motor/servo shield. This contrasts with the processor selected by the original designer, an Arduino Zero compatible custom board called a "DEVIA".

My suspicion is that the Chinese vendor swapped out the original board with the NodeMCU-32S without taking into account the software dependency.

So given all this:

  • Does the above look right to you? Am I drawing the right conclusions from the below data and research?
  • If so, is there a path forward? For instance, could I (as a non-coder) swap files in the code to allow for NodeMCU-32S compatibility?
  • If not software, could I swap out the NodeMCU-32S board for a board with a processor that's compatible with the software? Could I get just a board that's pin compatible with the shield that I already have? Here's a link to the NodeMCU-32S board (it's in Chinese but the form factor and the pinouts are discernable): https://docs.ai-thinker.com/_media/esp32/boards/nodemcu-32开发板规格书v2.0.pdf. If that's not possible, I'm happy to get a new shield as well, I just need support for three stepper motors and two servos. Could you recommend something that should work?

Sorry for the the additional questions, I wish this just worked as well. Thank you again for your help and in advance for anything you can further provide. The data mentioned above follows:

Error dump from attempt one on the old Mac:

rduino: 1.8.19 (Mac OS X), Board: "NodeMCU-32S, 80MHz, 921600, None, Disabled"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/ronaldseide/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/ronaldseide/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/ronaldseide/Documents/Arduino/libraries -fqbn=esp32:esp32:nodemcu-32s:FlashFreq=80,UploadSpeed=921600,DebugLevel=none,EraseFlash=none -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252 -warnings=none -build-cache /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_cache_703619 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.xtensa-esp-elf-gdb-11.2_20220823.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.mklittlefs.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.openocd-esp32.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20230419 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20230419.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20230419 -prefs=runtime.tools.esptool_py.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -prefs=runtime.tools.esptool_py-4.5.1.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.riscv32-esp-elf-gdb-11.2_20220823.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.mkspiffs.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.dfu-util.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -verbose /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/ronaldseide/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/ronaldseide/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/ronaldseide/Documents/Arduino/libraries -fqbn=esp32:esp32:nodemcu-32s:FlashFreq=80,UploadSpeed=921600,DebugLevel=none,EraseFlash=none -vid-pid=1A86_7523 -ide-version=10819 -build-path /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252 -warnings=none -build-cache /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_cache_703619 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.xtensa-esp-elf-gdb-11.2_20220823.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.mklittlefs.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.openocd-esp32.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20230419 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20230419.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20230419 -prefs=runtime.tools.esptool_py.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -prefs=runtime.tools.esptool_py-4.5.1.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.riscv32-esp-elf-gdb-11.2_20220823.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/11.2_20220823 -prefs=runtime.tools.mkspiffs.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.dfu-util.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=/Users/ronaldseide/Library/Arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -verbose /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino
Using board 'nodemcu-32s' from platform in folder: /Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14
Using core 'esp32' from platform in folder: /Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14
bash -c "[ ! -f \"/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1\"/partitions.csv ] || cp -f \"/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1\"/partitions.csv \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/partitions.csv"
bash -c "[ -f \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/partitions.csv ] || [ ! -f \"/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/variants/nodemcu-32s\"/partitions.csv ] || cp \"/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/variants/nodemcu-32s\"/partitions.csv \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/partitions.csv"
bash -c "[ -f \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/partitions.csv ] || cp \"/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14\"/tools/partitions/default.csv \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/partitions.csv"
bash -c "[ -f \"/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1\"/bootloader.bin ] && cp -f \"/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1\"/bootloader.bin \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/PyBotArm_v1.ino.bootloader.bin || ( [ -f \"/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/variants/nodemcu-32s\"/bootloader.bin ] && cp \"/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/variants/nodemcu-32s\"/bootloader.bin \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/PyBotArm_v1.ino.bootloader.bin || \"/Users/ronaldseide/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1\"/esptool --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o \"/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino_build_453252\"/PyBotArm_v1.ino.bootloader.bin \"/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32\"/bin/bootloader_dio_80m.elf )"
[23243] Error loading Python lib '/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/_MEIVkcW7I/libpython3.8.dylib': dlopen: dlopen(/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/_MEIVkcW7I/libpython3.8.dylib, 10): Library not loaded: @loader_path/libintl.8.dylib
 Referenced from: /var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/_MEIVkcW7I/libpython3.8.dylib
 Reason: no suitable image found.  Did find:
	/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/_MEIVkcW7I/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
	/private/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/_MEIVkcW7I/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board NodeMCU-32S.

Error dump from attempt two on the newer Mac:

WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed, mbed_nano, mbed_portenta, mbed_rp2040, renesas, renesas_portenta, renesas_uno architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:38:
/Users/ronaldseide/Library/Arduino15/libraries/Servo/src/Servo.h:79:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
#error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
 ^~~~~
exit status 1

Compilation error: exit status 1

Yeah, the "Servo" library specifically.

It is definitely possible. There is this 3rd party library for using servo motors with ESP32 boards:

Its API is based on the "Servo" library's API, which makes it easy to port code that was originally written for use with the "Servo" library.

Try this:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus.
    The "Library Manager" dialog will open.
  2. Wait for the update to finish, as indicated by the progress bar at the bottom of the "Library Manager" dialog.
  3. Type ESP32Servo in the "Filter your search..." field.
  4. Press the Enter key.
  5. Scroll down through the list of libraries until you see the "ESP32Servo" entry. Click on it.
    A menu and button will appear at the bottom of the entry.
  6. Click the "Install" button in the "ESP32Servo" entry.
  7. Wait for the installation to finish.
  8. Click the "Close" button in the "Library Manager" dialog.
    The "Library Manager" dialog will close.
  9. Change the line in your code that looks like this:
    #include <Servo.h>
    
    to this:
    #include <ESP32Servo.h>
    

Now try compiling or uploading your sketch again. Hopefully this time it will work without any problems.

Hi again and thanks again!

It appears that there's more to it than just the servo library. The error dump is below and it seems to show additional, maybe board specific dependencies. What do you think? Any ideas on a path forward?

/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:32:1: error: 'AllTopic' does not name a type
 AllTopic:All303132333435363738394041424344454647484950// Mircrostepping : Arduino pin A4 (PA05) (default 1/16)
 ^~~~~~~~
In file included from /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:37:
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino: In function 'void setup()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Configuration.h:125:17: error: 'A2' was not declared in this scope
 #define RED_LED A2
                 ^~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:69:11: note: in expansion of macro 'RED_LED'
   pinMode(RED_LED, OUTPUT); // RED LED
           ^~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Configuration.h:125:17: note: suggested alternative: 'T2'
 #define RED_LED A2
                 ^~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:69:11: note: in expansion of macro 'RED_LED'
   pinMode(RED_LED, OUTPUT); // RED LED
           ^~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Configuration.h:124:19: error: 'A1' was not declared in this scope
 #define GREEN_LED A1
                   ^~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:70:11: note: in expansion of macro 'GREEN_LED'
   pinMode(GREEN_LED, OUTPUT); // GREEN LED
           ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Configuration.h:124:19: note: suggested alternative: 'T1'
 #define GREEN_LED A1
                   ^~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:70:11: note: in expansion of macro 'GREEN_LED'
   pinMode(GREEN_LED, OUTPUT); // GREEN LED
           ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:79:3: error: 'SerialUSB' was not declared in this scope
   SerialUSB.begin(115200); // Serial output to console
   ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:79:3: note: suggested alternative: 'Serial2'
   SerialUSB.begin(115200); // Serial output to console
   ^~~~~~~~~
   Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino: In function 'void loop()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:244:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.print("->IK time:");
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:244:7: note: suggested alternative: 'Serial2'
       SerialUSB.print("->IK time:");
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:289:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.println("->Motors calibration...");
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:289:7: note: suggested alternative: 'Serial2'
       SerialUSB.println("->Motors calibration...");
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:301:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.print("!!");  // Timing warning
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:301:7: note: suggested alternative: 'Serial2'
       SerialUSB.print("!!");  // Timing warning
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:319:11: error: 'SerialUSB' was not declared in this scope
           SerialUSB.print("->T ");
           ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:319:11: note: suggested alternative: 'Serial2'
           SerialUSB.print("->T ");
           ^~~~~~~~~
           Serial2
In file included from /Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:37:
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Configuration.h:125:17: error: 'A2' was not declared in this scope
 #define RED_LED A2
                 ^~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:350:20: note: in expansion of macro 'RED_LED'
       digitalWrite(RED_LED, HIGH);
                    ^~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Configuration.h:125:17: note: suggested alternative: 'T2'
 #define RED_LED A2
                 ^~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:350:20: note: in expansion of macro 'RED_LED'
       digitalWrite(RED_LED, HIGH);
                    ^~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:401:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.println(message);
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/PyBotArm_v1.ino:401:7: note: suggested alternative: 'Serial2'
       SerialUSB.println(message);
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino: In function 'int ESPwait(String, int)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:19:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.println("!Timeout!");
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:19:7: note: suggested alternative: 'Serial2'
       SerialUSB.println("!Timeout!");
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:24:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.print(c);
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:24:7: note: suggested alternative: 'Serial2'
       SerialUSB.print(c);
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino: In function 'int ESPgetMac()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:55:7: error: 'SerialUSB' was not declared in this scope
       SerialUSB.print(c1);
       ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:55:7: note: suggested alternative: 'Serial2'
       SerialUSB.print(c1);
       ^~~~~~~~~
       Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:81:3: error: 'SerialUSB' was not declared in this scope
   SerialUSB.println("!Timeout!");
   ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:81:3: note: suggested alternative: 'Serial2'
   SerialUSB.println("!Timeout!");
   ^~~~~~~~~
   Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino: In function 'void USBMsgRead()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:139:10: error: 'SerialUSB' was not declared in this scope
   while (SerialUSB.available() > 0) {
          ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:139:10: note: suggested alternative: 'Serial2'
   while (SerialUSB.available() > 0) {
          ^~~~~~~~~
          Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino: In function 'void ParseMsg(uint8_t)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:154:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("->MSG: JJAH: HELLO!");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:154:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("->MSG: JJAH: HELLO!");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:164:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.print("->MSG: JJAM:");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:164:5: note: suggested alternative: 'Serial2'
     SerialUSB.print("->MSG: JJAM:");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:187:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("->MSG: JJAI:");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:187:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("->MSG: JJAI:");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:219:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.print("-->JJAT ");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:219:5: note: suggested alternative: 'Serial2'
     SerialUSB.print("-->JJAT ");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:264:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.print("->MSG: JJAS:");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:264:5: note: suggested alternative: 'Serial2'
     SerialUSB.print("->MSG: JJAS:");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:304:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("->MSG: JJAC:");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:304:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("->MSG: JJAC:");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:314:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("->MSG: JJAE:");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:314:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("->MSG: JJAE:");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino: In function 'void debugMsg()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:326:3: error: 'SerialUSB' was not declared in this scope
   SerialUSB.print("->mode:");
   ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Network.ino:326:3: note: suggested alternative: 'Serial2'
   SerialUSB.print("->mode:");
   ^~~~~~~~~
   Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void TC5_Handler()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:14:3: error: 'TC5' was not declared in this scope
   TC5->COUNT16.INTFLAG.bit.MC0 = 1; //don't change this, it's part of the timer code
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:14:3: note: suggested alternative: 'T5'
   TC5->COUNT16.INTFLAG.bit.MC0 = 1; //don't change this, it's part of the timer code
   ^~~
   T5
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:17:3: error: 'REG_PORT_OUTSET0' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA15; // STEP Motor1
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:17:3: note: suggested alternative: 'REG_SET_BITS'
   REG_PORT_OUTSET0 = PORT_PA15; // STEP Motor1
   ^~~~~~~~~~~~~~~~
   REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:17:22: error: 'PORT_PA15' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA15; // STEP Motor1
                      ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:20:3: error: 'REG_PORT_OUTCLR0' was not declared in this scope
   REG_PORT_OUTCLR0 = PORT_PA15; // STEP Motor1
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void TC3_Handler()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:27:3: error: 'TC3' was not declared in this scope
   TC3->COUNT16.INTFLAG.bit.MC0 = 1; // Interrupt reset
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:27:3: note: suggested alternative: 'T3'
   TC3->COUNT16.INTFLAG.bit.MC0 = 1; // Interrupt reset
   ^~~
   T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:30:3: error: 'REG_PORT_OUTSET0' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA21; // STEP Motor2
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:30:3: note: suggested alternative: 'REG_SET_BITS'
   REG_PORT_OUTSET0 = PORT_PA21; // STEP Motor2
   ^~~~~~~~~~~~~~~~
   REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:30:22: error: 'PORT_PA21' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA21; // STEP Motor2
                      ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:33:3: error: 'REG_PORT_OUTCLR0' was not declared in this scope
   REG_PORT_OUTCLR0 = PORT_PA21; // STEP Motor2
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void TCC2_Handler()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:40:3: error: 'TCC2' was not declared in this scope
   TCC2->INTFLAG.bit.MC0 = 1;
   ^~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:40:3: note: suggested alternative: 'iCH2'
   TCC2->INTFLAG.bit.MC0 = 1;
   ^~~~
   iCH2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:43:3: error: 'REG_PORT_OUTSET0' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA07; // STEP Motor3
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:43:3: note: suggested alternative: 'REG_SET_BITS'
   REG_PORT_OUTSET0 = PORT_PA07; // STEP Motor3
   ^~~~~~~~~~~~~~~~
   REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:43:22: error: 'PORT_PA07' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA07; // STEP Motor3
                      ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:46:3: error: 'REG_PORT_OUTCLR0' was not declared in this scope
   REG_PORT_OUTCLR0 = PORT_PA07; // STEP Motor3
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void setMotorM1Speed(int16_t, int16_t, int16_t)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:219:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("->M1 STOP");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:219:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("->M1 STOP");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:225:5: error: 'REG_PORT_OUTSET0' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA20;
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:225:5: note: suggested alternative: 'REG_SET_BITS'
     REG_PORT_OUTSET0 = PORT_PA20;
     ^~~~~~~~~~~~~~~~
     REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:225:24: error: 'PORT_PA20' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA20;
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:233:5: error: 'REG_PORT_OUTCLR0' was not declared in this scope
     REG_PORT_OUTCLR0 = PORT_PA20;
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:233:24: error: 'PORT_PA20' was not declared in this scope
     REG_PORT_OUTCLR0 = PORT_PA20;
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:249:3: error: 'TC5' was not declared in this scope
   TC5->COUNT16.CC[0].reg = (uint16_t) timer_period;
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:249:3: note: suggested alternative: 'T5'
   TC5->COUNT16.CC[0].reg = (uint16_t) timer_period;
   ^~~
   T5
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:250:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:255:12: error: 'TC3' was not declared in this scope
     while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
            ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:255:12: note: suggested alternative: 'T3'
     while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
            ^~~
            T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:255:38: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
     while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
                                      ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void setMotorM2Speed(int16_t, int16_t, int16_t)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:283:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("->M2 STOP");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:283:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("->M2 STOP");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:289:5: error: 'REG_PORT_OUTSET0' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA06;
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:289:5: note: suggested alternative: 'REG_SET_BITS'
     REG_PORT_OUTSET0 = PORT_PA06;
     ^~~~~~~~~~~~~~~~
     REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:289:24: error: 'PORT_PA06' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA06;
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:297:5: error: 'REG_PORT_OUTCLR0' was not declared in this scope
     REG_PORT_OUTCLR0 = PORT_PA06;
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:297:24: error: 'PORT_PA06' was not declared in this scope
     REG_PORT_OUTCLR0 = PORT_PA06;
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:311:3: error: 'TC3' was not declared in this scope
   TC3->COUNT16.CC[0].reg = (uint16_t) timer_period;
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:311:3: note: suggested alternative: 'T3'
   TC3->COUNT16.CC[0].reg = (uint16_t) timer_period;
   ^~~
   T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:312:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:317:38: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
     while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
                                      ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void setMotorM3Speed(int16_t, int16_t, int16_t)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:345:5: error: 'REG_PORT_OUTSET0' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA18;
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:345:5: note: suggested alternative: 'REG_SET_BITS'
     REG_PORT_OUTSET0 = PORT_PA18;
     ^~~~~~~~~~~~~~~~
     REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:345:24: error: 'PORT_PA18' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA18;
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:353:5: error: 'REG_PORT_OUTCLR0' was not declared in this scope
     REG_PORT_OUTCLR0 = PORT_PA18;
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:353:24: error: 'PORT_PA18' was not declared in this scope
     REG_PORT_OUTCLR0 = PORT_PA18;
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:367:3: error: 'TCC2' was not declared in this scope
   TCC2->CCB[0].reg = timer_period;
   ^~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:367:3: note: suggested alternative: 'iCH2'
   TCC2->CCB[0].reg = timer_period;
   ^~~~
   iCH2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:368:29: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TCC2->STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
                             ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void timersConfigure()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:445:2: error: 'GCLK' was not declared in this scope
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TCC2_TC3));
  ^~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:445:2: note: suggested alternative: 'SCK'
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TCC2_TC3));
  ^~~~
  SCK
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:445:34: error: 'GCLK_CLKCTRL_CLKEN' was not declared in this scope
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TCC2_TC3));
                                  ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:445:55: error: 'GCLK_CLKCTRL_GEN_GCLK0' was not declared in this scope
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TCC2_TC3));
                                                       ^~~~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:445:96: error: 'GCM_TCC2_TC3' was not declared in this scope
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TCC2_TC3));
                                                                                                ^~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:445:80: error: 'GCLK_CLKCTRL_ID' was not declared in this scope
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TCC2_TC3));
                                                                                ^~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:447:96: error: 'GCM_TC4_TC5' was not declared in this scope
  GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TC4_TC5));
                                                                                                ^~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:451:2: error: 'TC3' was not declared in this scope
  TC3->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
  ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:451:2: note: suggested alternative: 'T3'
  TC3->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
  ^~~
  T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:451:27: error: 'TC_CTRLA_SWRST' was not declared in this scope
  TC3->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
                           ^~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:452:35: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
  while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                   ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:456:28: error: 'TC_CTRLA_MODE_COUNT16' was not declared in this scope
  TC3->COUNT16.CTRLA.reg |= TC_CTRLA_MODE_COUNT16;
                            ^~~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:458:28: error: 'TC_CTRLA_WAVEGEN_MFRQ' was not declared in this scope
  TC3->COUNT16.CTRLA.reg |= TC_CTRLA_WAVEGEN_MFRQ;
                            ^~~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:460:28: error: 'TC_CTRLA_PRESCALER_DIV16' was not declared in this scope
  TC3->COUNT16.CTRLA.reg |= TC_CTRLA_PRESCALER_DIV16 | TC_CTRLA_ENABLE;  // preescaler 16 48Mhz=>3Mhz
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:460:55: error: 'TC_CTRLA_ENABLE' was not declared in this scope
  TC3->COUNT16.CTRLA.reg |= TC_CTRLA_PRESCALER_DIV16 | TC_CTRLA_ENABLE;  // preescaler 16 48Mhz=>3Mhz
                                                       ^~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:460:55: note: suggested alternative: 'IBREAKENABLE'
  TC3->COUNT16.CTRLA.reg |= TC_CTRLA_PRESCALER_DIV16 | TC_CTRLA_ENABLE;  // preescaler 16 48Mhz=>3Mhz
                                                       ^~~~~~~~~~~~~~~
                                                       IBREAKENABLE
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:464:35: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
  while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                   ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:467:18: error: 'TC3_IRQn' was not declared in this scope
  NVIC_DisableIRQ(TC3_IRQn);
                  ^~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:467:2: error: 'NVIC_DisableIRQ' was not declared in this scope
  NVIC_DisableIRQ(TC3_IRQn);
  ^~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:468:2: error: 'NVIC_ClearPendingIRQ' was not declared in this scope
  NVIC_ClearPendingIRQ(TC3_IRQn);
  ^~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:469:2: error: 'NVIC_SetPriority' was not declared in this scope
  NVIC_SetPriority(TC3_IRQn, 0);
  ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:470:2: error: 'NVIC_EnableIRQ' was not declared in this scope
  NVIC_EnableIRQ(TC3_IRQn);
  ^~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:474:35: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
  while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); //wait until syncing
                                   ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:477:2: error: 'TC5' was not declared in this scope
  TC5->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
  ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:477:2: note: suggested alternative: 'T5'
  TC5->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
  ^~~
  T5
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:478:35: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
  while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                   ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:490:35: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
  while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); // wait for sync...
                                   ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:493:18: error: 'TC5_IRQn' was not declared in this scope
  NVIC_DisableIRQ(TC5_IRQn);
                  ^~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:500:35: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
  while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); //wait until syncing
                                   ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:503:2: error: 'TCC2' was not declared in this scope
  TCC2->CTRLA.reg = TC_CTRLA_SWRST;
  ^~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:503:2: note: suggested alternative: 'iCH2'
  TCC2->CTRLA.reg = TC_CTRLA_SWRST;
  ^~~~
  iCH2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:513:20: error: 'TCC_WAVE_WAVEGEN_MFRQ' was not declared in this scope
  TCC2->WAVE.reg |= TCC_WAVE_WAVEGEN_MFRQ;
                    ^~~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:515:21: error: 'TCC_CTRLA_PRESCALER_DIV16' was not declared in this scope
  TCC2->CTRLA.reg |= TCC_CTRLA_PRESCALER_DIV16 | TCC_CTRLA_ENABLE;  // preescaler 16 48Mhz=>3Mhz
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:515:49: error: 'TCC_CTRLA_ENABLE' was not declared in this scope
  TCC2->CTRLA.reg |= TCC_CTRLA_PRESCALER_DIV16 | TCC_CTRLA_ENABLE;  // preescaler 16 48Mhz=>3Mhz
                                                 ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:515:49: note: suggested alternative: 'ESP_INTR_ENABLE'
  TCC2->CTRLA.reg |= TCC_CTRLA_PRESCALER_DIV16 | TCC_CTRLA_ENABLE;  // preescaler 16 48Mhz=>3Mhz
                                                 ^~~~~~~~~~~~~~~~
                                                 ESP_INTR_ENABLE
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:518:24: error: 'TCC_CTRLBCLR_LUPD' was not declared in this scope
  TCC2->CTRLBCLR.reg |= TCC_CTRLBCLR_LUPD;   // Enable doble buffering
                        ^~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:524:18: error: 'TCC2_IRQn' was not declared in this scope
  NVIC_DisableIRQ(TCC2_IRQn);
                  ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void timersStart()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:541:3: error: 'TC3' was not declared in this scope
   TC3->COUNT16.CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:541:3: note: suggested alternative: 'T3'
   TC3->COUNT16.CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
   ^~~
   T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:541:29: error: 'TC_CTRLA_ENABLE' was not declared in this scope
   TC3->COUNT16.CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
                             ^~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:541:29: note: suggested alternative: 'IBREAKENABLE'
   TC3->COUNT16.CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
                             ^~~~~~~~~~~~~~~
                             IBREAKENABLE
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:542:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); //wait until snyc'd
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:543:3: error: 'TC5' was not declared in this scope
   TC5->COUNT16.CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:543:3: note: suggested alternative: 'T5'
   TC5->COUNT16.CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
   ^~~
   T5
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:544:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY); //wait until snyc'd
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:545:3: error: 'TCC2' was not declared in this scope
   TCC2->CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
   ^~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:545:3: note: suggested alternative: 'iCH2'
   TCC2->CTRLA.reg |= TC_CTRLA_ENABLE; //set the CTRLA register
   ^~~~
   iCH2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:546:29: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TCC2->STATUS.reg & TC_STATUS_SYNCBUSY); //wait until snyc'd
                             ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void timersReset()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:552:3: error: 'TC3' was not declared in this scope
   TC3->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:552:3: note: suggested alternative: 'T3'
   TC3->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
   ^~~
   T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:552:28: error: 'TC_CTRLA_SWRST' was not declared in this scope
   TC3->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
                            ^~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:553:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:555:3: error: 'TC5' was not declared in this scope
   TC5->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:555:3: note: suggested alternative: 'T5'
   TC5->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
   ^~~
   T5
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:556:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void timersDisable()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:563:3: error: 'TC3' was not declared in this scope
   TC3->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:563:3: note: suggested alternative: 'T3'
   TC3->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
   ^~~
   T3
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:563:30: error: 'TC_CTRLA_ENABLE' was not declared in this scope
   TC3->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
                              ^~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:563:30: note: suggested alternative: 'IBREAKENABLE'
   TC3->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
                              ^~~~~~~~~~~~~~~
                              IBREAKENABLE
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:564:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC3->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:565:3: error: 'TC5' was not declared in this scope
   TC5->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
   ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:565:3: note: suggested alternative: 'T5'
   TC5->COUNT16.CTRLA.reg &= ~TC_CTRLA_ENABLE;
   ^~~
   T5
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:566:36: error: 'TC_STATUS_SYNCBUSY' was not declared in this scope
   while (TC5->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY);
                                    ^~~~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void motorsCalibration()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:592:3: error: 'REG_PORT_OUTCLR0' was not declared in this scope
   REG_PORT_OUTCLR0 = PORT_PA20;
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:592:22: error: 'PORT_PA20' was not declared in this scope
   REG_PORT_OUTCLR0 = PORT_PA20;
                      ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:596:5: error: 'REG_PORT_OUTSET0' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA15; // STEP Motor1
     ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:596:5: note: suggested alternative: 'REG_SET_BITS'
     REG_PORT_OUTSET0 = PORT_PA15; // STEP Motor1
     ^~~~~~~~~~~~~~~~
     REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:596:24: error: 'PORT_PA15' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA15; // STEP Motor1
                        ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:632:3: error: 'REG_PORT_OUTSET0' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA06;
   ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:632:3: note: suggested alternative: 'REG_SET_BITS'
   REG_PORT_OUTSET0 = PORT_PA06;
   ^~~~~~~~~~~~~~~~
   REG_SET_BITS
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:632:22: error: 'PORT_PA06' was not declared in this scope
   REG_PORT_OUTSET0 = PORT_PA06;
                      ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:636:24: error: 'PORT_PA21' was not declared in this scope
     REG_PORT_OUTSET0 = PORT_PA21; // STEP Motor2
                        ^~~~~~~~~
In file included from /private/var/folders/ms/p3483wxd3cgbln9w065x1llc0000gn/T/arduino/sketches/F5EC9FDB6A1917467697259DE3F81D1B/sketch/PyBotArm_v1.ino.cpp:1:
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void setAxis_1_2(float, float)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:706:31: error: 'robot_limits_min' was not declared in this scope
   angleA2 = constrain(angleA2,robot_limits_min[limits_index],robot_limits_max[limits_index]); // Calculate the limits of A2 based on A1 angle
                               ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/cores/esp32/Arduino.h:76:41: note: in definition of macro 'constrain'
 #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
                                         ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:706:31: note: suggested alternative: 'robot_limits_max'
   angleA2 = constrain(angleA2,robot_limits_min[limits_index],robot_limits_max[limits_index]); // Calculate the limits of A2 based on A1 angle
                               ^~~~~~~~~~~~~~~~
/Users/ronaldseide/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/cores/esp32/Arduino.h:76:41: note: in definition of macro 'constrain'
 #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
                                         ^~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void InverseKinematic(float, float, float, float, uint8_t, float*, float*)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:755:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.println("IK overflow->limit");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:755:5: note: suggested alternative: 'Serial2'
     SerialUSB.println("IK overflow->limit");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'float move_total_time(float, float, float, float)':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:808:5: error: 'SerialUSB' was not declared in this scope
     SerialUSB.print("->C1:");
     ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:808:5: note: suggested alternative: 'Serial2'
     SerialUSB.print("->C1:");
     ^~~~~~~~~
     Serial2
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino: In function 'void trajectory_motor_speed_adjust()':
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:892:3: error: 'SerialUSB' was not declared in this scope
   SerialUSB.print("->PLAN ");
   ^~~~~~~~~
/Users/ronaldseide/Downloads/ScaraArm/0.motherboard program download/PyBotArm_v1/Robot.ino:892:3: note: suggested alternative: 'Serial2'
   SerialUSB.print("->PLAN ");
   ^~~~~~~~~
   Serial2

exit status 1

Compilation error: 'AllTopic' does not name a type

That is unfortunate. As you say, it looks like there is quite a bit of code in this sketch that is specific to the original board. It might be quite difficult for you to port it to ESP32.

This indicates that the seller of your ESP32 board has already ported the code to work with this board, and pre-loaded it on the board before shipping it to you. I suggest contacting them and asking for the code.

Thanks again, ptillisch. I'll contact the vendor and see if there's a way to get the ES32 board back to the factory firmware. I've also ordered an Arduino Zero compatible board and a CNC shield to see if I can make it work that way.

As an aside and for those who find themselves in a similar situation, the DEVIA board from JJRobots is indeed discontinued. This post: What can replace DEVIA board suggested an Arduino Mega 2560 + Ramps 1.4 board. It turns out that I have just that from an old 3D printer. The code didn't compile on it, it really seems dependent upon Arduino Zero. It's a shame about the DEVIA board, support for three steppers and two servos is pretty handy.

Thanks again for your help!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.