I am using imx8qxp with Android 12.1.0 OS , I need use Flex CAN driver but not able to.
Could you please provide detail steps to run Flex CAN imx8qxp with Android 12.1.0 OS?
Thank you in advance for the help.
Yes, FlexCAN is verified on latest BSP.
The iMX8QXP defaul driver used CAN fd mode, so we used followed command to test it:
Rx: ip link set can0 up type can bitrate 1000000 dbitrate 4000000 fd on
Tx: ip link set can1 up type can bitrate 1000000 dbitrate 4000000 fd on
Rx: candump can0
Tx: cangen can1 -m
If you want to use the legacy mode iMX6/7 test command such as "ip link set can0 up type can bitrate 1000000", you need disable the fd mode in device tree by added "disable-fd-mode".
The CAN test code can be found.