Tool/software:
I have several files in my project that need to include the ti_drivers_config.h file. When adding CANFD according to mcu_plus_sdk_am261x_10_00_01_10\examples\drivers\mcan\canfd_loopback_interrupt\am261x-lp\r5fss0-0_freertos, two symbols, gCanfdObj and gCanfdHandle becomes defined in ti_drivers_config.h.
This is a One Definition Rule (ODR) violation in C/C++, and rightfully the linker complains on redefinitions, because now each file that includes ti_drivers_config.h will have these symbols defined.
So, first of all, I would consider this a bug in the generated code (based on e.g., mcan_v0_hld.h.xdt).
Secondly. Is there some workaround other than using the low level driver (mcan.h) instead?
This is the generated code in ti_drivers_config.h