2025-06-18 11:40 PM - last edited on 2025-06-19 1:12 AM by Andrew Neil
Thus overwriting it every time.
When generating this function:
/**
* @brief USBD_Get_Configuration_Number
* Return configuration number
* class_type : Device class type
* interface_type : Device interface type
* @retval configuration number
*/
uint16_t USBD_Get_Configuration_Number(uint8_t class_type, uint8_t interface_type)
{
uint8_t cfg_num = 1U;
/* USER CODE BEGIN USBD_Get_CONFIGURATION_Number0 */
/* USER CODE BEGIN USBD_Get_CONFIGURATION_Number0 */
/* USER CODE BEGIN USBD_Get_CONFIGURATION_Number1 */
/* USER CODE BEGIN USBD_Get_CONFIGURATION_Number1 */
return cfg_num;
}
CubeMX version: 6.14.0
2025-06-19 1:00 AM
Hello @andreasnh .
First let me thank you for posting and welcome to the ST Community.
For more investigation, I suggest please that you provide your Ioc.File.
Thanks.
Mahmoud
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.
2025-06-19 2:49 AM
Hello, @Mahmoud Ben Romdhane and thanks for the quick reply.
I'm reporting for an issue we encounter in development of a commercial product and I don't think I can just send the ioc file. I can check individual settings if that can suffice?
2025-06-19 2:53 AM
Can you not just generate a dummy project which illustrates the issue?
Or you could raise a support case - in private: https://ols.st.com/s/
Or contact your distributor: https://www.st.com/content/st_com/en/support/support-home.html