Develop MK22FN128xxx10 use SDK1.3  UART

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

Develop MK22FN128xxx10 use SDK1.3  UART

1,118 Views
thoomanwang
Contributor V

 UART_DRV_SendDataBlocking(uartCom_IDX, (uint8_t*)("this is a"), 9, 50u);

 

The receiver can only receive a bunch of "tttttttt..." , Use UART_DRV_SendData() enter an infinite loop, output one letter "t" at a time
Labels (1)
Tags (1)
0 Kudos
Reply
6 Replies

938 Views
harshpatel
Contributor IV

Hello

I have attached simple UART application code for K20. I hope it may help.Take a reference of k20 UART code you will get solution...

as i found no need to install tx_callback.

if still you found any issue..then share your code i will look into it and fix it.

regards,

Harsh

0 Kudos
Reply

938 Views
thoomanwang
Contributor V
This error has nothing to do with whether to use tx_CALLBACK, I have tried
0 Kudos
Reply

938 Views
thoomanwang
Contributor V
My software can work correctly on FRDM - K22, The same software can't run on MK22FN128xxx10, software configuration USES is KDS3.2, KSDK1.3 library have compatibility problems
0 Kudos
Reply

938 Views
harshpatel
Contributor IV

Hello Thooman Wang

you need to install interrupt handler.

1] if you are using processor expert then enable "Install Interrupt".

2] If using KSDK without processor expert you can add it manually.

* API is :

osa_int_handler_t OSA_InstallIntHandler(int32_t IRQNumber,osa_int_handler_t handler);

* For example for UART1:

  OSA_InstallIntHandler(UART1_RX_TX_IRQn, uartCom1_IRQHandler);

 * Handler can be write as follows....

void uartCom1_IRQHandler(void)
{
UART_DRV_IRQHandler(UART1_IDX);
}

Let me know if any...

Thanks & Regards,

Harsh

Engineer

Einfochips

0 Kudos
Reply

938 Views
thoomanwang
Contributor V

pastedImage_1.png

pastedImage_2.png

0 Kudos
Reply

938 Views
thoomanwang
Contributor V
Tracking found UART_DRV_IRQHandler has been unable to perform, and the reason for the error in this
0 Kudos
Reply