I'm working on the LS1028ARDB board, I'm trying to find the CANFD and CAN 2.0 low level drivers example code. I'm not using Linux distribution so if there is a low level driver available or example codes to exercise CAN and CANFD independent from the OS I would like to get the files.
You could refer to flexcan driver provided in OpenIL Baremetal Framework
$ git clone https://github.com/openil/u-boot.git
$ git checkout -b OpenIL-v1.11-Baremetal-202104 OpenIL-v1.11-Baremetal-202104
Please refer to drivers/flexcan/flexcan.c and app/test_flexcan.c
For details, please refer to "184.108.40.206 FlexCAN" and "4.2.11 CAN file" in https://www.nxp.com.cn/docs/en/user-guide/IIoTBaremetalUG-1.11.pdf.