2024-05-12 11:05 PM
Sorry, Google Translate changed my previous post to Polish. That's probably why no one answered me.
Now the post is correct.
I'm creating a custom board using a used STM32H563VIT. Nice processor, but I can't understand how to create an Audo class, even if it's BT 1.0.
In the F series of processors, e.g. STM32F720, it was simple, but here it is somehow mixed up.
USB parts diagram:
I am trying to use a USB Adio class device.
For this reason, there is no AZURE RTOS in the IDE (H5).
I have configured the USB
I configured USBX as FS_Device
I took the stack size
After my changes
The device is in working order HAL_PCD_STATE_READY
UINT MX_USBX_Device_Init(VOID)
{
UINT ret = UX_SUCCESS;
...
UX_PARAMETER_NOT_USED(ux_device_byte_pool_buffer);
...
return ret;
}
However, the system does not detect the device.
What else should I do for the system to detect the device?
2024-05-13 11:48 AM - edited 2024-05-13 11:52 AM
For me it doesn't detect it at all without a resistor.
In the F series (I have H) there was no need, so I didn't have it here.
It turns on for me.
2024-05-13 11:52 PM - edited 2024-05-13 11:58 PM
Maybe read about :
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/usbx-device-stack-3.md
+
https://wiki.st.com/stm32mcu/wiki/Introduction_to_USBX
could help ...
2024-05-14 05:57 AM
Do you have a file in your project
USBX\App\ux_device_descriptors.c
Did you create it yourself?
I don't know why, but I don't have this file and it's making me cry.
There are functions in it
uint8_t *USBD_Get_Device_Framework_Speed
USBD_Get_String_Framework
and the definition of Descriptors.
Could you show what yours looks like?
2024-05-14 07:25 AM
Yes, as I thought, ***, 2 weeks of searching and nothing.
Yesterday I bought Nucleo -F746ZG, opened the Audio Example, installed USBX with threads, filled in the data, generated the project and compiled it.
First connection, the device is calculated correctly and works.
Works out of the box.
After two weeks of work and searching, there is only one conclusion.
The code generator for H5 is unfinished and therefore useless.
Even though all data is entered in MX, not all files are generated (in other processors they are).
First of all, there is no data regarding device descriptors and startup, which is why everything doesn't work.
If I had known this from the beginning, I would never have taken H5 and I will never make the mistake of testing new processors from STM again.