Arm board now worki…
 
Share:
Notifications
Clear all

Arm board now working


cdd9e4b1ca94ed43968d9388651bfab9?s=80&d=mm&r=g
(@mathias-wilhelm)
Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

Salut, I finished building the mechanics of the robot arm and conected the controller board. I was able to compile and upload the Arduino code to the board. Right after uploading and restarting the board, just get two lines on the serial port after #define DEBUG:

1332.007 -> Scara v0.16
1332.007 -> WIFI init

after that, the board does not react to anything. I can see the network JJROBOTS_AD and connect to it using the password used in the Arduino code (87654321) but that is all at that end. When staring the windows software, it fails to connect to the board on both ways, USB and WiFi.

The board is powered through a 12V/4A power supply. I connected the motors to a MKS DLC v2.0 and am able to drive all motors freely

Any help is welcome. A lovely robot but the board seems to be not working and I see not means to debug further

Ciao, Mathias

Software details:

Arduino IDE 1.8.16, board: Arduino Zero (Native USB port)

Windows 10 Home 21H1 19043.1288

Sketch: // JJROBOTS ROBOTIC ARM. SCARA ROBOT.
// Author: Jose Julio & Juan pedro & Jonathan (JJROBOTS)
// Hardware: New JJROBOTS DEVIA M0 Board with Arduino M0 & ESP8266
// Date: 13/02/2018
// Last updated: 20/09/2019
// Version: 0.16


Quote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 6 years ago
Posts: 780
 

Try this:
1) completely uninstall your current Arduino IDE, even delete the Arduino library folder (it would be My Documents\Arduino\libraries)
2) Install the Arduino IDE 1.8.6 (the latest one we know does not create any conflict)
3) Install the SAMD Boards library 1.8.10.
4) Try to compile again the code and check you are not having any warning messages. If so, upload the code to the DEVIA control board.
5) Done!

NOTE:
remember to select the correct Arduino Board, in this case: ARDUINO/GENUINO ZERO (native USB port). In the case you can not see that board option: install the “Arduino SAMD Boards (32-bits ARM Cortex-M0+)” libraries. Go to Tools->Board->Boards Manager… and install the “Arduino SAMD Boards (32-bits ARM Cortex-M0+) (version 1.8.10)

Selecting the right board


ReplyQuote
cdd9e4b1ca94ed43968d9388651bfab9?s=80&d=mm&r=g
(@mathias-wilhelm)
Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

The sketch gets compiled without error or warning message. It seems to be hanging in the esp initialization

But I will install the old Arduino IDE, but the Zero board install will lift the software to the same level as with the 1.8.16

keep you updated


ReplyQuote
cdd9e4b1ca94ed43968d9388651bfab9?s=80&d=mm&r=g
(@mathias-wilhelm)
Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

installed Arduino IDE 1.8.6, isolated environment, compiled and uploaded sketch – no chnage, board hangs in ESP init. Log attached a code

