cancel
Showing results for 
Search instead for 
Did you mean: 

Question for STM

konsul41
Associate II

Question for STM.
Could you please advise what to do to make the environment generate audio files?

image.png

Could anyone of you show me how to generate these files?
They are generated for all classes except audio.
I guess there should be these too.
Alternatively, please show me how to create an AUDIO Device using the STM32H5 processor.

Please for the msc class even adds

 

 

storage_configuration_number = USBD_Get_Configuration_Number(CLASS_TYPE_MSC, 0);

 

storage_interface_number = USBD_Get_Interface_Number(CLASS_TYPE_MSC, 0);

 

if (ux_device_stack_class_register(_ux_system_slave_class_storage_name,

ux_device_class_storage_entry,

storage_configuration_number,

storage_interface_number,

&storage_parameter) != UX_SUCCESS)

{

return UX_ERROR;

}

1 REPLY 1
KDJEM.1
ST Employee

Hello @konsul41 ,

Thank you for your bringing this issue to our attention.

I reported the audio files issue internally.

Could you please give more detail about the MSC issue?

-->Please for the msc class even adds

I found this code in app_usbx_device.c file

 

  /* Get storage configuration number */
  storage_configuration_number = USBD_Get_Configuration_Number(CLASS_TYPE_MSC, 0);

  /* Find storage interface number */
  storage_interface_number = USBD_Get_Interface_Number(CLASS_TYPE_MSC, 0);

  /* Initialize the device storage class */
  if (ux_device_stack_class_register(_ux_system_slave_class_storage_name,
                                     ux_device_class_storage_entry,
                                     storage_configuration_number,
                                     storage_interface_number,
                                     &storage_parameter) != UX_SUCCESS)
  {
    /* USER CODE BEGIN USBX_DEVICE_STORAGE_REGISTER_ERROR */
    return UX_ERROR;
    /* USER CODE END USBX_DEVICE_STORAGE_REGISTER_ERROR */
  }

 

Is this code missing from another file?

Internal ticket number: 182749 (This is an internal tracking number and is not accessible or usable by customers).

Thank you.

Kaouthar

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.