You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was trying to debug a program on a Teensy 4.0 but I found out that I was completely unable to compile my firmware in debug mode due to FlexCAN_T4.
Here is the error :
c:/users/mathys.d/.platformio/packages/toolchain-gccarmnoneeabi-teensy/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio\build\teensy40\src\main.cpp.o: in function `FlexCAN_T4<(CAN_DEV_TABLE)1075642368, (FLEXCAN_RXQUEUE_TABLE)256, (FLEXCAN_TXQUEUE_TABLE)16>::FlexCAN_T4()':
C:\Users\mathys.d\.platformio\packages\framework-arduinoteensy\libraries\FlexCAN_T4/FlexCAN_T4.tpp:68: undefined reference to `vtable for FlexCAN_T4_Base'
I am using PlatformIO in visual studio.
Thanks in advance,
The text was updated successfully, but these errors were encountered:
I ran into this issue as well, I was able to fix it by changing line 331 in FlexCAN_T4.h from virtual uint8_t getFirstTxBoxSize(); to virtual uint8_t getFirstTxBoxSize() = 0;. The issue seems to be because of a missing definition of the virtual function getFirstTxBoxSize().
I was able to debug without issue after making this change.
I'm having the same problem, though line 331 is already updated to what you said in the newest version. Anyone else got any ideas what might be causing this?
Hello,
I was trying to debug a program on a Teensy 4.0 but I found out that I was completely unable to compile my firmware in debug mode due to FlexCAN_T4.
Here is the error :
I am using PlatformIO in visual studio.
Thanks in advance,
The text was updated successfully, but these errors were encountered: