DMA UART MKV56F not working

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

DMA UART MKV56F not working

跳至解决方案
2,002 次查看
maohuynh
Contributor II

Hi, 

I'm use UART2 DMA read data and Use Debug Console print data to terminal.

maohuynh_0-1713942288550.pngmaohuynh_1-1713942330880.png

Having that problem, my UART DMA is not working.
Can anyone show me the correct way to configure it when using it?
I'm use MCU expresso IDE

 

标记 (1)
0 项奖励
回复
1 解答
1,800 次查看
maohuynh
Contributor II

Hi @Pablo_Ramos 

i think i found the problem, when i used tool MCUxpresso UART peripheral and UART component.

maohuynh_1-1715152259990.png

It doesn't allow me to use it at the same time peripheral and component. Here, the UART interrupt is called again, it is overlapped leading to an error.

maohuynh_2-1715152741101.png

I have to !define like the first picture for it to work. I think this is a bug, when I combine use shell, debug console and UART driver interrupt. 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,954 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @maohuynh 
There is a demo that you can take as reference in the SDK of twrkv58f, I know that is a different mcu but the configuration should be the same.

Pablo_Ramos_0-1714078408233.png
Hope it helps you!

 

0 项奖励
回复
1,876 次查看
maohuynh
Contributor II

maohuynh_0-1714623992578.png 

There is one more problem, It seems that The Peripherals tools are not working correctly, the same code, if using gen config tool, the code does not work.

I don't see any examples using it.

0 项奖励
回复
1,816 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @maohuynh 
There is no SDK example where they use shell and uarts simultaneously, but there are examples where they use it separately.

Pablo_Ramos_0-1715027597465.png

Also, in order to enable The Peripherals tools, you need to go to Config Tools -> Open Pins -> Enable Peripherals tools

Pablo_Ramos_1-1715027640467.pngPablo_Ramos_2-1715027645667.png

Hope it helps you!

0 项奖励
回复
1,801 次查看
maohuynh
Contributor II

Hi @Pablo_Ramos 

i think i found the problem, when i used tool MCUxpresso UART peripheral and UART component.

maohuynh_1-1715152259990.png

It doesn't allow me to use it at the same time peripheral and component. Here, the UART interrupt is called again, it is overlapped leading to an error.

maohuynh_2-1715152741101.png

I have to !define like the first picture for it to work. I think this is a bug, when I combine use shell, debug console and UART driver interrupt. 

0 项奖励
回复
1,881 次查看
maohuynh
Contributor II

Hi,

Thanks for the reply.

I solved the problem, but my error was related to the combination of Shell and Debug_console. When I use these 2 modules, It causes interrupts of all uarts. Is there any example config using Shell, Debug_console, and many uarts.

 

0 项奖励
回复