I’m trying to upload any program to an arduino controller (mega2560 or uno does not matter) but I get Error messages as following:
Sketch uses 6654 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 291 bytes (3%) of dynamic memory, leaving 7901 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
somtimes interrupted by
avrdude: stk500v2_recv(): checksum error
I assigned the complete USB card to the vm and the usb port is found and access rights are given within vm. Everything looks fine. My webcam would run on this vm.
Within the arduino IDE I can use Tools–>Board Info and that works perfect.
Are there specific settings for Qubes to allow programming of arduino type controllers/timeouts?
When whiping the complete disk and install archlinux programming works without troubles. Same hardware, same program, same port, same cable, same arduino.
are you sure the right device is being used and the right permissions are assigned to the device?
eg what is ls -l /dev/ttyACM* show? it might be owned by group dialout, which you will need to riun sudo usermod -a -G dialout user to add the generic user user to the dialout group (in your template otherwise will get lost when appvm dies).
from what i can tell, get board info only matches board info by usb vendorid:productid, its not really talking to the board/bootloader
There is a problem with Qubes. It was quite a while ago for me and the only note I have is in the script that runs avrdude that says power cycle the target if it gets stuck this way. I ended up using a spare uno as an ISP programmer interface and leaving it connected to the USB port all the time. Needed so I can program nanos, lock bits and bootloaders into virgin chips.