Skip to main content
tsuna
Associate II
Dec 22, 2021 12:55 AM UTC
Solved

STM32CubeMx Code generation inconvenient

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.

This topic has been closed for replies.
Sara BEN HADJ YAHYA
ST Technical Moderator
Mar 8, 2022 7:19 AM UTC

Hello @tsuna (Community Member)​ ​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

When your issue is solved, please close this topic by choosing Select as Best.

Thanks for your contribution.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

2 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
Dec 22, 2021 4:00 PM UTC

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Sara BEN HADJ YAHYA
ST Technical Moderator
Mar 8, 2022 7:19 AM UTC

Hello @tsuna (Community Member)​ ​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

When your issue is solved, please close this topic by choosing Select as Best.

Thanks for your contribution.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.