cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger connection fails when using UART2 in DMA mode in Nucleo-401RE

KGrim.2
Associate II

 Hello everybody,

I am trying to build a simple communication between my PC and a Nucleo-F401RE using UART over the USB connection.

I am able to do this successfully using a “polling�? or an “interrupt�? configuration.

However, when I configure the UART2 of my F401RE as using DMA (I use the CubeMX tool in CubeIDE to do the configuration) and then try to run the program in run or debug mode, I get the error messages:

“Debugger connection lost.

Shutting down...�?

Is it not possible to use DMA of UART2??

Many thanks in advance!

12 REPLIES 12
KGrim.2
Associate II

Thanks Jan for your fast reply, I'll try using another IDE. What do you recommend?

Sorry I can't make any IDE recommendation, I use traditional command-line tools and a programmer editor of my choice, rather than IDE.

JW

OMaka.1
Associate II

I use CubeIDE Version: 1.7.0

Build: 10852_20210715_0634 (UTC)

AND I have same problem. When I turn on ADC DMA, I can't even download program to Nucleo-F303RE.