2021-12-21 04:55 PM
STM32CubeMx will generate the code as below.
HAL_GPIO_EXTI_IRQHandler (GPIO_OUTPUT_PA0_Pin);
But I want it to be generated as follows:
HAL_GPIO_EXTI_IRQHandler (PB0_EXTI0_Pin);
or
HAL_GPIO_EXTI_IRQHandler (GPIO_PIN_0);
The user label of the pin assigned to the interrupt is replaced with the user label of another pin.
Solved! Go to Solution.
2022-03-07 11:19 PM
2021-12-22 08:00 AM
Hello @tsuna ,
Thanks for your feedback,
This issue was already raised to the development team. I'll keep you posted with the updates.
For now, you can remove PA0 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 :)
Regards,
Sara.
2022-03-07 11:19 PM