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


Posts: 19
Joined: Dec 6th, 2016
Raspberry pi Pico
Sep 16th, 2021 at 6:52pm
Print Post  
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: 2145
Joined: Feb 13th, 2019
Re: Raspberry pi Pico
Reply #1 - Sep 17th, 2021 at 11:14am
Print Post  
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: 19
Joined: Dec 6th, 2016
Re: Raspberry pi Pico
Reply #2 - Sep 17th, 2021 at 12:37pm
Print Post  
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
« Last Edit: Sep 17th, 2021 at 12:52pm by Precious Roy »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Raspberry pi Pico
Reply #3 - Sep 17th, 2021 at 1:39pm
Print Post  
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)?
« Last Edit: Sep 17th, 2021 at 1:56pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Precious Roy
Junior Member
**
Offline


Posts: 19
Joined: Dec 6th, 2016
Re: Raspberry pi Pico
Reply #4 - Sep 17th, 2021 at 4:26pm
Print Post  
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.



  

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


Posts: 19
Joined: Dec 6th, 2016
Re: Raspberry pi Pico
Reply #5 - Sep 17th, 2021 at 4:28pm
Print Post  
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.
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: Raspberry pi Pico
Reply #6 - Sep 17th, 2021 at 6:04pm
Print Post  
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: 19
Joined: Dec 6th, 2016
Re: Raspberry pi Pico
Reply #7 - Sep 18th, 2021 at 9:28am
Print Post  
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: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Raspberry pi Pico
Reply #8 - Sep 18th, 2021 at 3:13pm
Print Post  
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
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint