2026-03-13 7:59 AM
Hello,
I would like to build up an USB-CDC communication which gets the commands from the PC and forwards the messages to CAN. I have choosen a Nucleo-G431RB-C04 board, which have a FDCAN and a USB-FullSpeed inteface also. Do I able to create an USB-CDC for the mentioned board? I have read several different information of the USB interfaces on the Nucleo boards, and I would like to be sure before I will buy the mentioned card.
If not, please recommend for me concrete Nucleo board type for this task.
Thanks.
Solved! Go to Solution.
2026-03-14 2:27 AM
Yes, the chip has USB - but the board doesn't provide any connection to it.
You would have to add that externally.
As @mƎALLEm said, if you specifically want a board with a Target USB connector on it, then the Nucleo-G431RB-C04 is not the one for you.
Similarly, I don't think that Nucleo board has CAN transceivers?
2026-03-13 8:14 AM
@PecasHUN wrote:Nucleo-G431RB-C04 board, which have a FDCAN and a USB-FullSpeed inteface also..
Are you sure?
Looks like the board only has USB for the ST-Link - no Target USB ?
via: https://www.st.com/en/evaluation-tools/nucleo-g431rb.html#documentation
2026-03-13 8:23 AM
2026-03-13 8:25 AM
The PA11/PA12 pins aren't connected to the USB connector. The USB connector is connected to the programmer, not the STM32G431RB chip.
Other nucleo boards have an additional "user" USB connector connected to PA11/PA12, perhaps choose one of those.
2026-03-13 8:27 AM - edited 2026-03-13 8:31 AM
Hello,
As said by @Andrew Neil , Nucleo-G431RB board doesn't have a USB OTG connector.
Meanwhile for example NUCLEO-H503RB has that USB connector.
STM32H503 has a FDCAN interface but you need to add a CAN/FDCAN transceiver as the board doesn't have one.
An example of USB CDC ACM is available in STM32H5 Cube HAL package using USBX stack under the link Projects\NUCLEO-H503RB\Applications\USBX\Ux_Device_CDC_ACM
2026-03-14 2:27 AM
Yes, the chip has USB - but the board doesn't provide any connection to it.
You would have to add that externally.
As @mƎALLEm said, if you specifically want a board with a Target USB connector on it, then the Nucleo-G431RB-C04 is not the one for you.
Similarly, I don't think that Nucleo board has CAN transceivers?
2026-03-14 2:38 AM
@PecasHUN wrote:I would like to build up an USB-CDC communication which gets the commands from the PC
You could do that on the Nucleo-G431RB-C04 board by simply using the Virtual COM Port (VCP) in the ST-Link - no need to provide a USB stack and implement CDC on the target ...
(still no CAN transceivers on the board, though)
2026-03-15 10:48 PM
Hi,
many thanks for your answers. I know that there is no user USB connector, but this is a small HW issue which can be handled easily. My real question was that I could use this USB in the chip as CDC or not, and I see from your answers this is not a problem, I only have to add a USB connector, same like I have done before with the CAN tranceiver on the F103 Nucleo.
Thanks again and have a nice day.