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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) start without debugging using avrisp2 (Read 38008 times)
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #20 - Mar 10th, 2014 at 2:24pm
Print Post  

If I do that without loading the jungo drivers, In the Serial Port window beside Arduino 1.5x Uno the port is set to 4 but according to device manager the port is actually 5 and I cant see how to change it. 
At the end o build I get:
Uploading to I/O board using 'COM4'
Flushing the serial port
The port 'COM4' does not exist.
I will experiment with the jungo drivers later, I have to go out now.


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #21 - Mar 10th, 2014 at 2:30pm
Print Post  
Ok thanks.

That suggests windows is confused about the usb port. 

Did you power off then re-start your pc after all the usb installs. Sometimes windows get confused?

note: Visual Micro uses .net to get the serial ports list where as arduino uses java. This is why Visual Micro can be confused when Arduino is not but it happens very rarely. You would think Microsoft would get it right more often than Java!
  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #22 - Mar 10th, 2014 at 4:42pm
Print Post  
OK, still using the Arduino drivers, Device manager says, Ports (com & lpt) - Arduino Uno (com 5)
Re-powered my PC and the Arduino environment reports UNO on com5 and I can upload to it.
Going to V Studio and V Micro (sorry I confused the V etc) it still reports on com4.
In V Studio - Tools - V Micro - the other serial poers is disabled so I cant change to com5.

Just going to get information for your other questions.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #23 - Mar 10th, 2014 at 4:54pm
Print Post  
Ok, it was me being thick. I should have known you meant Vm and not Vb  Smiley

What's happening here is that Visual Micro is not getting any com ports from windows. You are seeing com4 simply because Visual Micro remembers the last port you had set and shows it as a reminder. Sometimes it is simply that people have forgotten to plug the board in so we do not really want to clear the selected port.

I will have to look at why you see no ports.

Are you able to switch off "Tools>Options>Vm>Communications>Show friendly port list" and "Tools>Options>Vm>Communications>Show friendly port menus"? Then re-start the ide. 

Any difference? If you drop down the ports list or use the menu do you see any ports?

Thanks

ps: which version of windows are you using, sorry if you have already said?
« Last Edit: Mar 10th, 2014 at 5:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #24 - Mar 10th, 2014 at 5:03pm
Print Post  
1) I guess you have a "sketchbook folder\libraries folder" with a few custom libraries installed?

C:\Users\Jim\Documents\Arduino\libraries is empty
C:\Users\Jim\Documents\Arduino\hardware had  a Tiny folder containing the cores for ATtiny devices.
I removed the Tiny folder because it relates to arduino 1.0.5 anyway. This made no difference.

2) Do you see any libraries listed on project>add/import sketch library>user?
I see: User which is disabled blanked.
         Core which has a list starting with EEPROM
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #25 - Mar 10th, 2014 at 5:06pm
Print Post  
Thanks, I will add more trace message but let's sort the ports out first this might resolve everything.

Please see my prev post and also confirm windows version. Thanks
  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #26 - Mar 10th, 2014 at 5:09pm
Print Post  
As concerns uploading I still need answers to these two questions please

Can you see the Uno listed under tools>visual micro>serial monitor? Is it ticked?

1) Did you un-check tools>visual micro>upload using programmer"?

Yes

2) If you untick "upload using programmer" in Visual Micro and also select the serial port from "tools>visual micro>serial monitor" then press F5 what happens?

Serial monitor is still trying to use com4 instead of com5
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #27 - Mar 10th, 2014 at 5:13pm
Print Post  
Yes it will attempt to use the last selected port until you change it and will wait some time hoping you connect a board.

The problem is that you have no ports listed in Visual Micro, it just shows the last used port which no longer exists

Q

Are you able to switch off "Tools>Options>Vm>Communications>Show friendly port list" and also "Tools>Options>Vm>Communications>Show friendly port menus"? Then re-start the ide. 

Any difference? If you drop down the ports list or use the menu do you see any ports?

Thanks
  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #28 - Mar 10th, 2014 at 5:16pm
Print Post  
Windows 7 home premium.
  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #29 - Mar 10th, 2014 at 5:25pm
Print Post  
"Tools>Options>Vm>Communications>Show friendly port list" and also "Tools>Options>Vm>Communications>Show friendly port menus"? Then re-start the ide.

In the Tools Vm, other serial ports is disabled.
In the drop down list I can select COM5 but I get a message"Still Loading, wait a second"
  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #30 - Mar 10th, 2014 at 5:27pm
