Updating firmware with Linux and USBasp #qcx #avr #firmware #eep


Kevin Zembower
 

Final documentation effort. To see how to update QCX firmware with Linux and an Arduino as an ISP, see https://groups.io/g/QRPLabs/message/38538. To use Linux with a USBtinyISP, see https://groups.io/g/QRPLabs/message/38593.

I used the USBasp I found here: https://www.amazon.com/gp/product/B07NZ59VK2/ref=ppx_yo_dt_b_asin_title_o00_s01?ie=UTF8&psc=1.
When connected to the USB on the Linux PC, it logs these messages in dmesg:
[389469.389439] usb 3-4: new low-speed USB device number 14 using xhci_hcd
[389469.543645] usb 3-4: New USB device found, idVendor=16c0, idProduct=05dc
[389469.543649] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[389469.543652] usb 3-4: Product: USBasp
[389469.543655] usb 3-4: Manufacturer: www.fischl.de
These were the commands I used and the output I saw:
$ avrdude -c usbasp -p m328 -U flash:w:T1.01a.hex:i
 
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
 
Reading | ################################################## | 100% 0.00s
 
avrdude: Device signature = 0x1e9514 (probably m328)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "T1.01a.hex"
avrdude: writing flash (31940 bytes):
 
Writing | ################################################## | 100% 19.50s
 
avrdude: 31940 bytes of flash written
avrdude: verifying flash memory against T1.01a.hex:
avrdude: load data flash data from input file T1.01a.hex:
avrdude: input file T1.01a.hex contains 31940 bytes
avrdude: reading on-chip flash data:
 
Reading | ################################################## | 100% 16.25s
 
avrdude: verifying ...
avrdude: 31940 bytes of flash verified
 
avrdude: safemode: Fuses OK (E:FC, H:D1, L:F7)
 
avrdude done.  Thank you.
 
 
Let me know if you have any questions.

-Kevin
KC3KZ