C:\Opt\arduino-1.8.6\arduino-builder -dump-prefs -logger=machine -hardware C:\Opt\arduino-1.8.6\hardware -hardware C:\Users\mathi\AppData\Local\Arduino15\packages -tools C:\Opt\arduino-1.8.6\tools-builder -tools C:\Opt\arduino-1.8.6\hardware\tools\avr -tools C:\Users\mathi\AppData\Local\Arduino15\packages -built-in-libraries C:\Opt\arduino-1.8.6\libraries -libraries D:\Data\ArduinoScara\libraries -fqbn=arduinoarduino_zero_native -vid-pid=0X2341_0X804D -ide-version=10806 -build-path C:\Users\mathi\AppData\Local\Temp\arduino_build_527329 -warnings=none -build-cache C:\Users\mathi\AppData\Local\Temp\arduino_cache_136401 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.CMSIS.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.openocd.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -verbose D:\Data\ArduinoVertex\PyBotArm_v1\PyBotArm_v1.ino
C:\Opt\arduino-1.8.6\arduino-builder -compile -logger=machine -hardware C:\Opt\arduino-1.8.6\hardware -hardware C:\Users\mathi\AppData\Local\Arduino15\packages -tools C:\Opt\arduino-1.8.6\tools-builder -tools C:\Opt\arduino-1.8.6\hardware\tools\avr -tools C:\Users\mathi\AppData\Local\Arduino15\packages -built-in-libraries C:\Opt\arduino-1.8.6\libraries -libraries D:\Data\ArduinoScara\libraries -fqbn=arduinoarduino_zero_native -vid-pid=0X2341_0X804D -ide-version=10806 -build-path C:\Users\mathi\AppData\Local\Temp\arduino_build_527329 -warnings=none -build-cache C:\Users\mathi\AppData\Local\Temp\arduino_cache_136401 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.CMSIS.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.openocd.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -verbose D:\Data\ArduinoVertex\PyBotArm_v1\PyBotArm_v1.ino
Using board 'arduino_zero_native' from platform in folder: C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11
Using core 'arduino' from platform in folder: C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11
Detecting libraries used...
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\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=10806 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp" -o nul
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\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=10806 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero" "-IC:\\Opt\\arduino-1.8.6\\libraries\\Servo\\src" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp" -o nul
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\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=10806 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero" "-IC:\\Opt\\arduino-1.8.6\\libraries\\Servo\\src" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\libraries\\Wire" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp" -o nul
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\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=10806 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero" "-IC:\\Opt\\arduino-1.8.6\\libraries\\Servo\\src" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\libraries\\Wire" "-ID:\\Data\\ArduinoScara\\libraries\\VL53L0X" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp" -o nul
Using cached library dependencies for file: C:\Opt\arduino-1.8.6\libraries\Servo\src\avr\Servo.cpp
Using cached library dependencies for file: C:\Opt\arduino-1.8.6\libraries\Servo\src\nrf52\Servo.cpp
Using cached library dependencies for file: C:\Opt\arduino-1.8.6\libraries\Servo\src\sam\Servo.cpp
Using cached library dependencies for file: C:\Opt\arduino-1.8.6\libraries\Servo\src\samd\Servo.cpp
Using cached library dependencies for file: C:\Opt\arduino-1.8.6\libraries\Servo\src\stm32f4\Servo.cpp
Using cached library dependencies for file: C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11\libraries\Wire\Wire.cpp
Using cached library dependencies for file: D:\Data\ArduinoScara\libraries\VL53L0X\VL53L0X.cpp
Generating function prototypes...
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\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=10806 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero" "-IC:\\Opt\\arduino-1.8.6\\libraries\\Servo\\src" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\libraries\\Wire" "-ID:\\Data\\ArduinoScara\\libraries\\VL53L0X" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp" -o "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Opt\\arduino-1.8.6\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\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=10806 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero" "-IC:\\Opt\\arduino-1.8.6\\libraries\\Servo\\src" "-IC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\libraries\\Wire" "-ID:\\Data\\ArduinoScara\\libraries\\VL53L0X" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp" -o "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp.o"
Compiling libraries...
Compiling library "Servo"
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\Servo\avr\Servo.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\Servo\nrf52\Servo.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\Servo\sam\Servo.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\Servo\samd\Servo.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\Servo\stm32f4\Servo.cpp.o
Compiling library "Wire"
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\Wire\Wire.cpp.o
Compiling library "VL53L0X"
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\libraries\VL53L0X\VL53L0X.cpp.o
Compiling core...
Zuvor kompilierte Datei wird verwendet: C:\Users\mathi\AppData\Local\Temp\arduino_build_527329\core\variant.cpp.o
Using precompiled core: C:\Users\mathi\AppData\Local\Temp\arduino_cache_136401\core\core_arduino_samd_arduino_zero_native_9f86aea2f9e4fc8a7c2ace162193f428.a
Linking everything together...
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" "-LC:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\arduino_zero/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/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 "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/PyBotArm_v1.ino.elf" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\sketch\\PyBotArm_v1.ino.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\Servo\\avr\\Servo.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\Servo\\nrf52\\Servo.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\Servo\\sam\\Servo.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\Servo\\samd\\Servo.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\Servo\\stm32f4\\Servo.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\libraries\\VL53L0X\\VL53L0X.cpp.o" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/..\\arduino_cache_136401\\core\\core_arduino_samd_arduino_zero_native_9f86aea2f9e4fc8a7c2ace162193f428.a" -Wl,--end-group
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/PyBotArm_v1.ino.elf" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/PyBotArm_v1.ino.bin"
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/PyBotArm_v1.ino.elf" "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/PyBotArm_v1.ino.hex"
Bibliothek Servo in Version 1.1.2 im Ordner: C:\Opt\arduino-1.8.6\libraries\Servo  wird verwendet
Bibliothek Wire in Version 1.0 im Ordner: C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11\libraries\Wire  wird verwendet
Bibliothek VL53L0X in Version 1.0.2 im Ordner: D:\Data\ArduinoScara\libraries\VL53L0X  wird verwendet
"C:\\Users\\mathi\\AppData\\Local\\Arduino15\\packages\\Seeeduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\mathi\\AppData\\Local\\Temp\\arduino_build_527329/PyBotArm_v1.ino.elf"
Der Sketch verwendet 53756 Bytes (20%) des Programmspeicherplatzes. Das Maximum sind 262144 Bytes.
Globale Variablen verwenden 5600 Bytes (17%) des dynamischen Speichers, 27168 Bytes für lokale Variablen verbleiben. Das Maximum sind 32768 Bytes.
Erzwinge Reset durch öffnen/schließen mit 1200 bps auf dem Port COM11
PORTS {COM11, } / {} => {}
PORTS {} / {COM12, } => {COM12, }
Found upload port: COM12
C:\Users\mathi\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM12 -U true -i -e -w -v C:\Users\mathi\AppData\Local\Temp\arduino_build_527329/PyBotArm_v1.ino.bin -R 
Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Dec 20 2016 1539
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v2.0 [Arduino:XYZ] Dec 20 2016 1539
Version      : v2.0 [Arduino:XYZ] Dec 20 2016 1539
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0x7000a
BOD          : true
readWord(addr=0x40000834)=0x7000a
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.848 seconds

