How do I use Processor Expert in KDS?

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

How do I use Processor Expert in KDS?

2,557 次查看
jacewalton
Contributor III

Using MK22FN512VLH12 board 

 

How do I use Processor Expert? I have GPIO configured.

....which only controls the Blue LED on my board. 

How do I set up UART. I have it configured in processor expert but what function do I used to send and revived data with?

is there a Preocessor expert document that I can learn form?

Original Attachment has been moved to: worktrax.zip

标签 (1)
0 项奖励
回复
7 回复数

2,155 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Jace,

There is "Help on component " in each component , you can find the introduce and demo code :

Right click your component , then select "Help on Component":

pastedImage_1.png

pastedImage_2.png

Hope it helps


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

2,155 次查看
jacewalton
Contributor III

This does help but not of the components that I looked at (several of them including ADC) have a typical usage.

I am using KSDK_1.3.0

when i used the newer SDK_2.1_FRDM-K22F. I cannot get any demo projects to work or even get a basic LED blink to work.

what do i do now?

0 项奖励
回复

2,155 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

Sorry the KSD_2.x doesn't support PE.

The demos all without PE, you can find under KSDK folder :

SDK_2.0_FRDM-K22F\boards\frdmk22f

pastedImage_1.png

Hope it helps

Alice

0 项奖励
回复

2,155 次查看
jacewalton
Contributor III

I have tried those ones Non of them work....

anyways about processor expert with sdk 1.3.0. I am trying to configure UART. I can get my code to compile but I cannot get any data to communicate over UART. is there any more documentation for UART. in Processor Expert? how can I learn more about how these components work and how to use them?

pastedImage_1.png

There no typical usage section in this component. I'll attach my project to my original post if you could check out what my problem is. thanks!

0 项奖励
回复

2,155 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

- Only the Processor Expert without SDK has "Typical Usage", the PE with SDK  hasn't .

- When use KSDK, the API on PE is the same with KSDK without PE, so you can refer to the KSDK API RM:

KSDK_1.3.0\doc\Kinetis SDK v.1.3 API Reference Manual.pdf

And  the demo under KSDK:  KSDK_1.3.0\examples

BR

Alice

0 项奖励
回复

2,155 次查看
jacewalton
Contributor III

that helps but am running into problems

this is my code from examples in the pdf 73.6.5 UART Transfers

uint8_t sourceBuff[4] = "asdf"; // sourceBuff can be filled out with desired data
uint8_t readBuffer[10] = {0}; // readBuffer gets filled with UART_DRV_ReceiveData function
uint32_t byteCount = sizeof(sourceBuff);
uint32_t rxRemainingSize = sizeof(readBuffer);
uint8_t* psourceBuff = &sourceBuff;
uint8_t tx_size = sizeof(data);

UART_DRV_SendDataBlocking(1, psourceBuff, byteCount, 1);
psourceBuff++;

The output is 

aaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssssssssssssddddddddddddddddddddddddffffffffffffffffffffffff

when do do not increment the psourceBuff I get

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

8 characters at a time. 

Is there something else I am supposed to do with this?

0 项奖励
回复

2,155 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

Please first test the demo which used the function UART_DRV_SendDataBlocking() :

KSDK_1.3.0\examples\frdmk22f\driver_examples\uart\uart_blocking

If it can work well, you can refer to .

BR

Alice

0 项奖励
回复