DMA UART MKV56F not working

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

DMA UART MKV56F not working

Jump to solution
473 Views
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

 

Tags (1)
0 Kudos
1 Solution
271 Views
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. 

View solution in original post

0 Kudos
5 Replies
425 Views
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 Kudos
347 Views
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 Kudos
287 Views
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 Kudos
272 Views
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 Kudos
352 Views
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 Kudos