CubeIDE incorrectly generates the initial code of EXTI handlers: namely, it substitutes the wrong names with User Labels


Hello @AFinn.1 ,
Thanks for your feedback,
This issue was already detected with other STM32 and raised to the development team. I'll keep you posted with the updates.
** Taking the example of PC6 and PA6, both pins CAN be configured as GPIO_EXTI6 **
In EXTI9_5_IRQHandler(), user will find the following HAL_GPIO_EXTI_IRQHandler(Output_PA6_Pin) instead of HAL_GPIO_EXTI_IRQHandler(EXTI_PC6_Pin);
Workaround :
Either remove PA6 user label or set its state to reset state, this will give you a correct generated code.
Sorry for any inconvenience that this may cause.
If you issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)
Thanks @Imen DAHMEN and @Peter BENSCH for flagging this to us.
Sara.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.