2024-12-21 02:43 AM
Hello STM Community!
I'm trying to implement USB CDC ACM in standalone mode(without using ThreadX) on STM32H563ZI board. I have tried this with ThreadX and got it working.
I have created a project, with the following configurations in the .ioc file;
Time Source : SysTick;
In Project Manager section, I have increased the, Minimum Heap size to 0x1000, and stack size to 0x600.
Clock configuration settings is as follows; (USB is receiving 48MHz through HSI48 clock).
And I have created a task, USBX_DEVICE_CDC_ACM_Task(); for data receiving and transmission
and calling the USBX_Device_Process() function in main.c file, in while loop.
--------
I hope, I have given the configurations correctly and calling all the functions in correct order...
Please let me know if I am wrong anywhere here.
When I run the code, it's getting stuck inside the task; in line 177 as shown below;
(Even without the while loop inside this task, the code didn't work)
I have tried this project, in another way before this, and I got hard fault error, I have posted issue on the forum but there's no reply. here's the link for it, (to check, that project issue)
https://community.st.com/t5/stm32-mcus-embedded-software/how-to-implement-usb-cdc-acm-in-standalone-mode-for-stm32h563zi/m-p/754106#M33055
Kindly, let me know where I am missing out, and the steps I need to follow to use USB CDC ACM in standalone mode.
I have tried the Ux_Device_HID_Standalone example from STMCube repository, but with no output...
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.
2024-12-21 04:26 PM - edited 2024-12-21 04:30 PM
> USB is receiving 48MHz through HSI48 clock
Seriously? You have PLL sourced from HSE.