nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
301 stars 136 forks source link

Fixes #66. Update flexcan errata 6032 workaround to disable all interrupts. #72

Closed abascom closed 2 years ago

abascom commented 2 years ago

Prerequisites

Describe the pull request

Update the flexcan 6032 errata workaround function to disable all interrupts instead of only flexcan interrupts. This resolves issues when running with an RTOS as a context switch during the errata workaround function could cause issues such as an RX FIFO overflow. Also move the call to the errata workaround function within the check to see if there is a transfer already in progress, otherwise the errata workaround function will always just abort an already started transfer.

Fixes # 66

Type of change (please delete options that are not relevant):

Tests

abascom commented 2 years ago

Are there any updates needed for this to be accepted?

njdnzy commented 2 years ago

Are there any updates needed for this to be accepted?

The fix is OK, @mcuxsusan please do the merge