Looks like using the latest version of freertos port to teensy is causing linker issues with finding the serialEvent function. Implementing it in a .cpp file did not seem to make a difference.
Indexing .pio/build/teensy_pat/libFrameworkArduino.a
Linking .pio/build/teensy_pat/firmware.elf
/home/vagrant/.platformio/packages/toolchain-arm-cortexm-linux/bin/../lib/gcc/arm-cortexm7f-eabi/12.2.0/../../../../arm-cortexm7f-eabi/bin/ld: .pio/build/teensy_pat/lib953/libfreertos-teensy.a(teensy_4.cpp.o): in function `_ZN8freertos5yieldEv':
teensy_4.cpp:(.flashmem+0x100): undefined reference to `_ZN8freertos20_serialEvent_defaultE'
collect2: error: ld returned 1 exit status
*** [.pio/build/teensy_pat/firmware.elf] Error 1
Looks like using the latest version of freertos port to teensy is causing linker issues with finding the serialEvent function. Implementing it in a .cpp file did not seem to make a difference.
platformio file that does not work:
platformio file that does work (hammering the commit)
Linker error: