Skip to content

Error USAGE FAULT. How to fix LPUART Non-Blocking function with receiving? #74331

Answered by DerekSnell
YMont asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @YMont ,
I think this is an application issue. And reviewing the code you shared, I see you are initializing and controlling the UART using the MCUXpresso SDK driver APIs. But from your devicetree you also have the Zephyr driver enabled for that same peripheral. This seems to be a conflict, with two sets of drivers used for the same peripheral.

Zephyr provides a UART driver to work across different hardware platforms. The NXP platforms support this driver. The MCUXpresso SDK drivers are used at the low-level to control the hardware. But in Zephyr, a shim layer is provided to translate Zephyr's driver APIs to the MCUXpresso SDK APIs. To learn more, see this webinar Application Portabili…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by DerekSnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: UART Universal Asynchronous Receiver-Transmitter platform: NXP NXP platform: NXP Drivers NXP Semiconductors, drivers
4 participants
Converted from issue

This discussion was converted from issue #69848 on June 14, 2024 16:58.