Hi @LzdOo,
Please refer to this community post: s32K144 can bus off - NXP Community.
Automatic bus off recovery can be disabled by setting the CTRL1[BOFFREC] bit. If the bit is asserted, automatic recovering from Bus Off is disabled and the module remains in Bus Off state until the bit is negated by the user.
Tx tasks should stop once a bus off fault occurs, as per the CAN 2.0 specification; a bus off unit is not allowed to have any influence on the bus (e.g. output drivers switched off).
You can also refer to this FlexCAN error test example: Example S32K144 FlexCAN TX/RX/Error ISR test S32DS2.2 - NXP Community. Simply short CANH with GND and send message using either SW1 or SW2, FlexCAN enters bus off (error event) and blue LED is ON.
Best regards,
Julián