2026-04-16 2:16 AM
hello ST Community!
I'm trying to connect via UART without USB ST-LINK to the NUCLEO-H755ZI-Q for debugging from the STM32CubeIDE environment, but I can't connect.
What settings do I need to make in the STM32CubeIDE environment to debug via UART?
I tried connecting via UART from the STM32CubeProgrammer environment to simply read flash memory, but it won't connect.
What settings do I need to make in the STM32CubeIDE environment to debug via UART without USB ST_LINK?
Thanks for supports
Solved! Go to Solution.
2026-04-16 5:06 AM - edited 2026-04-16 5:07 AM
@Domy_ST wrote:I would like to do full debugging via UART because in the future the Nucleo-H755ZI-Q microcontroller will be integrated into a board .
You realise that integrating ST Development boards into a final product is not allowed?
See the Terms of Use (via: https://www.st.com/en/evaluation-tools/nucleo-h755zi-q.html#documentation)
@Domy_ST wrote:I'm not sure if I will have access to the SWD using the STDC14 - MIPI10 connector.
How to do this is described in the User Manual:
also via: https://www.st.com/en/evaluation-tools/nucleo-h755zi-q.html#documentation
2026-04-16 2:22 AM
Hello,
@Domy_ST wrote:
I tried connecting via UART from the STM32CubeProgrammer environment to simply read flash memory, but it won't connect.
What do you mean by connecting UART from CubeProgrammer? do you mean via ST bootloader?
2026-04-16 2:47 AM
hello @mƎALLEm,
Yes, using the ST Bootloader via UART, you don't want to connect to the STm32CubeProgrammer, as described in this post:
In addition to the ST Bootloader via UART, I also need to debug via UART without USB. ST-LINK with the STM32CubeIDE environment is this possible?
2026-04-16 2:59 AM
What do you mean by, "debugging" here?
Are you simply looking to give printf-style outputs, or do you want the full control that SWD/JTAG provides?
SWD/JTAG gives a direct connection to the chip's internal debug hardware - you can't do that via UART.
The closest would be to implement some sort of Debug Monitor; eg,
Step-through debugging with no debugger on Cortex-M
But, if you can provide a UART connection - why not provide a SWD connection? It only needs* 2 wires (plus ground)...
* Although 4 is better - including NRST and VDD
2026-04-16 3:02 AM - edited 2026-04-16 4:46 AM
@Domy_ST wrote:
Yes, using the ST Bootloader via UART, you don't want to connect to the STm32CubeProgrammer, as described in this post:
Did you use the same resource needed by the UART that are indicated in the AN2606 "Introduction to system memory boot mode on STM32 MCUs"?
USART3 needs PB11 and PB10 for the bootloader:
While in the NUCLEO board is connected to PD8 and PD9 as indicated by the schematic:
So you need to wire and connect PB10 to PD8 and PB11 to PD9, so the STLINK-VCP will be connected to the USART3 and use the ST bootloader.
@Domy_ST wrote:
In addition to the ST Bootloader via UART, I also need to debug via UART without USB. ST-LINK with the STM32CubeIDE environment is this possible?
Not clear what do you mean by debug with UART in CubeIDE!
Do you need to display messages over printf in CubeIDE or you need totally to debug the application with UART?? Because that's not possible as it doesn't make sense.
To display messages over UART using printf you need to make a retarget of UART to printf.
2026-04-16 3:06 AM
@Domy_ST wrote:In addition to the ST Bootloader via UART, I also need to debug via UART without USB. ST-LINK with the STM32CubeIDE environment is this possible?
That's really two separate questions.
It would have been better to keep the other thread for the bootloader access, and have a separate one for the debug-over-UART question.
2026-04-16 4:37 AM
The ST Bootloader worked by making the connections you indicated. Thank you very much!
Yes, I know how to use printf debugging via UART. My intention was to do full debugging via UART. If you tell me that's not possible, I'll just use printf debug monitor. Or maybe something can be done as you say @Andrew Neil .
2026-04-16 4:39 AM
@Andrew Neil Yes, I know how to use the printf monitor debug via UART. My intention was to fully debug via UART. If you tell me that's not possible, I'll just use the printf monitor debug and take a look at the link you provided.
Thanks
2026-04-16 4:45 AM - edited 2026-04-16 4:52 AM
@Domy_ST wrote:The ST Bootloader worked by making the connections you indicated. .
You've marked the solution in the wrong thread!
Keep this one about the debug-over-UART question.
EDIT: now fixed.
@Domy_ST wrote:My intention was to do full debugging via UART. If you tell me that's not possible
No, that's not what I said.
@Domy_ST wrote:maybe something can be done as you say @Andrew Neil .
Yes - I gave a link to an example.
But it still leaves the question of why you want to do that?
Why not just use SWD as god intended?
PS:
Note that it is possible to do SWD debugging remotely, if that's what you're worried about:
2026-04-16 4:51 AM - edited 2026-04-16 4:53 AM
I've already said that.
@mƎALLEm wrote:
Do you need to display messages over printf in CubeIDE or you need totally to debug the application with UART?? Because that's not possible as it doesn't make sense.
To display messages over UART using printf you need to make a retarget of UART to printf.
So not possible to debug your application over UART. So I suppose the question has been answered.
You need definitely a STLINK or JTAG or Trace probe connected to the core to debug the application.