STM32H563ZI: implement USB CDC communication using ThreadX & USBX middleware
Hello STM32 community!
I'm relatively new to the embedded field and have been diving into communication protocols through small projects. Currently, I'm working on implementing USB CDC on an STM32H563ZI, and I've been facing challenges for the past two weeks.
I've extensively searched the internet and followed various tutorials, but unfortunately, none of them seem to work.
One of the tutorial(from STM community) that I followed: https://www.youtube.com/watch?v=LdY2bieaPwk
I have added read functions to receive the data. I have made two separate semaphores for read and write functions. (It should work even without semaphores though). When I run the code, it's not taking any input from the terminal.
Inside app_usbx_device.c file,
these two threads(for read and write) were created inside MX_USBX_Device_Init() function.
I am giving semaphore inside the while loop here...
Inside ux_device_cdc_acm.c file,
I am declaring variables...
I am defining the read and write functions like this...
it's not taking any input data
this is the heap and stack size I'm giving,
clock configuration,
to USB,
I would greatly appreciate it if anyone who can debug the mistake in this process and could guide the further steps to take.
Your insights and guidance would be invaluable to me. Thank you in advance for any assistance you can provide!
Please find the attached, project folder for further info.
