Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) AVRISP mkII pogrammer was working but is now failing (Read 10686 times)
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
AVRISP mkII pogrammer was working but is now failing
Dec 28th, 2013 at 1:56pm
Print Post  
I am tearing my hair out over this.  I have received an AVRisp Mk2 this morning.  I initially got avrdude: usbdev_open(): did not find any USB device "usb" so I followed the instructions to create a libusb-win32 inf file and installed that driver.

All worked great for about 15 minutes when it stopped working.

I now cannot get it to recognise the AVRisp any more.  I get the following error in both Arduino IDE and VM:

avrdude: usbdev_open(): Found [unnamed product], serno: [unknown]
avrdude: usbdev_open(): USB device has no configuration
avrdude: usbdev_open(): did not find any USB device "usb"

The correct programmer is selected.  I have reinstalled drivers,  rebooted,  tried changing USB port etc etc but I still get the same error.

The driver is showing as working  (libusb-win32 devices) but it doesnt seem to connect to the AVRisp.   

If I change the USB port then it always installs the Jungo driver.

If I use the Jungo Driver and try to connect via 'device programming' in Atmel Studio it also wont connect.  (This worked fine when I first plugged it in)

I am beginning to think that my AVRISP is bricked.   

Any suggestions?

« Last Edit: Dec 28th, 2013 at 3:53pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRISP mkII pogrammer was working but is now failing
Reply #1 - Dec 28th, 2013 at 3:20pm
Print Post  
Hi,

Sorry to hear about all this. I think there might be more experienced people to ask in the Arduino.cc forum.

Personally I have had a single avrisp mkII for a long time without problem so that does not really count as have experience.

Did you try letting the jungo drivers install then click on the "Remove" driver option on the mkisp in Device Manager allowing windows to permanently delete the driver. Then run the win32 lib usb.
« Last Edit: Dec 28th, 2013 at 3:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRISP mkII pogrammer was working but is now failing
Reply #2 - Dec 28th, 2013 at 3:58pm
Print Post  
I hope you don't mind that I have split your programmer discussions into new threads. 

The system auto generates an "off topic" link but your discussions were not off-topic. It makes life easier for other users by keeping each new issue in a new thread. It also reduces unwanted forum notifications to other members.

The "off-topic" info links in the other posts will be removed in a  few days

Thanks
« Last Edit: Dec 28th, 2013 at 3:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
Re: AVRISP mkII pogrammer was working but is now failing
Reply #3 - Dec 28th, 2013 at 5:03pm
Print Post  
Yes I tried that.   It's just odd that it suddenly stops working when it was OK.

I can't return the AVRisp till Monday so my plan is to attempt a clean installation of Arduino in a virtual PC so I can check whether the problem is due to driver conflicts.  I may also try a manual firmware update on the AVRisp although I havent yet found the tool to do that (it's meant to be in Visual Studio Tools although I cant find it in my version).

I will report back on my progress.

PS no problems with moving my post - thanks
  
Back to top
 
IP Logged
 
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
Re: AVRISP mkII pogrammer was working but is now failing
Reply #4 - Dec 28th, 2013 at 11:31pm
Print Post  
This is most bizarre.

Firstly I plugged the AVRisp into my Macbook and tried it with the Arduino IDE on that.  Amazingly it worked fine.

I then plugged it back into my PC and guess what? - It works perfectly.   The only thing that wont work is burning the bootloader but that is less important as I can use another device to do that.  It gives an error 'USB' not found

Anyway I now know my AVRisp is working OK.  It must have been a driver issue of some sort.  I wont fiddle now for fear of breaking it again.

Don't you just love computers  Undecided
« Last Edit: Dec 28th, 2013 at 11:32pm by drpeej »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRISP mkII pogrammer was working but is now failing
Reply #5 - Dec 29th, 2013 at 1:16am
Print Post  
Thanks for the update that is good news. The bootloader burn issue is a known problem in the last release and fix in the next (due next few weeks)
  
Back to top
IP Logged
 
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
Re: AVRISP mkII pogrammer was working but is now failing
Reply #6 - Dec 29th, 2013 at 9:38am
Print Post  
The bootloader burn doesn't work in Arduino IDE either.  It works with USBASP but not AVRISP so I'm not sure whats going on.

Thanks for all your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRISP mkII pogrammer was working but is now failing
Reply #7 - Dec 29th, 2013 at 2:53pm
Print Post  
It works with avrisp mkII in the Arduino Ide for me. Did you select the right board? Which board are you using?

By the way I noticed a bug with avrdude (affects both vm and Arduino). After I upload using avrisp I can't then upload to the board using normal serial/usb unless I burn a new boot loader.
« Last Edit: Dec 29th, 2013 at 2:55pm by Tim@Visual Micro »  
Back to top
IP Logged
 
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
Re: AVRISP mkII pogrammer was working but is now failing
Reply #8 - Dec 29th, 2013 at 9:54pm
Print Post  
Isnt that because the uploaded sketch overwrites the bootloader?  I thought that was how it was meant to work.  Thats the main reason why I want to use a programmer as the sketch starts up quicker and also doesnt use as much memory
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRISP mkII pogrammer was working but is now failing
Reply #9 - Dec 29th, 2013 at 10:12pm
Print Post  
Oh! Shows how much I know  Smiley Thanks for the info makes sense now.
  
Back to top
IP Logged
 
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
Re: AVRISP mkII pogrammer was working but is now failing
Reply #10 - Dec 31st, 2013 at 11:06am
Print Post  
After much more hair tearing and trial and error I have finally got a stable development system working to upload via AVRisp programmer and debug via serial.

1)   AVRisp was proving very unreliable and kept locking up requiring a complete restart of AS and often reboot of the PC.   I finally tracked this down to my USB 3 hub.  If I plug the programmer into a separate USB 2 port on the PC it works perfectly and hasnt failed now for some time.

2)  The serial debugging was also unreliable,  often giving 'failed to open port' errors.  However, as soon as I moved my programmer to a separate USB port the serial port worked every time.   My serial link is still plugged into the hub which gives me the benefit of a better power supply.

3)  The well known USB auto-reset problem was fixed by using an FTDI converter board connected to pins 0 and 1 with no reset connection.

It's been a frustrating couple of weeks but now I can get down to some coding at last.

I hope this may help others who may run up against the same problems   
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRISP mkII pogrammer was working but is now failing
Reply #11 - Dec 31st, 2013 at 12:32pm
Print Post  
Great post thanks. Yes this will be very useful for advanced users who want to use hadware programmer and dump the bootloader.

The FTDI workaround to prevent auto-reset is possibly the cleanest idea but here is some info for you or others just in case.

If the auto-reset is a problem when serial starts then you will see on the serial monitor a Dtr checkbox. Sometimes the window needs to be made wider to see this checkbox. The setting of the checkbox is saved between sessions and when OFF will prevent the auto-reset.

The debugger will override this setting unless you set "Startup Delay/Dtr" = False in the Visual Micro project properties. The default is True otherwise the debugger can miss breakpoint notifications from early in the Arduino startup such as in the setup().

Thanks again for the info and best of luck
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint