Skip to main content
Visitor II
May 10, 2024
Solved

Run USBX on STM32H563VIT

  • May 10, 2024
  • 1 reply
  • 1906 views

Tworzę niestandardową płytkę przy zużytym STM32H563VIT.

 

 

Schemat części USB

image.png
Próbuję zastosować urządzenie klasy USB Adio.
Z tego powodu w środowisku IDE (H5) nie ma systemu AZURE RTOS.
Skonfigurowałem USB

image.png

skonfiguruj USBX jako FS_Device

image.png

Wziąłem rozmiar

image.png

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?

This topic has been closed for replies.
Best answer by FBL

Hi @KarolSzymanski 

 

Here is a reformulation of your question in English


@KarolSzymanski wrote:

Im creating a custom board using the STM32H563VIT.

 

image.png

image.png

 

image.png

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.

1 reply

FBLBest answer
ST Technical Moderator
August 2, 2024

Hi @KarolSzymanski 

 

Here is a reformulation of your question in English


@KarolSzymanski wrote:

Im creating a custom board using the STM32H563VIT.

 

image.png

image.png

 

image.png

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL