I'm working with a raspberry Pi 3 Model B to upload the ino code using an XBee library. The blink example code performs the upload operations correctly, but when I try to upload the XBee code the following error appears:
root@futebol-rp1:/home/pi/Desktop/sketchbook/sensor-rof-delay# ino upload -m uno -p /dev/ttyUSB0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file ".build/uno/firmware.hex"
avrdude: writing flash (9060 bytes):
Writing | ################################################## | 100% 2.64s
avrdude: 9060 bytes of flash written
avrdude: verifying flash memory against .build/uno/firmware.hex:
avrdude: load data flash data from input file .build/uno/firmware.hex:
avrdude: input file .build/uno/firmware.hex contains 9060 bytes
avrdude: reading on-chip flash data:
Reading | ############### | 29% 0.90s
avrdude: stk500_paged_load(): (a) protocol error, expect=0x14, resp=0xe0
Reading | ############### | 30% 5.59s
avrdude: stk500_cmd(): programmer is out of sync
avr_read(): error reading address 0x0000
read operation not supported for memory "flash"
avrdude: failed to read all of flash memory, rc=-2
avrdude: stk500_cmd(): programmer is out of sync
avrdude: stk500_cmd(): programmer is out of sync
avrdude: stk500_cmd(): programmer is out of sync
avrdude: stk500_cmd(): programmer is out of sync
avrdude: safemode: Sorry, reading back fuses was unreliable. I have given up and exited programming mode
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0xe0
avrdude done. Thank you.
Sometimes, the upload performs correctly but it isn't a usual behavior.
I'm working with a raspberry Pi 3 Model B to upload the ino code using an XBee library. The blink example code performs the upload operations correctly, but when I try to upload the XBee code the following error appears:
Sometimes, the upload performs correctly but it isn't a usual behavior.
thanks already,