DMA UART MKV56F not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DMA UART MKV56F not working

ソリューションへジャンプ
2,004件の閲覧回数
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,802件の閲覧回数
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,956件の閲覧回数
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,878件の閲覧回数
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,818件の閲覧回数
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,803件の閲覧回数
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,883件の閲覧回数
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 件の賞賛
返信