Open NaokiS28 opened 3 years ago
This is what happens after programming, monitor opens on the CDC after programming, then the main program loads and CDC is disconnected:
> Executing task in folder LIOn: platformio device monitor <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Miniterm on /dev/cu.usbmodemHIDLE1 9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Exception in thread rx:
Traceback (most recent call last):
File "/Users/naoki/.platformio/penv/lib/python3.8/site-packages/serial/serialposix.py", line 575, in read
--- exit ---
buf = os.read(self.fd, size - len(read))
OSError: [Errno 6] Device not configured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/naoki/.platformio/python3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/naoki/.platformio/python3/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/naoki/.platformio/penv/lib/python3.8/site-packages/serial/tools/miniterm.py", line 499, in reader
data = self.serial.read(self.serial.in_waiting or 1)
File "/Users/naoki/.platformio/penv/lib/python3.8/site-packages/serial/serialposix.py", line 581, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: [Errno 6] Device not configured
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder LIOn: platformio device monitor <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Available ports:
--- 1: /dev/cu.Bluetooth-Incoming-Port 'n/a'
--- Enter port index or full name:
Hi there,
Trying to write a project using both hardware Serial1 and USB Serial but the CDC port gets disabled when using Platform IO to program my Arduino Pro Micro and requires using the reset button to upload again.. But as the CDC is disabled, Serial doesn't work and I can't connect to it. It doesn't show in other terminals either. Here's the code I'm using:
platform.ini:
main.cpp: