dioannidis / usbasp

usbasp improved firmware
GNU General Public License v2.0
73 stars 12 forks source link

Use in Linux #14

Closed void-spark closed 1 year ago

void-spark commented 1 year ago

Any idea if this firmware works in Linux? Would it also need a custom avrdude that supports composite devices or something similar? Any special options that would be needed, like a specific -P ? If not, any suggestions for a branch which does work under Linux? :)

dioannidis commented 1 year ago

Hi @void-spark,


Any idea if this firmware works in Linux?

yes it works . At least in distros who support USB 2.0 BOS descriptors .

i.e. see Debian Buster and up ( running in VM ):

USBasp-dmesg


Would it also need a custom avrdude that supports composite devices or something similar?

AFAIK, avrdude in linux uses libusb which supports composite devices, so no there is no need .

i.e. Arduino IDE 1.8.3 Debian Bullseye uploading the ASCII Table sketch using USBasp as the progammer :

USBasp-Arduino


Any special options that would be needed, like a specific -P ?

Nope, just the usual -c usbasp .

Also there is a linux x86_64 version of the USBaspHIDUART console utility which at least runs in Debian :

i.e.

USBasp-list

and an example of reading the output of the ASCII Table sketch using USBaspHIDUART :

USBasp-recieve

regards,