2021-03-25 09:11 AM
@STM32 MCUs
In our project we use USB_CDC. We don't use VBUS, disabled at all places in CubeMX, as far as I can see.
Now we want to add an external interrupt on PC0. I have done this.
CubeMX generates the following code, already before I added external interrupt:
usbd_conf.c
/**
* @brief Handle USB VBUS detection upon external interrupt
* @param GPIO_Pin
* @retval None
*/
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
if (GPIO_Pin == GPIO_PIN_9)
{
HAL_PCDEx_BCD_VBUSDetect(&hpcd_USB_OTG_FS);
}
}
This function is needed to define a callback for the external interrupt.
Because I have disable VBUS, I assume this function shall not be in generated code?
I found the same bug report already a few times in forum, partly going back to 2018.
https://community.st.com/s/global-search/HAL_GPIO_EXTI_Callback?t=1616688548492
Why was it not yet fixed? The bug reports from the past are closed,
but how was the fix?
Best regards,
Marie
2021-03-26 06:33 AM
Hello @Community memberurer
Thanks for your feedback,
Could you please share your ioc file to check it?
Khouloud
2021-04-08 04:02 AM
Hello Khouloud,
can you tell me if there is already an update on this topic? Can you confirm you have seen my sent files?
Best regards,
Marie
2021-04-09 02:20 AM
Hello @Community memberurer
I have received you ioc file and you have right, issue is reproduced and it will be fixed (sorry for the delay).
Thanks for brining this problem to our attention and we are sorry for any inconvenience that may have caused.
Thanks for your contribution, Khouloud
2021-08-19 01:22 AM
Hi @Community memberurer
I'm back again to inform you that issue is now fixed, you can use the latest available CubeMX version on site :)
Khouloud