基于S32K144,使用S32DS的PE工具配置CAN之后,如何检测CAN的错误帧,如何接收CAN的错误帧,如何发送CAN的错误帧以及如何防止CAN发送错误帧?S32K14X系列的CAN错误帧处理应注意什么?
Hi,
error handling and fault confinement is done automatically and follows CAN Protocol standard;https://www.nxp.com/docs/en/reference-manual/BCANPSV2.pdf
Once error is detected, respective flag in ESR1 register is set and error counters are updated as per protocol standard.
BR, Petr
What should I do if I have a request not to send an error frame?
With TJA1040, can the software control the error frame?
Hi,
- you can put FlexCAN to Freeze mode, this way it does not participate on bus
- you can put transceiver to Standby mode by driving STB pin high. But if FlexCAN is transmitting anything it will ends in Bus off state.
BR, Petr