Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
yun uploader (Read 353 times)
vegartb
Newbies
*
Offline



Posts: 8
yun uploader
Sep 22nd, 2020 at 5:00pm
 
Hi Smiley
I have used VS for some time to program arduino yun  over wifi.
For some time this has not been working (last three weeks) the last error message was:
"
Connecting ...
Algorithm negotiation fail
Connection closed
Upload failed"

Anyone have a idea for a solution?

mvh vegar
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 515
Re: yun uploader
Reply #1 - Sep 22nd, 2020 at 5:07pm
 
1)

Thanks for the report, would you be able to attach the build log as shown at the top of the page (with Verbose, and Show Build Properties Enabled?)

If you could also attach the output from an Upload, with the "vMicro > Upload > Verbose"  property enabled as well it will help us see more about the issue.

2)

Please confirm working using the Arduino IDE?

Thanks
Back to top
« Last Edit: Sep 22nd, 2020 at 5:48pm by Visual Micro »  
 
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #2 - Sep 22nd, 2020 at 7:54pm
 
I am not sure if I completly understand everything you ask for... but yes I am using Arduino IDE. My solution now is copy- paste into the orginal arduino IDE software after writing in VS. The uploader and serial monitor works there Smiley

I have attached pictures with micro build.

vegar
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #3 - Sep 22nd, 2020 at 8:09pm
 
Okay, please follow the guide in the yellow box above.

Thanks
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #4 - Sep 22nd, 2020 at 9:05pm
 
Smiley
Ok, sorry. now I understand Smiley
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 515
Re: yun uploader
Reply #5 - Sep 23rd, 2020 at 10:40am
 
Thanks for the logs, would it also be possible to attach the Build and Upload logs from the Arduino IDE (with Preferences > Show Verbose Output During Build + Upload Checked)?
Back to top
« Last Edit: Sep 23rd, 2020 at 3:10pm by Simon@Visual Micro »  
 
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #6 - Sep 23rd, 2020 at 6:25pm
 
Yes, this file show the build in Arduno IDE
mvh vegar
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #7 - Sep 23rd, 2020 at 6:42pm
 
Thanks, that shows the Arduino IDE is using serial upload COMx but in Visual Micro you are using IP address.

Can you give output from the Arduino IDE when uploading using IP address?

Thanks
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #8 - Sep 23rd, 2020 at 7:45pm
 
No, this was a upload using IP adress...
this file shows the same program uploaded thru usb (com4)

vegar
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #9 - Sep 24th, 2020 at 1:59pm
 
Thanks, yes I forgot, I think the Yun runs avrdude from the linux processor on the Yun which is why we see it at the end of the arduino output. We will look into this.

It would be useful if you switch on the Upload Verbose in both arduino and visual micro so we can see the upload commands. It is possible you updated the avr or some other tools that we need to retest with. Strange because the yun isn't developed anymore by arduino and has not changed for years.
Back to top
« Last Edit: Sep 24th, 2020 at 1:59pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #10 - Sep 24th, 2020 at 2:59pm
 
Ok. I found it trange to, because I have been using visual Micro with Yun for many years with no problem...

I looked into my last project... tho one I have sendt you, It is a Yun rev2... this one has not been around a long time...?  I could check at work tomorrow with a yun first edition?

vegar
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #11 - Sep 24th, 2020 at 3:58pm
 
Useful thank you
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #12 - Sep 24th, 2020 at 6:46pm
 
Hi Smiley
I could not wait, went to work... got a yun 1. generation... and it works like a charm Smiley No problems with visual micro.
Switch back to Yun rev2 and the problem is back.
I could not  think the new yun was the problem... and I have ordered Yun rev 2 to my class at work Sad

mvh vegar
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #13 - Sep 24th, 2020 at 7:39pm
 
Can you please give verbose output with build properties from your work. That will help to show if the difference is the tool chain versions. It will be useful to see the working versions.

Thanks
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
vegartb
Newbies
*
Offline



Posts: 8
Re: yun uploader
Reply #14 - Sep 24th, 2020 at 8:10pm
 
Hi Smiley
OK, I took the basic example blink. Build and upload success on Yun rev1 (first edition). microbuild in txt file.

The same example build and upload failed on Yun rev2. microbuild in txt file
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #15 - Sep 24th, 2020 at 8:30pm
 
Thanks, that's really useful. We will come up with a solution during the next week or two.

In the meantime you should be able to create a .bat file that runs the Arduino CLI to do same...

example: Contents of myproject_upload_release.bat. Note that the build folder can be found in the compiler output and has to be changed for your real project.

Code:
"C:\Program Files (x86)\Arduino\arduino-builder.exe" upload -b arduino:avr:yun --input-dir  "C:\Users\vegar\AppData\Local\Temp\VMBuilds\blink_upload_testing\yun\Release" -p 192.168.38.237 

Back to top
« Last Edit: Sep 24th, 2020 at 8:34pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
Ron_Cdn
Newbies
*
Offline



Posts: 1
Canada
Re: yun uploader
Reply #16 - Oct 9th, 2020 at 7:59pm
 
Hi,
I recently installed VS Micro and have encountered the same problem.
Hopefully a fix is forthcoming but I wanted to add my two cents worth to help shed some light on the issue.

Originally I connected to a Dragino Yun shield / Uno board and everything worked great.
When I switched to the Arduino Yun Rev 2 programs won't upload and the terminal will not connect either.

With very limited experience in this area  - I did a little sniffing with WireShark and it seems that SharpSSH in VS Micro and Dropbear on the Arduino don't share a common SSH cipher and the connection gets terminated.

Perhaps it's already been fixed but if any more info is needed eg. OpenWrt versions / cipher types etc. I could post them.

Thanks
Ron


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



Posts: 10895
United Kingdom
Re: yun uploader
Reply #17 - Oct 10th, 2020 at 2:07am
 
Thanks, that is useful info. It hasn't been fixed yet but it is in the short term pipeline.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: yun uploader
Reply #18 - Oct 17th, 2020 at 9:02pm
 
Please try the LATEST release for Visual Studio v20.09.10.11 (not yet in the gallery)

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

The release implements a new SSH library that works with the Yun R2 and other more recent boards that require SSH.

Thanks

Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print