2024-05-10 11:20 AM
Tworzę niestandardową płytkę przy zużytym STM32H563VIT.
Schemat części USB
Próbuję zastosować urządzenie klasy USB Adio.
Z tego powodu w środowisku IDE (H5) nie ma systemu AZURE RTOS.
Skonfigurowałem USB
skonfiguruj USBX jako FS_Device
Wziąłem rozmiar
Po moich zmianach i odłączonych
MX_USB_PCD_Init();
MX_USBX_Device_Init();
MX_ICACHE_Init();
Urządzenie jest w stanie HAL_PCD_STATE_READY
UINT MX_USBX_Device_Init(VOID)
{
UINT ret = UX_SUCCESS;
/* KOD UŻYTKOWNIKA BEGIN MX_USBX_Device_Init0 */
UX_PARAMETER_NOT_USED(ux_device_byte_pool_buffer);
/* KOD UŻYTKOWNIKA KONIEC MX_USBX_Device_Init0 */
/* KOD UŻYTKOWNIKA BEGIN MX_USBX_Device_Init1 */
/* KOD UŻYTKOWNIKA KONIEC MX_USBX_Device_Init1 */
powrót powrót;
}
Jednak system nie wykrywa urządzenia.
Co jeszcze powinienem zrobić, aby system wykrył urządzenie?
Solved! Go to Solution.
2024-08-02 02:02 AM
Here is a reformulation of your question in English
@KarolSzymanski wrote:
Im creating a custom board using the STM32H563VIT.
I am trying to implement a USB Audio class device. However, the IDE environment (H5) does not include the AZURE RTOS system. I have configured the USB settings:
After my changes and the following initializations:
MX_USB_PCD_Init(); MX_USBX_Device_Init(); MX_ICACHE_Init();The device is in the HAL_PCD_STATE_READY state.
Here is the MX_USBX_Device_Init function:
UINT MX_USBX_Device_Init(VOID) { UINT ret = UX_SUCCESS; /* USER CODE BEGIN MX_USBX_Device_Init0 */ UX_PARAMETER_NOT_USED(ux_device_byte_pool_buffer); /* USER CODE END MX_USBX_Device_Init0 */ /* USER CODE BEGIN MX_USBX_Device_Init1 */ /* USER CODE END MX_USBX_Device_Init1 */ return ret; }
However, the system does not detect the device. What else should I do to ensure the system detects the device?
Here some PCB guidelines to implement USB into your design. In your MX configuration, check the platform settings are not set correctly.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-08-02 02:02 AM
Here is a reformulation of your question in English
@KarolSzymanski wrote:
Im creating a custom board using the STM32H563VIT.
I am trying to implement a USB Audio class device. However, the IDE environment (H5) does not include the AZURE RTOS system. I have configured the USB settings:
After my changes and the following initializations:
MX_USB_PCD_Init(); MX_USBX_Device_Init(); MX_ICACHE_Init();The device is in the HAL_PCD_STATE_READY state.
Here is the MX_USBX_Device_Init function:
UINT MX_USBX_Device_Init(VOID) { UINT ret = UX_SUCCESS; /* USER CODE BEGIN MX_USBX_Device_Init0 */ UX_PARAMETER_NOT_USED(ux_device_byte_pool_buffer); /* USER CODE END MX_USBX_Device_Init0 */ /* USER CODE BEGIN MX_USBX_Device_Init1 */ /* USER CODE END MX_USBX_Device_Init1 */ return ret; }
However, the system does not detect the device. What else should I do to ensure the system detects the device?
Here some PCB guidelines to implement USB into your design. In your MX configuration, check the platform settings are not set correctly.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.