Linux Lite Forums

Full Version: UsbAsp programmer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have just bought a Usbasp programmer for updating the firmware on my quadcopter.Will this work with Linux Lite or do I need to do something to make it work.Will LL detect it when I plug it into my usb port .

Thanks

John
I know nothing about this, but I did find an article that looks like it might help.

http://fos.cmb.ac.lk/esl/programing-avr-...04-usbasp/
The author's webpage says that no kernel driver is needed:
http://www.fischl.de/usbasp/

Then it depends what application is recommended  for the firmware update. Quite usual is AVRdude and that is available.
After a quick search in "Install/Remove Software" the avrdude package is available just type "avrdude" in the quick filter box at the top.
Thanks lads,I have now installed avrdude and now have to wait for my programmer to arrive.

John
Hi,

Just to add to the comments.
I have a bunch of radio type devices I plug into LL, that all work.
You can check if it is recognised by LL

Before plugging in the device, open a terminal(crtl+T), and type:
Code:
lsusb
You should get something like:
Code:
dave@hp-lappy1:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 0eef:a107 D-WAV Scientific Co., Ltd
Bus 002 Device 003: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 002 Device 002: ID 0bda:571a Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Now plug in the device, and do the lsusb command again
This is with one of my Radio devices plugged in:
Code:
dave@hp-lappy1:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 0eef:a107 D-WAV Scientific Co., Ltd
Bus 002 Device 003: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 002 Device 002: ID 0bda:571a Realtek Semiconductor Corp.
Bus 002 Device 014: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
You can see a new device FT232. The most common devices are FTDI & Prolific

One final thing, I did have an initial issue.
The way some USB devices communicate need you to be added to a certain "Group"
To avoid any possible issues, I suggest you do that before plugging in the device.
Do the following command in a terminal. You only need to do it once, you can do this now.
Code:
sudo usermod -aG dialout username
Just replace username with your LL username.

GL
Thanks for that Wirezfree,most useful

John.
Just tried to flash my kk board with my usbasp and it says the unit is not recognizes so unable to open it.

this is the message I am getting

AVRDUDE Warning cannot open USB device
Permission denied
avrdude error could not find usb device with vid=0x16c0 pid=0x5dc vender=www.fischl.de product=USBasp

Error during writing flash

Hope someone can tell how I can make it recognize the usb port the programmer is using.

Thanks

John
what are the outputs from the above commands i gave.?

Update:
Given this requires a specific piece of Hardware,
it maybe difficult to help unless somebody happens to have one...

There's lot's on this topic if you Google:
ubuntu avrdude error could not find usb device with vid=0x16c0 pid=0x5dc vender=www.fischl.de product=USBasp

Like this one: Dirty Fix
I have tried the "Quick and Dirty fix" and it seems to work.
Pages: 1 2