I am developing a code in Visual Studio/visualgdb for STM32L476VG Discovery Board. How do I set up UART on this board so that I would be able to print my output on a terminal program (teraTerm, PuTTY etc)? Is there any standard code library available for this specific problem? I am using ST-Link debugger and STM32CubeMX for skeleton code generation.
Please try selecting “Show STM32CubeMX samples” on the sample selection page in the VisualGDB wizard. It will show the sample projects that came with the STM32CubeMX software libraries and might include an out-of-the-box UART example for your board.