Incompatible version of LPUART Driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Incompatible version of LPUART Driver

Jump to solution
2,593 Views
rajtend
Contributor III

Hi,

I am using imxRT1050 EVKB. I want to use LPUART Driver from FreeRTOS.
However, I get a warning as shown below.
If I compile the code and execute it, I get a data bus error.

Can someone tell me how to get compatible version of LPUART driver?

rajtend_1-1730822651811.png

 

Thanks!

0 Kudos
Reply
1 Solution
2,481 Views
rajtend
Contributor III
I was able to resolve this. The receive call expects global buffer and not one allocated on stack. This ways, the UART driver in FreeRTOS is working fine, without crashing.

View solution in original post

5 Replies
2,555 Views
mayliu1
NXP Employee
NXP Employee

Hi @rajtend ,

 

Thank you so much for your interest in our products and for using our community.

Please let me know if your project with FreeRTOS.

I use MCUXPresso IDE, the version is same as you.

I import a SDK demo "evkbimxrt1050_freertos_hello", add LPUART3 driver, There are no problem and warning.

mayliu1_0-1730866420906.png

 

Please use a project with FREERTOS ,then add LPUART3.

Wish it helps you.
If you still have question about it, please kindly let me know.

Best Regards

mayliu

0 Kudos
Reply
2,543 Views
rajtend
Contributor III
Can you change the Mode from Polling to FreeRTOS?
You will see the warning immediately.
0 Kudos
Reply
2,491 Views
mayliu1
NXP Employee
NXP Employee

Hi @rajtend ,

 

Hi rajtend, Thank you for your updated information.

Can you tell me how and where you call LPUART_RTOS_xxx functions?

mayliu1_0-1731038940865.png

I will verify your modification on my MIMXRT board. 

Wish you a nice day~

Best Regards

mayliu

0 Kudos
Reply
2,587 Views
rajtend
Contributor III

I am using the following version of MCUXpresso

 

rajtend_0-1730824569500.png

 

0 Kudos
Reply
2,482 Views
rajtend
Contributor III
I was able to resolve this. The receive call expects global buffer and not one allocated on stack. This ways, the UART driver in FreeRTOS is working fine, without crashing.
%3CLINGO-SUB%20id%3D%22lingo-sub-1988092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIncompatible%20version%20of%20LPUART%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20using%20imxRT1050%20EVKB.%20I%20want%20to%20use%20LPUART%20Driver%20from%20FreeRTOS.%3CBR%20%2F%3EHowever%2C%20I%20get%20a%20warning%20as%20shown%20below.%3CBR%20%2F%3EIf%20I%20compile%20the%20code%20and%20execute%20it%2C%20I%20get%20a%20data%20bus%20error.%3C%2FP%3E%3CP%3ECan%20someone%20tell%20me%20how%20to%20get%20compatible%20version%20of%20LPUART%20driver%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22rajtend_1-1730822651811.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22rajtend_1-1730822651811.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308725iB4935344F42783CB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22rajtend_1-1730822651811.png%22%20alt%3D%22rajtend_1-1730822651811.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1990919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Incompatible%20version%20of%20LPUART%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1990919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20was%20able%20to%20resolve%20this.%20The%20receive%20call%20expects%20global%20buffer%20and%20not%20one%20allocated%20on%20stack.%20This%20ways%2C%20the%20UART%20driver%20in%20FreeRTOS%20is%20working%20fine%2C%20without%20crashing.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1990736%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Incompatible%20version%20of%20LPUART%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1990736%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242788%22%20target%3D%22_blank%22%3E%40rajtend%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHi%20rajtend%2C%20Thank%20you%20for%20your%20updated%20information.%3C%2FP%3E%0A%3CP%3ECan%20you%20tell%20me%20how%20and%20where%20you%20call%20LPUART_RTOS_xxx%20functions%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1731038940865.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1731038940865.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309353iDFFCF6DC3CE5E560%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1731038940865.png%22%20alt%3D%22mayliu1_0-1731038940865.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20will%20verify%20your%20modification%20on%20my%20MIMXRT%20board.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWish%20you%20a%20nice%20day~%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3Emayliu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1988556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Incompatible%20version%20of%20LPUART%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECan%20you%20change%20the%20Mode%20from%20Polling%20to%20FreeRTOS%3F%3CBR%20%2F%3EYou%20will%20see%20the%20warning%20immediately.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1988444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Incompatible%20version%20of%20LPUART%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242788%22%20target%3D%22_blank%22%3E%40rajtend%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%20so%20much%20for%20your%20interest%20in%20our%20products%20and%20for%20using%20our%20community.%3C%2FP%3E%0A%3CP%3EPlease%20let%20me%20know%20if%20your%20project%20with%20%3CSPAN%3EFreeRTOS%3C%2FSPAN%3E.%3C%2FP%3E%0A%3CP%3EI%20use%20MCUXPresso%20IDE%2C%20the%20version%20is%20same%20as%20you.%3C%2FP%3E%0A%3CP%3EI%20import%20a%20SDK%20demo%20%22evkbimxrt1050_freertos_hello%22%2C%20add%20LPUART3%20driver%2C%20There%20are%20no%20problem%20and%20warning.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1730866420906.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1730866420906.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308828i3A64886C19CCBF84%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1730866420906.png%22%20alt%3D%22mayliu1_0-1730866420906.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20use%20a%20project%20with%20FREERTOS%20%2Cthen%20add%20LPUART3.%3C%2FP%3E%0A%3CP%3EWish%20it%20helps%20you.%3CBR%20%2F%3EIf%20you%20still%20have%20question%20about%20it%2C%20please%20kindly%20let%20me%20know.%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3Emayliu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1988114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Incompatible%20version%20of%20LPUART%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20the%20following%20version%20of%20MCUXpresso%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22rajtend_0-1730824569500.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22rajtend_0-1730824569500.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308730iF6F32EF92AE9DF22%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22rajtend_0-1730824569500.png%22%20alt%3D%22rajtend_0-1730824569500.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E