USBasp Help!

Hi All,
Well I've been away from the Arduino for 18 months or so, most of my boards (Nano/Uno) were programmed using the USBasp programmer. Now when I try the IDE or Uecide can't find it and I get various error messages. I think there may be a driver that wants installing, but having just turned 70 I put it down to memory or in my case lack of it!!

There is no problem just using a USB cable to download a prog! on a bootloaded board. Also from where do I update or download more libraries? it seems my I2CIO.h file is missing! and others seem to be corupt? and listed as invalid.

Regards

Mel.

Cactusface:
I get various error messages.

It's more helpful if you post the full text of any error messages.

Cactusface:
I think there may be a driver that wants installing

Which operating system are you using?

Cactusface:
it seems my I2CIO.h file is missing!

Make sure you have the right library installed.

Cactusface:
others seem to be corupt? and listed as invalid.

Usually invalid library warnings are caused by incorrectly installed libraries or things that aren't libraries being put in the libraries folders. I'd need more information such as a directory listing of the folder of each invalid library to give you specific instruction on how to fix.

pert:
It's more helpful if you post the full text of any error messages.
Which operating system are you using?
Make sure you have the right library installed.
Usually invalid library warnings are caused by incorrectly installed libraries or things that aren't libraries being put in the libraries folders. I'd need more information such as a directory listing of the folder of each invalid library to give you specific instruction on how to fix.

Hi Pert,
Sorry this is not my usual way of doing things BUT! Here's an error that's new and not seen before, using USBasp:
Compiling...
• Preprocessing...
• Compiling sketch...
• Compiling core...
‣ arduino
• Compiling libraries...
‣ TM1638
• Linking sketch...
avr-gcc: error: -fuse-linker-plugin is not supported in this configuration

This was programming a Nano via USBasp.. on Uecide, Win10 64bit. Device manager says driver installed and working, that is Libusb-win32? do I need the FTDI driver/file or did I use that with the mini??

Must go and try something else, any help would still be very welcome.

Regards

Mel.

The other errors are sort of 50 lines long, mostly warning of invalid libs.

Cactusface:
avr-gcc: error: -fuse-linker-plugin is not supported in this configuration

That's a compiler error. It has nothing to do with the USBasp, that would only cause errors in upload. This error is caused by using a hardware package that specifies the LTO compiler flags with an old compiler version that doesn't support LTO. I don't have experience with Uecide so I can't help you much other than saying you need to update the compiler to a new version.

Cactusface:
Device manager says driver installed and working, that is Libusb-win32?

I have had problems using the Libusb-win32 driver with the latest version of AVRDUDE used by the Arduino IDE (6.3). I'm not sure whether this is a problem for everyone because I have only seen it reported a couple times in months. I was able to fix it by installing libusbk using Zadig:
http://zadig.akeo.ie/
but I'd focus on the compiler error now. After fixing that if you can successfully upload then there's no point in messing with drivers.

Cactusface:
The other errors are sort of 50 lines long, mostly warning of invalid libs.

The invalid library messages are warnings, not errors. They won't cause a compilation to fail on their own, though if your code tries to include a file from an invalid library then the IDE won't be able to find it and that will cause the compilation to fail. If you're getting to the avr-gcc error then that's not a problem though because it never would have gotten that far if there was a missing file. As I said, happy to help with the invalid library warnings but I can't provide any more advice on that than I already have in my previous reply without more information.

Hi All,
This is the error I get most of the time:

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : usb
Using Programmer : usbasp
avrdude: Warning: cannot open USB device: Function not implemented
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'

avrdude done. Thank you.

Which seems to say it can't find the programmer, I have 2 and tried both, a Uno on a USB cable works fine on the same port. There very cheap chinese ones, so have I blown them both??

regards

Mel.

Please use code tags (</> button on the toolbar) when you post warning or error messages.

That does sound like you could be encountering the driver issue. It would make sense if they were working 18 months ago, which was before Arduino released their version of AVRDUDE 6.3, and I can see from the error that you're using AVRDUDE 6.3 now. Try installing libusbk using Zadig. There is more information on the problem and driver installation instructions here:
https://forum.arduino.cc/index.php?topic=415210.0

Hi Pert,
Thanks again for your help, the compiler error only pops up on Uecide including an old v.8.8 the lastest version 8.9.10 so it's perhaps a problem with Uecide's compiler?:

Compiling...
• Preprocessing...
• Compiling sketch...
• Compiling core...
‣ arduino
• Compiling libraries...
• Linking sketch..

avr-gcc: error: -fuse-linker-plugin is not supported in this configuration
Compiling Failed

That's with the simple Blink code. But it's fine in the Arduino IDE!

I did install libusbk with zadig but it did'ent solve my problem with the programmer.

Another problem is lots of these files where on a Mac pro, and now seem to have odd code? Characters imbedded in them and give errors like this:

:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3896: warning: null character(s) ignored

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3639: error: stray '\1' in program

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3900: warning: null character(s) ignored

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3639: error: stray '\36' in program

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3909: warning: null character(s) ignored

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3639: error: stray '\34' in program

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3919: warning: null character(s) ignored

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3639: error: stray '\36' in program

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3639: error: stray '\377' in program

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:3:3639: error: stray '\377' in program

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:1:9: error: 'Mac' does not name a type

a Mac OS X 2 ° â ATTR;šÉÿ â ”

^

C:\Users\Mel\Documents\Arduino\libraries\Servo\src\avr._Servo.cpp:1:132: error: 'Zone' does not name a type

a Mac OS X 2 ° â ATTR;šÉÿ â ”

Is there an easy way to clean these files up? It's a lot of rewritting if not. Could try something simple like wordpad, what would show them, so I can delete them?

Help and advice very welcome, regards.

Mel.

What's the story with that C:\Users\Mel\Documents\Arduino\libraries\Servo library? Is it different from the Servo library included with the Arduino IDE? If not just delete it and the one included with the Arduino IDE will be used instead.

Hi Pert,
As far as I know my Libraries have always been in there! That is in my Arduino sketch folder, in DOCS. But I now see that there are libs in Progam files (x86)/arduino/libraries. The Arduino IDE shows where your sketches are, but not the libs or where they should be? So it may not be using my libs, and so some will be missing!! or not seen.

So I need all my Libraries together, but where? Perhaps this new? IDE works a little different to my old version? I have lots more libs under docs/arduino then under prog/arduino/libraries.. Can I just copy them over? and delete them under docs/arduino.

Thanks again,

Mel.

{sketchbook folder}/libraries is for user installed libraries, including those installed via Library Manager or Sketch > Include Library > Add .ZIP Library....

The Arduino IDE includes a set of stock libraries at {Arduino IDE installation folder}/libraries

Hardware packages also include package specific libraries, which will only be accessible when one of the boards of that package are selected in the Tools > Board menu

If there are multiple libraries of the same name installed the one in {sketchbook folder}/libraries will be used. This allows you to create modified versions of the standard libraries included with the Arduino IDE.

[quote author=Cactusface link=msg=3223682 I have lots more libs under docs/arduino then under prog/arduino/libraries.. Can I just copy them over? and delete them under docs/arduino.
[/quote]
You should never install anything to the Arduino IDE folder because it will be lost when you update to a new version of the Arduino IDE. Use the sketchbook folder. You may sometimes find instructions that tell you to install things to the Arduino IDE installation folder but you should ignore them and be skeptical of any other instructions or code provided by that person.