VS Arduino | |
Visual Micro >> Visual Studio 2017, 2019, 2022 >> Teensy - Emulated Serial Mode
https://www.visualmicro.com/forums/YaBB.pl?num=1455569620 Message started by Pensive666 on Feb 15th, 2016 at 8:53pm |
Title: Teensy - Emulated Serial Mode Post by Pensive666 on Feb 15th, 2016 at 8:53pm
Hi There
Absolutely love visualmicro. Thank you. I have found a small hole in the Teensy support; The Serial monitor window works fine in standard USB serial mode as there is a COM port. In other Teensy modes (like USB MIDI), the Serial is actually emulated and there is no COM port. So the Serial monitoring breaks. I post a link here to Paul Stoffregen giving more details. https://forum.pjrc.com/threads/23942-Using-Serial-and-MIDI-USB-types-at-the-same-time?p=33405&viewfull=1#post33405 Perhaps this has broken in this release, or perhaps not implemented yet, not sure. A Work around for now is to run the arduino IDE at the same time, running the same sketch in the same mode - you can then flip over to see the serial monitor form the arduino IDE instead. I haven't tried debugging yet - I'm stilling working up to it! but I'd imagine there might be impacts there as well? Thanks Jon |
Title: Re: Teensy - Emulated Serial Mode Post by Visual Micro on Feb 15th, 2016 at 8:59pm
Thanks for the post it's a useful link.
It's not implemented yet and no debug won't work. I only found out about it a month or so ago when I asked Paul what changes teensyduino makes to the arduino ide. I thought the that the new 1.6 boards manager system would result in a Teensy core alternative and that's when he told me about the emulated serial port. So it's on the list and this post is a good reminder. I'll flag it. Thanks! |
Title: Re: Teensy - Emulated Serial Mode Post by Pensive666 on Feb 15th, 2016 at 9:29pm Tim@Visual Micro wrote on Feb 15th, 2016 at 8:59pm:
No problem! For the record - and the benefit of others reading this - there is another fix. You can duplicate the USB_MIDI type, and include the full USB_SERIAL support and the device will operate as both a MIDI device and a Serial COM port. This would be an immediate fix for both serial monitoring and debugging I'd guess. It's a hack, but it would do it. BUT there is a tradeoff in performance and this is the reason the COM port is only emulated for these modes - the USB bus is not perfect and loading all this functionality up is not free. So there are not one but 2 workarounds available. I will do without debugging for now and use the arduino IDE serial monitor. I just bought a commercial license anyway as visual micro has transformed arduino development into a professional experience for me ;) Thanks Tim! Jon (Paynetech) |
Title: Re: Teensy - Emulated Serial Mode Post by Pensive666 on Aug 14th, 2016 at 8:01am Tim@Visual Micro wrote on Feb 15th, 2016 at 8:59pm:
Just for the record, I havent tested it yet - but apparently the Teensyduino package now features versions of the USB Midi with a hardware serial port out of the box, which means visualmicro will work fine without any further mods and this low priority feature can be removed from your roadmap. I will confirm here once I've tested this. |
Title: Re: Teensy - Emulated Serial Mode Post by Pensive666 on Aug 14th, 2016 at 8:26am
Confirmed with Arduino 1.6.9, and teensyduino 1.29, there are two new board types available:
I'll confirm operation later |
Title: Re: Teensy - Emulated Serial Mode Post by Visual Micro on Aug 14th, 2016 at 12:13pm
Interesting, look forward to hearing the result. Thanks very much for the post.
|
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2024. All Rights Reserved. |