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
Normal Topic VS2022, Pico, and picotool.exe upload error (Read 1590 times)
larrybud
Newbies
*
Offline


Posts: 2
Joined: Jan 14th, 2024
VS2022, Pico, and picotool.exe upload error
Jan 14th, 2024 at 7:33pm
Print Post  
New installation. I'm seeing if I can migrate from using VSCode and PlatformIO to VisualMicro. Using the Raspberry PI Pico. I wrote a simple blink program to test end to end, and I'm having trouble uploading to the Pico.

I have a valid COM port and I'm choosing the PICOTOOL for the Upload Method. I'm choosing that because (at least with PlatformIO), I do not have to put the pico into boolsel mode.

The Picotool upload fails with a general error message:
"The uploader returned an error"

In looking at the command for the upload, I get the following:

Uploading 'VisualMicro Pico Test' to 'Raspberry Pi Pico(rp2040_rpipico)' using 'COM10'
Uploader started for board Raspberry Pi Pico(rp2040_rpipico)
Upload method will be: bootloader
Uploading via Bootloader 
0-a-d3d2e6b\picotool load "C:\Users\rareddy\AppData\Local\Temp\VMBuilds\VisualMicro Pico Test\rp2040_rpipico\Debug/VisualMicro Pico Test.ino.uf2" -f
The uploader returned an error


When I enter into a command window and attempt to run this, I get a windows system error dialog:

"The code execution cannot proceed because libstdc++-6.dll was not found"

I click OK and I get the same message but for file: libgcc_s_dw2-1.dll

I messed around for hours last night trying to fix this. I was going to try to build my own version of picotool but that required libusb and after screwing around trying to get that installed and found when building, I gave up.

I'd much rather have a one-click solution than having to install my own toolchain anyway, since I will need to do this on a 2nd machine. Any help?
  

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


Posts: 2705
Joined: Feb 13th, 2019
Re: VS2022, Pico, and picotool.exe upload error
Reply #1 - Jan 15th, 2024 at 11:35am
Print Post  
Thanks for the report.

The DLL errors are caused by the tools included with the board package being incomplete, or having a dependency which is not automatically installed.

One route is to ensure you have the MinGW64 DLL files available on your machine, and these are all included in the GitSDK tool for windows. You can just clone their GitHub Repo for the files, or use their installer to setup Git fully.

Once installed you will be able to find the GitInstallFolder\mingw64\bin folder, and adding this to your Systems' PATH variable will then allow the PicoTool to work correctly.

We will check if this has been raised with the tool and package creator as it will be problematic for a wide range of users.



  
Back to top
IP Logged
 
larrybud
Newbies
*
Offline


Posts: 2
Joined: Jan 14th, 2024
Re: VS2022, Pico, and picotool.exe upload error
Reply #2 - Jan 20th, 2024 at 12:24am
Print Post  
Unfortunately adding that folder into the system path didn't fix the problem. 

Note that the git\mingw64\bin folder doesn't contain the DLLs which are missing that picotool is looking for.

Can someone try this and see how it works on their system?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint