MQX 4.2 Kinetis Serial DMA

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

MQX 4.2 Kinetis Serial DMA

2,521 Views
kfranz
Contributor III

In MQX 4.2 there is a file named serl_dma_kuart.c

Freescale_MQX_4_2\mqx\source\io\serial\dma\serl_dma_kuart.c

Are there any examples that use DMA for the UART? I would like to change from the interrupt driven driver to one that uses DMA so that I can run at a higher baud rate.

Will using DMA reduce or eliminate serial port interrupts?

0 Kudos
Reply
3 Replies

2,507 Views
kfranz
Contributor III

No, UART DMA is not working.

Does anyone have any suggestions?

0 Kudos
Reply

2,510 Views
kfranz
Contributor III

I am using the K65. In:

C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\twrk65f180m\initbsp.c for ittya, I made the changes below:

#if BSPCFG_ENABLE_ITTYA
//_kuart_int_install("ittya:", &_bsp_sci0_init, _bsp_sci0_init.QUEUE_SIZE);
_kuart_dma_install("ittya:", &_bsp_sci0_init, _bsp_sci0_init.QUEUE_SIZE);
#endif

It seems to be working okay. I assume I am now using DMA?

0 Kudos
Reply

2,490 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi kfranz:

The checked this, and the UART DMA is not documented.  It looks like the files were added for future release. But now MQX 4.x is replaced by MQX v5.  Please refer to below link for more details.

https://www.nxp.com/design/software/embedded-software/mqx-software-solutions/mqx-v5-software-solutio...

I would suggest you do more test on your side.

 

Regards

Daniel

 

0 Kudos
Reply