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
Raspberry pi Pico (Read 479 times)
Precious Roy
Junior Member
**
Offline



Posts: 11
Raspberry pi Pico
Sep 16th, 2021 at 7:52pm
 
Hi,

I have been having some issues with programming my pi pico board. The short version is, if VS2019 is set to debug it works fine but when set to release i cant connect to the serial port and it says its busy in the arduino ide as well as in VS. but if i programm the same code with the arduino ide it works just fine(also in VS) even afeter i reset it it still does not work unless

i was hoping one of you has this issue.

I am using the pi board data you can download from the manager
https://github.com/earlephilhower/arduino-pico
And I have all my settings set to default in the arduino ide and i uploaded the example->basic->AnalogueReadSerial

its all basic stuff so i was hoping one of you had a fix for me
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1057
Re: Raspberry pi Pico
Reply #1 - Sep 17th, 2021 at 12:14pm
 
Thanks for the report.

Can you attach the full build output as a txt file, with the verbose and show build properties Enabled (shown at top of this page), so we can ensure we have all settings correct to replicate the issue?
Back to top
 
 
IP Logged
 
Precious Roy
Junior Member
**
Offline



Posts: 11
Re: Raspberry pi Pico
Reply #2 - Sep 17th, 2021 at 1:37pm
 
i dont mind, but i dont see an attachment button.

Edit:
https://dir.nu/61448f904f00b

you should be able to download it from that link
Back to top
« Last Edit: Sep 17th, 2021 at 1:52pm by Precious Roy »  
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1057
Re: Raspberry pi Pico
Reply #3 - Sep 17th, 2021 at 2:39pm
 
Thanks for the logs.

Are you using the same board in both IDE's, as it appears in Arduino IDE it is using the 1.9.4 Core from the link provided, but in vMicro it is using the 2.4.1 core from the mbed_nano package?

The attachment button should be visible below the box you add your reply in, and if it is not there, there should be an Update Session button on the toolbar at the top which will validate your password and once updated the [Choose File] button should appear.

Do you have the vMicro > Upload > Auto-Open Serial Monitor option enabled? (if so disable this, and try to manually connect)

Can you also attach a picture of the Serial monitor, from Visual Micro when it fails to connect (with it wide enough to see all the buttons at the bottom of the monitor)?
Back to top
« Last Edit: Sep 17th, 2021 at 2:56pm by Simon@Visual Micro »  
 
IP Logged
 
Precious Roy
Junior Member
**
Offline



Posts: 11
Re: Raspberry pi Pico
Reply #4 - Sep 17th, 2021 at 5:26pm
 
Well as you can see in the image i am clicking on the 1.9.4 version but they have the same name so i do not know if this can cause an issue.

and now i see the attachment button, weird that it was not there.



Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Precious Roy
Junior Member
**
Offline



Posts: 11
Re: Raspberry pi Pico
Reply #5 - Sep 17th, 2021 at 5:28pm
 
i just noticed something. sometimes after uploading the new program (Where it was working before programed from arduino) when the comport is 7 it makes a new one and calls it 8. but i can not connect on ether of them.

but when i program with arduino it is always 7 and never changes.
Back to top
 

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



Posts: 1057
Re: Raspberry pi Pico
Reply #6 - Sep 17th, 2021 at 7:04pm
 
Thanks for the detail.

Can you un-install the Mbed_rp2040 core, and then restart Visual Studio, to see if this improves the situation?
Back to top
 
 
IP Logged
 
Precious Roy
Junior Member
**
Offline



Posts: 11
Re: Raspberry pi Pico
Reply #7 - Sep 18th, 2021 at 10:28am
 
Ok that did fix the issue, so it seems to have an issue with the name. and it choosing the wrong core even if the right one is selected. still its a weird issue boteh cores work fine in the arduino ide.

thanks for the help.
Back to top
 
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11149
United Kingdom
Re: Raspberry pi Pico
Reply #8 - Sep 18th, 2021 at 4:13pm
 
Great, we have some changes coming shortly that will resolve multple cores, beta cores and also support multiple versions of the same core.

The switching to a different port is intentional for some cores. Some cores enter programming mode on a different port and include an instruction to let Visual Micro know that is required. The other core works that way. I think the board incorrectly remained on the programming port because of the confusion between cores.

Thanks for the update.

Back to top
 

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