-
I have a custom board with MIMXRT1042XJM5B, and cannot get FlexCAN2 working. I am able to configure and start the CAN device, however when I send a frame I get a error -114 (-ENETUNREACH, bus-off state). Edit: Observing CAN TX pin with a logic analyzer shows activity, but all it does is transmit garbage. Here are the relevant parts from zephyr.dts:
Generated zephyr.dts file: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @rtborg , Unfortunately, the FlexCAN has not yet been enabled on the RT1040 EVK. The supported features for that board detail which features have been enabled and tested. The MIMXRT1060-EVK board is very similar, supports the FlexCAN, and would be the closest board to use as a reference. Did you already refer to that board to confirm how it enables the FlexCAN? Seeing data transmitted seems like a good sign, like you are close to the correct configuration. Have you already confirmed the bitrate of the transmission is as you expect? That would help confirm the clocking and baud rate are configured correctly. Let us know what you find. |
Beta Was this translation helpful? Give feedback.
-
I managed to get FlexCAN2 working; the problem was not in software but in using the wrong TVS for the CAN lines on the PCB. |
Beta Was this translation helpful? Give feedback.
I managed to get FlexCAN2 working; the problem was not in software but in using the wrong TVS for the CAN lines on the PCB.