2022-01-18 03:36 PM
I am using the latest version 6.4.0. I used a user label for some IO configuration, but when the code is generated, the code is not using the user label; For ex PC4 I used LED_1 as a label and the code is still using the label GPIO_PIN_4. How can Igenarte the code with user-defined labels?
Thanks
Solved! Go to Solution.
2022-11-28 06:13 AM
Hello @MK8290 ,
This issue is fixed in STM32CubeMX latest release.
V6.7.0 is now available under this Link.
Thanks for your contribution :smiling_face_with_smiling_eyes:
Sara.
2022-01-19 12:57 AM
Dear @MK8290 ,
@Sara BEN HADJ YAHYA can help you on this topic.
SofLit
2022-01-19 06:50 AM
It should. Attach an IOC file that shows the issue.
2022-01-19 10:47 AM
2022-01-19 03:09 PM
Update -
I configured 2 more IO's to interrupts and enabled NVIC, and in Project Manager, I enabled this when I generated code with these settings in addition to LED IO as output, the Pins used user labels.
I believe project settings change nothing to do with this. Somehow configuring interrupt triggered something to use user labels I think.
2022-01-20 12:12 AM
Hello @MK8290 ,
Thanks for your feedback,
It seems that there is nothing wrong with your .ioc file, I generated a code using it and the user labels are defined correctly.
I tested it on CubeIDE and IAR and I didn't face any issue.
Could you please repeat the process and share with us the results.
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,
Sara.
2022-01-24 05:35 AM
Hello @MK8290 ,
You are totally right, the issue is now confirmed. I had to refresh data to get the same results as you.
The user labels are generated correctly in main.h but they are not used in MX_GPIO_Init() function in main.c file. I submitted a ticket to the development team to fix this issue and I will keep you posted with the updates.
You can still use the user labels in your code since their definition is already done in main.h.
If your 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 @Community member for flagging this to us,
Sara.
2022-11-28 06:13 AM
Hello @MK8290 ,
This issue is fixed in STM32CubeMX latest release.
V6.7.0 is now available under this Link.
Thanks for your contribution :smiling_face_with_smiling_eyes:
Sara.