cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-U5xx: USB VCP UART for U575 and U5A5 - for you

tjaekel
Lead

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:

  • U575 has (just) an integrated USB OTG FS PHY (running in FS mode)
  • U5A5 has (just) an integrated USB OTG HS PHY - my preference, because VCP UART is also running in HS mode (and larger memories)

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
tjaekel
Lead

Find the details, e.g. which macro to set for which board, on the GitHub:

https://github.com/tjaekel/NUCLEO-U5A5JZ-Q_QSPI 

View solution in original post

1 REPLY 1
tjaekel
Lead

Find the details, e.g. which macro to set for which board, on the GitHub:

https://github.com/tjaekel/NUCLEO-U5A5JZ-Q_QSPI