![]() ![]() ![]() This way, you just need one USB cable between your micro controller and computer, reusing the same connection you already use for programming the device. ![]() If your micro controller has a working USB interface and USB stack, a popular alternative is for the micro controller to provide a virtual serial device via USB. While conceptually simple, the requirement for an extra piece of hardware (USB-to-serial adapter) is annoying. The RX pin is only needed when you want to send text to the micro controller as well. Background Serial interfaces are often the easiest option when working with micro controllers to print text: you only connect GND and the micro controller's serial TX pin to a USB-to-serial converter. This article walks you through diagnosing and working around this issue, in the hope that it helps others who are working with micro controllers and USB virtual serial devices. During my work on Teensy 4.1 support in ChibiOS for the QMK keyboard firmware, I noticed that ChibiOS's virtual serial device USB demo would sometimes print garbled output, and that I would never see the ChibiOS shell prompt. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |