VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> Serial debugging -- cannot specify VM port to use
https://www.visualmicro.com/forums/YaBB.pl?num=1648854021

Message started by cfeied on Apr 1st, 2022 at 11:00pm

Title: Serial debugging -- cannot specify VM port to use
Post by cfeied on Apr 1st, 2022 at 11:00pm
I'm attempting to run plain old serial debugging on a Teensy 3.2 board with dual serialUSB ports that currently map to Com7 and Com8. These are serial endpoints that share a single USB connection, and other applications have no problem seeing them as independent serial connections.

The mapping of windows COM ports to teensy serial ports is persistent once created, but the mapping order is nondeterministic due to known design flaws in the implementation of windows serial port code. For now, Windows Com7 is connected to Teensy Serial (SerialUSB0) and Windows Com8 is connected to Teensy SerialUSB1.

Com7 and Serial are heavily used by the teensy device and a host application, so naturally I want to use Com8/SerialUSB1 for the debugger.

Unfortunately, no matter what settings I choose, vMicro always seems to use Com7/Serial for debugging.

I've tried changing settings on the main VS screen and at the bottom of the vMicro drop-down, and in the VM debugger section for "Override local port." 

I cannot override the remote port because there is no option shown for SerialUSB1 or SerialUSB2. There is an option for SerialUSB, but on Teensy that is only an alias for Serial. Perhaps VM is unaware that Teensy now has support for dual or triple USB Serial ports? If so, is this in a configuration file somewhere?

Does anybody know how to overcome this problem?

Title: Re: Serial debugging -- cannot specify VM port to use
Post by Tim@Visual Micro on Apr 2nd, 2022 at 12:24am
Please follow the guide in yellow above so that we can replicate your settings.

btw: You can enter a remote port using the keyboard and the click enter to apply the setting.

Thanks
teensy4x-triple-port-debug_001.png ( 91 KB | 3 Downloads )

Title: Re: Serial debugging -- cannot specify VM port to use
Post by cfeied on Apr 2nd, 2022 at 5:22pm

Tim@Visual Micro wrote on Apr 2nd, 2022 at 12:24am:
btw: You can enter a remote port using the keyboard and the click enter to apply the setting.

That hint plus your png image got me unblocked.  On previous attempts I found that whatever I entered simply vanished when I hit Enter, but after looking at the PNG you posted, I figured out that the local port must be overridden before a remote port can be entered manually. BTW, I did not find this documented when searching. Perhaps my search skills aren't good enough  8-)

Thanks!!!

Title: Re: Serial debugging -- cannot specify VM port to use
Post by Tim@Visual Micro on Apr 2nd, 2022 at 11:45pm
Hi

Good to hear it is working for you. The local port and remote port are not reliant on each other. The need to click the enter is annoying but it is how the vs menu combobox works.

We hope to add an optional tool bar for the serial debug alternative port setting. This would make selecting the ports easier to use.

Thanks for the post.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.