-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB serial doesn't work with TEENSY_OPT_SMALLEST_CODE #107
Comments
Please try with Arduino IDE 2.2.1 and Teensy 0.59.3. After selecting Teensy, use Tools > Optimization to select smallest code. |
It seems to work for the test case using the Arduino IDE as you instructed. Are they doing something differently than PlatformIO which I can implement? The actual project I'm working on depends pretty heavily on PlatformIO, so I can't easily port it to the Arduino IDE. Thanks for your help! |
What happens if you try Arduino IDE 2.2.1 and Teensy 1.58.1 (the version PlatformIO is probably using)? |
Correction to my previous reply... I thought I was using Teensy 0.59.3 but it wasn't actually installed in the Arduino IDE (just selected). Apologies for that. I ran through several tests now after I realized my mistake, and what I'm finding is that with BOTH Teensy 0.59.3 and And 1.58.1, using Arduino 2.2.1 (both installed and from zip), regardless of the optimization setting, the COM port does populate in device manager... for a few moments at a time. It is repeatedly appearing and then disappearing, and if I try to watch the output in Arduino's serial monitor or using PuTTY I'm not seeing anything. After un/reinstalling Arduino 1.8.19, teensyduino, platformio, making sure all my drivers are up to date and trying all that stuff again, behavior is the same as in the original post using old arduino or platformio.
Update: After testing it on a coworker's computer, this issue where the serial port would appear and vanish didn't happen after flashing the Teensy with code that was compiled on his machine (it still happened when it was flashed from mine)... so that seems to be a separate issue with my machine. The issue with the smallest code optimization making the serial port disappear entirely is still occurring though. Another update: |
Having some trouble using the USB Serial on the teensy, while optimizing for code size.
I've been able to reproduce the issue using Teensy 4.1 and VS Code's platformIO IDE on both Windows 10 and Ubuntu 22.04.
Steps to reproduce:
Here is the source :
and here is the platformio.ini:
Any guidance is appreciated!
The text was updated successfully, but these errors were encountered: