2022-01-20 12:15 AM
Dear Madame or Sir.
We found following undocumented problem on MCU STM32H743.
It occures only, if TTCAN mode is activated for FDCAN1:
FDCAN1:
If TTCAN is activated (LEVEL = 01)
and the TX-COMPLETE Interrupt of TX-BUFFER 1 is activated,
and the TX-COMPLETE Interrupt is configured for INT-Line 0,
but FDCAN1 INT-Line 0 was not activated in the NVIC
// HAL_NVIC_EnableIRQ(FDCAN1_IT0_IRQn);
OR
in FDCAN ILE register the INT-Line 0 is not activated,
then the occured TX-COMPLETE Event will be interrupted on INT-Line 1 !!!
This is the wrong result, because the TX-COMPLETE Interrupt was configured in
ILS register for INT-Line 0, but INT-Line 0 is disabled in NVIC
especially in the ILE register.
So NO TX-COMPLETE Interrupt must be the correct result in this case.
This problem also occures vice versa:
If the TX-COMPLETE Interrupt is configured for INT-Line 1,
but FDCAN1 INT-Line 1 was not activated in the NVIC
// HAL_NVIC_EnableIRQ(FDCAN1_IT1_IRQn);
OR
in FDCAN ILE register the INT-Line 1 is not activated,
then the occured TX-COMPLETE Event will be interrupted on INT-Line 0 !
This is the wrong result, because the TX-COMPLETE Interrupt was configured in
ILS register for INT-Line 1, but INT-Line 1 is disabled in NVIC
especially in the ILE register.
So NO TX-COMPLETE Interrupt must be the correct result in this case.
Best regards
Christian