Hi,
I'm use UART2 DMA read data and Use Debug Console print data to terminal.
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
Solved! Go to Solution.
Hi @Pablo_Ramos
i think i found the problem, when i used tool MCUxpresso UART peripheral and UART component.
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.
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.
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.
Hope it helps you!
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.
Hi @maohuynh
There is no SDK example where they use shell and uarts simultaneously, but there are examples where they use it separately.
Also, in order to enable The Peripherals tools, you need to go to Config Tools -> Open Pins -> Enable Peripherals tools
Hope it helps you!
Hi @Pablo_Ramos
i think i found the problem, when i used tool MCUxpresso UART peripheral and UART component.
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.
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.
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.