Bug in MCUXpresso's FlexCAN driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug in MCUXpresso's FlexCAN driver

830件の閲覧回数
thierry_durand
Contributor II

Hello supporters,

At the very bottom of fsl_flexcan.c there is this:

#if defined(FLEXCAN2)
void CAN_FD2_DriverIRQHandler(void)
{
    assert(NULL != s_flexcanHandle[2]);
    s_flexcanIsr(FLEXCAN1, s_flexcanHandle[2]);
    SDK_ISR_EXIT_BARRIER;
}
#endif

 

I think there is a mix-up between FLEXCAN1 and FLEXCAN2, higlighted in red. I'd appreciate your confirmation.

Thank you.

Best regards,

--

Thierry-

0 件の賞賛
4 返答(返信)

410件の閲覧回数
thierry_durand
Contributor II

Finally fixed in the recent SDK 2.14.0. Thank you guys.

--

Thierry-

0 件の賞賛

662件の閲覧回数
stp_s
Contributor I

I just downloaded SDK_2_13_0_MIMX8ML8xxxKZ (latest & greatest 01.2023) and the reported bug is still present! I wonder how this driver is tested at NXP!?

0 件の賞賛

813件の閲覧回数
thierry_durand
Contributor II

The SDK where the bug initially showed up is version 2.9. I double-checked that the bug is still present in the latest version 2.11.1, archive file SDK_2.11.1_MIMX8ML8xxxLZ.zip. Please see file SDK_2_11_1_MIMX8ML8xxxLZ\devices\MIMX8ML8\drivers\fsl_flexcan.c, line 4638.

The device is an i.MX8M-Plus. The reported bug is believed to be board-independent. Just for your reference, the board is a  BoundaryDevices SoM with a custom carrier.

Best regards,

--

Thierry-

0 件の賞賛

815件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

Can you please clarify which board and device are you using? And the SDK version

0 件の賞賛