2024-02-01 06:18 PM
My project to have USB VCP UART working on NUCLEO-U575 as well as NUCLEO-U5A5 boards (via a compile macro).
Use the USB-C USR USB connection as a USB based UART (COM port on host): any baud rate as supported by USB speed (FS vs. HS). There is a second UART via the ST-LINK (baud rate: 1843200): so, you have two USB based UARTs - in parallel.
The project is here:
https://github.com/tjaekel/NUCLEO-U5A5JZ-Q_QSPI
It provides already a command line (shell), to interpret the entered line as a command to execute. Extend the list of commands - if you like. Enter "help" to see list of implemented commands.
It uses also ADC to measure and display core voltage (VREF, VBAT) and chip temperature (use it as example how to use ADC1 for internal measurements). Enter "sysinfo" to see the values.
It demonstrates how to handle the differences between a U575 and a U5A5 chip, which are:
Use it as reference project, as a starting point when it comes to VCP UART, if you have a need to provide a command line interface for an interactive user, a Python script on a host, talking to the MCU...
It is based on the AZURE RTOS and USBX, ThreadX.
Solved! Go to Solution.
2024-02-01 06:19 PM
Find the details, e.g. which macro to set for which board, on the GitHub:
2024-02-01 06:19 PM
Find the details, e.g. which macro to set for which board, on the GitHub: