I’ve used XOD before, and deployed just fine. But, after “reload”, it is having problems now (
avrdude: stk500_getsync(): can't communicate with device: resp=0x04).
Using the Arduino IDE works fine. Tried using the hello-world tutorial (using “deploy” patch, for example).
This allows things to work:
- Close XOD (not restart, must close)
- Open XOD
- Click on tutorial
- deploy (doesn’t matter what patch)
- uploads ok.
- (my own projects also upload)
- (having Arduino IDE open or closed has no effect)
To break it (everytime):
- Reload xod: ctrl-R
- click on tutorial
- deploy (any patch)
can't communicate with deviceas below
- further reloads give same behavior. Must close to fix.
So, it’s the reload, presumably doing something to the serial port. Like failing to release it? Or (re-)misconfiguring it?
XOD 0.25.3 "upgrade arduino packates & toolchains": upgraded Linux 4.15.0-38-generic #41~16.04.1-Ubuntu SMP Wed Oct 10 20:16:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 16.04.5 LTS Genuine Arduino UNO smd AND Mega2560 (clone). arduino ide port: /dev/ttyACMO (Arduino/Genuino UNO) xod port: /dev/ttyACMO (Arduino Srl)
Uploading compiled code to the board... avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/home/awgrover/xod/__packages__/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf" User configuration file is "/home/awgrover/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyACM0 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: stk500_getsync(): can't communicate with device: resp=0x04 avrdude done. Thank you. Error: exit status 1 Error during upload. Upload failed Command `/opt/XOD\ IDE/resources/arduino-cli --config-file=/tmp/arduino-cliZ6Hg24/.cli-config.yml upload --fqbn arduino:avr:uno --port /dev/ttyACM0 --verbose -t /tmp/xod_temp_sketchbooktLAQwy/xod_1543764498453_sketch` failed with code 1 Make sure the board is connected, the cable is working, the board model set correctly, the upload port belongs to the board, the board drivers are installed, the upload options (if any) match your board specs.
No messages in “developer tools” that seems relevant (several
"ENOENT: no such file or directory, open '/opt/XOD IDE/resources/app-update.yml'")