Print Post  
I am still not using the jungo drivers, should I try them?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #31 - Mar 10th, 2014 at 5:31pm
Print Post  
Quote:
I am still not using the jungo drivers, should I try them?


Jungo has no effect on serial ports so feel free. They have worked well for my testing on various machines. Easy to put avrisp drivers back if you have issues.

However I would open a new thread with any problems because it's unconnected to serial and this thread has got huge
« Last Edit: Mar 10th, 2014 at 10:59pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #32 - Mar 10th, 2014 at 11:02pm
Print Post  
Please also switch off "tools>options>vm>communications>network discovery" this will give you the old style ports list.

If the port list is wrong then I will give you a link to a simple c# app that shows what windows things is the current port list.


Thanks
« Last Edit: Mar 10th, 2014 at 11:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #33 - Mar 11th, 2014 at 9:07am
Print Post  
Tim@Visual Micro wrote on Mar 10th, 2014 at 11:02pm:
Please also switch off "tools>options>vm>communications>network discovery" this will give you the old style ports list.


Bingo, in VM I can now connect to the bootloadable Arduino through the USB using the Arduino LLC driver.
I can also use avrisp on my other Arduino if I select the first avrisp, but not the second, in the Tools-VM-Programmers and using the libusb-win32 driver.
jungo drivers dont work on either avrisp  in the Tools-VM-Programmers.
« Last Edit: Mar 11th, 2014 at 9:56am by Trek19 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #34 - Mar 11th, 2014 at 1:20pm
Print Post  
Great. Okay I want to explain some things about what has been happening but first I want to be clear about some thing which you might already have realised. 

Quote:
Visual Micro does not install or alter any usb drivers it just uses whatever Arduino or Atmel or the user has installed


1) The COM problems you encountered were due to the fact that your windows 7 wmi database is slightly corrupted. I have read on the web that this sometimes happens and there are, for windows 7, some simply fixes. I haven't tried any fixes because I do not have the problem. 

You can see the type of code that Visual Micro uses to get serial port names using this microsoft tool: http://www.microsoft.com/en-us/download/details.aspx?id=8572

For example I just used the tool to produce this

Code
Select All
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM Win32_SerialPort",,48)
For Each objItem in colItems
    Wscript.Echo "-----------------------------------"
    Wscript.Echo "Win32_SerialPort instance"
    Wscript.Echo "-----------------------------------"
    Wscript.Echo "Description: " & objItem.Description
Next 



Actually Visual Micro uses a C# equivalent with the  ManagementObjectSearcher

2) To fix the wmi on windows7 I have found this untested suggestion on the web

Code
Select All
winmgmt /standalonehost
winmgmt /resetrepository 



3) Libusb-win32 should work in Visual Micro if you have ticked the standard AVRISP mkII

4) Jungo should work in Visual Micro if you have ticked Atmel AVRISP mkII

5) In both cases 3) and 4) with tools>options>visual micro>compiler>verbose you will see the command line that Visual Micro us running to invoke the tools that control the programmers. So you will see that Visual Micro does not know the usb driver it just runs the appropriate tool.exe for the selected programmer. 

I think this means that you have some other issues on your pc. An easy test, with Jungo install, is to see if you can use the standard atmel studio tools>device programming dialog to upload your .elf. I expect you should see the same error that Visual Micro encounters. If not then we I can ask Atmel about it but please open a new thread purely for Jungo/Atmel programmers

Again to solve the win32 libusb error also please open a new thread because it is standard stuff and is generally working okay

Both of these last issues might still be related to a corrupted wmi database but that is a wild guess.

I hope this helps
  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: start without debugging using avrisp2
Reply #35 - Mar 11th, 2014 at 1:41pm
Print Post  
OK, I will have to spend a bit of time understanding this.
Sorry to have taken so much of your time on something which is probably on my computer.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: start without debugging using avrisp2
Reply #36 - Mar 11th, 2014 at 1:56pm
Print Post  
No problem. Other users will just think that Visual Micro doesn't work so it was very useful that you also invested this time in helping to understand the cause of this issue.

We have already altered the new help system (due shortly) to include some helpful tips as a result of your post and will continue to consider how we can auto-detect and warn users if this happens. It's a difficult one and I need to go back through the forum logs because I suspect someone else has encountered the issue but I didn't have the detailed answers to determine the cause!

So thanks  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint