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] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Ras Pi Picoprobe - Serial print commands not showing - SOLVED - USER ERROR (Read 11779 times)
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Some libraries not found in Visual Studio 2022 for Ras Pi Picoprobe
Reply #20 - Jun 7th, 2022 at 4:20pm
Print Post  
Hi, yes I understand merely trying to find a solution.

Yes serial works fine in Arduino although I have no used it in a while. It worked last time I was in it. I am aware about setup and loop. those are simplified loops and setup to make it easier to code for people. 

I see a delay in there about 5000. you can see it on one of my posts I think of the IDE.

Pico makes the port when you hold down bootloader and short some pins. That part works. I also can use pico in Arduino, just not in Picoprobe mode.

I have not had time to day to work on it but will try to.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
RE: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #21 - Jun 7th, 2022 at 5:02pm
Print Post  
Please test the Serial in the Arduino IDE with the same code. It has the DTR on all the time.

« Last Edit: Jun 7th, 2022 at 5:13pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #22 - Jun 8th, 2022 at 3:25pm
Print Post  
Hi, I tested in arduino IDE. I had to use a different file although same code. I cant get Picoprobe working on arduino IDE just he regular Earl RP2040 library. But you can see it works. Have not done more testing in VS2022 but will try to today.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #23 - Jun 8th, 2022 at 3:28pm
Print Post  
Great, I look forward to hearing how the same board and same code works with Visual Micro.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #24 - Jun 8th, 2022 at 4:59pm
Print Post  
Please try the attached simple project (we have tested on v2.0.2 of the board package), and we found the delay(1) seemed to lock up the board after the first button press, hence it being extended in our very simple example.

This was tested with:
Debug: Off
Board: Raspberry Pi Pico (Picoprobe)
DTR + RTS Enabled on Serial Monitor

As you have both the Pico board, and PicoProbe board connected via USB, there will be two serial ports presented.  Make sure the one for the Pico is selected when both are connected via USB.

It is also worth ensuring the Serial lines are not connected between the Pico and the Pico Probe.  If they are please let us know as this will forward the serial traffic through the PicoProbe board as well.

Note: The same sketch worked fine in the Arduino IDE as well, with the same board selected, and both boards connected via USB.
  

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


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #25 - Jun 8th, 2022 at 9:06pm
Print Post  
ok cool. give me a bit. have some other things to attend to first.
  
Back to top
 
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #26 - Jun 9th, 2022 at 3:48am
Print Post  
Hi, Ok I have tested it. I dont have both serial connected because one will be a host USB when I get this to the point where I can write code and test it. Thus It is only going through the pico probe Com 9. 

So far no success. Release, Debug, Debug off, Debug on same thing, nada. Release won't compile so that 

the breaks will hit in Debug mode so I can verify that. I assume the code is getting loaded onto the board. I have tried different combinations. Should I try to uninstall my previous OpenOCD and GDB or.. whatever all that other stuff I put in to get PicoProbe to work on Ard IDE that never did? Maybe it is getting in the way. I do not think it is the COM port as 6 did work on Ard IDE. If you can get it to work must be something in my system not connecting to VS. 

Soo I changed the library to just Earls Ras Pi Pico so am plugged into COM 10 direct to the target not through PicoProbe and with Debug off I GET SERIAL OUTPUT! yeah!

SOO its something on the PicoProbe side. 

Hope that gives you some ideas. 



  

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


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #27 - Jun 9th, 2022 at 9:45am
Print Post  
Thanks for the detail.

When using the Serial Passthrough on the PicoProbe:
  • Ensure that the PicoProbe Interface 0 has the standard USB Serial driver (Not the WinUSB on we install on Interface2 for debugging)
  • Update the sketch code to use "Serial1" instead of Serial, which ensures it will be output to the PicoProbe via UART0, instead of the USB port.
  
Back to top
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #28 - Jun 9th, 2022 at 3:15pm
Print Post  
Hi, I can't seem to get instance of Serial to be used as Serial1. can you help me with some code?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #29 - Jun 9th, 2022 at 3:25pm
Print Post  
It should just be adding a '1' to the end of the Serial call as shown below:
// the setup function runs once when you press reset or power the board
Code
Select All
void setup() {
	Serial1.begin(115200);

}

// the loop function runs over and over again until power down or reset
void loop() {
	if (BOOTSEL) {
		Serial1.println("Bootsel is high");
		while (BOOTSEL) {
			delay(10); // Delay 10ms as 1ms seems to leave the board hanging sometimes
		}
  }
} 

  
Back to top
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #30 - Jun 9th, 2022 at 3:29pm
Print Post  
Hi, yes i tried that in the past also. No Success.

Compiling 'RPiPico_SerialTest' for 'Raspberry Pi Pico (Picoprobe)                                                                                             (rp2040_rpipicopicoprobe)'
CoreMutex.h: In constructor CoreMutex::CoreMutex(mutex_t*)
 
   error: Serial1 was not declared in this scope; did you mean Serial?
debug_internal.h:30: note  in expansion of macro DEBUG_RP2040_PORT
   30 | #define DEBUGCORE(fmt, ...) do { DEBUG_RP2040_PORT.printf(fmt, ## __VA_ARGS__); DEBUG_RP2040_PORT.flush(); } while (0)
   |                                  ^~~~~~~~~~~~~~~~~
CoreMutex.h:36: note  in expansion of macro DEBUGCORE
   36 |                 DEBUGCORE("CoreMutex - Deadlock detected!\n")
   |                 ^~~~~~~~~
Error compiling core
Build failed for project 'RPiPico_SerialTest'
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #31 - Jun 9th, 2022 at 3:30pm
Print Post  
Please attach the full build log with the verbose options as shown at the top of the page so we can investigate more easily.
  
Back to top
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #32 - Jun 9th, 2022 at 3:48pm
Print Post  
Hi, here is the output with Serial1 in the sketch and Serial1 for the RP2040 settings as the Serial to use. 

it will not let me attach a file anymore here. so here it is.

edited.. ok emailed text file to you.
« Last Edit: Jun 9th, 2022 at 4:08pm by Micro1 »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #33 - Jun 9th, 2022 at 3:54pm
Print Post  
Please email the full file to us to investigate.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #34 - Jun 9th, 2022 at 4:40pm
Print Post  
If you change the board options to match the defaults below it should resolve this error:
Debug Port: Disabled
Debug Level: None

These debug options are for logging from the core itself which is unrelated to vMicro Serial / Hardware debugging functionality.
  
Back to top
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #35 - Jun 9th, 2022 at 5:05pm
Print Post  
Ironic. doing that allows it to compile but then Com9 will not connect.
If I set it to Debug and port Serial not Serial1, and in code says Serial1, it compiles and COM9 connects but no output. There is something off, not sure what.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #36 - Jun 9th, 2022 at 5:15pm
Print Post  
What happens if you set it to Disabled and None as suggested in the previous post?
  
Back to top
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #37 - Jun 9th, 2022 at 5:17pm
Print Post  
Ya I mentioned it. it will Compile but serial monitor will not connect.
  
Back to top
 
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands are not showing in the monitor
Reply #38 - Jun 14th, 2022 at 1:15pm
Print Post  
Simon and Tim have been very helpful. As I had torn the wiring out and rewired it I did lack the UART0 wires. I had gotten distracted and forgot to add them back in. However it still was not working even this morning.

I finally updated the test code from Simon to be Serial1 and the RP2040 options to use Serial for debugging, not Serial1 or Serial2, and suddenly it started working. Looks like a combination of things. Anything can mess up these systems so it all has to be right to work.

Thanks again!
« Last Edit: Jun 14th, 2022 at 1:15pm by Micro1 »  
Back to top
 
IP Logged
 
Micro1
Junior Member
**
Offline


Posts: 32
Joined: May 31st, 2022
Re: Ras Pi Picoprobe - Serial print commands not showing - SOLVED - USER ERROR
Reply #39 - Jun 15th, 2022 at 11:39pm
Print Post  
Yes indeed it is working. thanks again and the patience. i was about to post an image but forgot I cannot then I see you give it the user error title. not cool.  You have me happy then that. not sure its 100% user error though or nice to post it like that. because of my email this addition exists. It took some tries even with my old wiring. I request you remove User Error from the title. that is not cool. Thanks Tim and Simon.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint