I am using an STM32G431 MCU. Currently, it can normally transmit and receive CAN data; however, in the event of a transmission failure, the function does not return (as expected).
As shown in the figure, I disconnected the CAN_H cable, but the system still indicates normal transmission.
this is my code