2024-01-21 6:52 PM
2024-01-23 5: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.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.