2024-01-21 06:52 PM
2024-01-23 05:32 AM
Hello @wang_mo_mo
First let me thank you for posting.
To activate the error callback you activate the FDCAN interrupt and it will generate a call to the interrupt service routine which will process all the interrupt sources including the errors.
Then you overwrite the callback function with the wanted behavior:
__weak void HAL_FDCAN_ErrorStatusCallback(FDCAN_HandleTypeDef *hfdcan, uint32_t ErrorStatusITs)
KR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.