2025-04-30 7:14 AM
Hi,
I'm working on setting up a Virtual COM Port for the STM32H563 using bare metal code, without any operating system. As a reference, I'm using the STM32CubeH5 project for the NUCLEO-H563ZI board, STM32CubeH5/Projects/NUCLEO-H563ZI/Applications/USBX/Ux_Device_HID_CDC_ACM at main · STMicroelectronics/STM32CubeH5. I've created the IOC file and enabled USBX and CDC ACM, which are necessary. However, after generating the source files, I couldn't find any definitions for _ux_device_class_cdc_acm_write and _ux_device_class_cdc_acm_read.
I found Solved: How to use virtual COM port with nucleo-H563ZI - STMicroelectronics Community which suggests writing a _write function for printf using _ux_device_class_cdc_acm_write. This is my next step, but since I can't find _ux_device_class_cdc_acm_write, I'm stuck.
I'm using CubeMX version 6.11.1 and I'm required to stick to this version.
Is there anyone who can assist me?
Best Regards,
Swaroop