Skip to main content
tsuna
Associate II
December 22, 2021
Solved

STM32CubeMx Code generation inconvenient

  • December 22, 2021
  • 2 replies
  • 864 views

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.
Best answer by Sara BEN HADJ YAHYA

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.

2 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
December 22, 2021

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
March 8, 2022

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.