LPSCI vs UART in MCUXpresso SDK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPSCI vs UART in MCUXpresso SDK

跳至解决方案
1,398 次查看
MarkPotts
Contributor III

I am building a new MCUXpresso project based on a KL02 processor and developing using a FRDM-KL02Z board. I have created a project using the SDK for this board and I am able to compile and debug successfully. The project uses a UART for serial communications.

When I look at the SDK example code for this board I see Universal Asynchronous Receiver/Transmitter drivers prefixed LPSCI. However when I look at the SDK API online I see versions with drivers prefixed UART and and versions prefixed LPSCI.

Were the serial communications drivers renamed to LPSCI or are these different in some way? If anyone can clarify this for me I would be grateful.

Thanks,
Mark

 

 

0 项奖励
1 解答
1,377 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @MarkPotts,

Yes, in some cases, the UART driver is named LPSCI (Low Power Serial Communication Interface) and in others only UART (or even LPUART for low power).

These depends on the board you may be using, but there are not any differences in these examples if both work with the UART peripheral.

Hope you find this helpful!

Best regards, Julián

在原帖中查看解决方案

6 回复数
1,278 次查看
MarkPotts
Contributor III

I have found yet another on-line version of the SDK API documentation that uses LPUART as the UART driver prefix. At this point I am totally confused. The driver prefixes in the example applications from the SDK do not match the on-line API documentation. This makes it difficult to write forward/backward compatible code. 

When I do a Google search for API functions I get directed to arbitrary versions of the API documentation. Do I need to reference a specific SDK API version for the development board/target MCU (FRDM-KL02Z/KL02Z32VFG4)? If so how do I find this? I was hoping there would be some way to access it through the IDE (e.g. via Installed SDKs) but I can't find anything.

0 项奖励
1,229 次查看
MarkPotts
Contributor III
Hi Julian, Thanks for the clarification. I have been doing this. It is just a bit confusing and difficult for portability to find function names changing between libraries. Mark
1,224 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

No problem @MarkPotts, I hope the issue is resolved.

As I said, the libraries may change depending on the board, so it is recommended to check the API manual for the specific device.

I'll set the case in an answered back state, and it will close in seven days from now.

Best regards, Julian

0 项奖励
1,234 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @MarkPotts,

LPUART refers to the Low Power UART module, and its functions can be dependent on the board.

I would suggest downloading the SDK Package from MCUXpresso SDK Builder, search for the KL02Z board, select all the middleware that is needed and download the SDK Package.

In the download menu, you can select the "Download SDK Documentation".

Julin_AragnM_0-1666110180814.png

Inside "docs", you will find "MCUXpresso SDK API Reference Manual_MKL02Z4.pdf", which is the specific board manual, and latest revision. We recommend always checking the SDK documentation, as the online API manual may be general or not include all the functions in a certain board.

I hope you find this helpful!

Best regards, Julian.

1,378 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @MarkPotts,

Yes, in some cases, the UART driver is named LPSCI (Low Power Serial Communication Interface) and in others only UART (or even LPUART for low power).

These depends on the board you may be using, but there are not any differences in these examples if both work with the UART peripheral.

Hope you find this helpful!

Best regards, Julián

1,371 次查看
MarkPotts
Contributor III
Thanks Julián