Hi Paul,
Two questions about
1. Is it meant to be supported? It has not compiled since 1.59.
2. If yes, could https://github.com/PaulStoffregen/cores/pull/735 be merged? It fixes exactly this, and I have tested it on hardware.
What breaks (Teensy 4.1, TEENSYDUINO=162, PlatformIO framework-arduinoteensy 1.162.0):
PR #735 adds the missing declaration and an empty
Why this went unreported: "No USB" is commented out in boards.txt for Teensy 4.x, so it only shows up with PlatformIO or an edited menu.
Why I need it: the core has no USB mass storage class, so for an SD card reader mode I switch the core's USB off and run TinyUSB. The port is here, workaround included: https://github.com/ORyomei/Teensy4TinyUSB
If the answer to the first question is "no", a note in the release notes or boards.txt would save the next person a few hours, and I will keep the workaround.
Thanks for all the work on Teensy.
Two questions about
USB_DISABLED ("No USB") on Teensy 4.x:1. Is it meant to be supported? It has not compiled since 1.59.
2. If yes, could https://github.com/PaulStoffregen/cores/pull/735 be merged? It fixes exactly this, and I have tested it on hardware.
What breaks (Teensy 4.1, TEENSYDUINO=162, PlatformIO framework-arduinoteensy 1.162.0):
Code:
cores/teensy4/yield.cpp:51:41: error: 'serialEvent' was not declared in this scope
startup.c:(.text.unused_interrupt_vector+0xfe): undefined reference to `usb_isr'
yield.cppcallsserialEvent(), butusb_serial.honly declares it when USB is enabled.startup.creferencesusb_isr, butusb.ccompiles to nothing withoutNUM_ENDPOINTS.
PR #735 adds the missing declaration and an empty
usb_isr(). With those two changes applied, my build links and the board runs with a separate USB stack (TinyUSB device, CDC + MSC) on USB1. Without them I have to force-include the declaration and define a weak usb_isr myself, which will break with the next core change.Why this went unreported: "No USB" is commented out in boards.txt for Teensy 4.x, so it only shows up with PlatformIO or an edited menu.
Why I need it: the core has no USB mass storage class, so for an SD card reader mode I switch the core's USB off and run TinyUSB. The port is here, workaround included: https://github.com/ORyomei/Teensy4TinyUSB
If the answer to the first question is "no", a note in the release notes or boards.txt would save the next person a few hours, and I will keep the workaround.
Thanks for all the work on Teensy.