cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMx Code generation inconvenient

tsuna
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

View solution in original post

2 REPLIES 2
Sara BEN HADJ YAHYA
ST Employee

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.

Sara BEN HADJ YAHYA
ST Employee

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.