Write 53756 bytes to flash (840 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)

[==                            ] 7% (64/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)

[====                          ] 15% (128/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)

[======                        ] 22% (192/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x1000)

[=========                     ] 30% (256/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x6000, size=0x1000)

[===========                   ] 38% (320/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x7000, size=0x1000)

[=============                 ] 45% (384/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x8000, size=0x1000)

[================              ] 53% (448/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x9000, size=0x1000)

[==================            ] 60% (512/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0xa000, size=0x1000)

[====================          ] 68% (576/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0xb000, size=0x1000)

[======================        ] 76% (640/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0xc000, size=0x1000)

[=========================     ] 83% (704/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0xd000, size=0x1000)

[===========================   ] 91% (768/840 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0xe000, size=0x1000)

[============================= ] 99% (832/840 pages)write(addr=0x20005000,size=0x200)
writeBuffer(scr_addr=0x20005000, dst_addr=0xf000, size=0x200)

[==============================] 100% (840/840 pages)
done in 0.413 seconds

Verify 53756 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = e750
checksumBuffer(start_addr=0x3000, size=0x1000) = 61eb
checksumBuffer(start_addr=0x4000, size=0x1000) = c8d6
checksumBuffer(start_addr=0x5000, size=0x1000) = e023
checksumBuffer(start_addr=0x6000, size=0x1000) = de29
checksumBuffer(start_addr=0x7000, size=0x1000) = cb7d
checksumBuffer(start_addr=0x8000, size=0x1000) = e385
checksumBuffer(start_addr=0x9000, size=0x1000) = 5926
checksumBuffer(start_addr=0xa000, size=0x1000) = cf60
checksumBuffer(start_addr=0xb000, size=0x1000) = de07
checksumBuffer(start_addr=0xc000, size=0x1000) = 33a1
checksumBuffer(start_addr=0xd000, size=0x1000) = ec1a
checksumBuffer(start_addr=0xe000, size=0x1000) = 9488
checksumBuffer(start_addr=0xf000, size=0x1fc) = 74ea
Verify successful
done in 0.052 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

ReplyQuote
cdd9e4b1ca94ed43968d9388651bfab9?s=80&d=mm&r=g
(@mathias-wilhelm)
Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

AT the very beginning, there is this code:

  // WIFI MODULE INITIALIZATION PROCESS
  SerialUSB.println("WIFI init");
  Serial1.flush();
  Serial1.print("+++");  // To ensure we exit the transparent transmision mode
  delay(100);

The board hangs on the Serial.flush(); command !!!

I put debug statements befoer and after to proove this and when commenting it out, the board starts up

Is this a hardware error?

 


ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 6 years ago
Posts: 780
 

If it hangs when trying to flush the serial “fifo” it has to be because of:

1) Incompatible library/ies 

2) Serial port misconfigured.

Try to do this:

Use the Arduino libraries attached to this message and create a back-up of yours. Extract the ones contained in the .zip file and try again.

If you are using a Windows OS they should be located inside the \Documents\Arduino\libraries folder

 

 


ReplyQuote
Share: