Why would a project using Uart only work while connecting the USB (StLink) cable to a particular computer?
The project uses a Nucleo board with a STM32H723NG on it. I have adapted the NX_TCP_Server project and I am using Usart2 as a port to send and get data from a device that is then transferred over TCP. This all works fine when connected to the desktop (Linux) I originally built the code on. But then I transferred the project over to a laptop running windows and now the UART only sends (tx) zeros. I also transferred the project over to another laptop running Linux and the Uart does the same thing. I also reran the board from the original computer on debug OK, and terminated the debug mode, and ran again while the powered by the USB by hitting reset. That works as well. I am able to spy on the Uart and see all the correct data. Another test I tried was to connect the USB (stLink) cable to a generic USB adapter (2.5A capable) and I get the zeros again.
So the bottom line is I only get the correct data if I connect the USB (Stlink) cable to the original computer in any of its USB ports.
The Uart2 uses DMA, but that does not matter as I tried the same code with simple _IT calls and got the same results.
Also good to note that I am not using Uart3 which would be connected to the StLink path.
Any ideas? I am completely stumped.
All installations of the STM32CubeIDE are 1.8.0 and all libraries are 1.9.1 (H7)
Also double checked the code that was transferred to make certain it is all identical.
