cancel
Showing results for 
Search instead for 
Did you mean: 

Run USBX on STM32H563VIT

KarolSzymanski
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.


I'm out of offce with limited access to my emails.
Happy New Year!

View solution in original post

1 REPLY 1
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.


I'm out of offce with limited access to my emails.
Happy New Year!