2025-05-08 4:19 PM
When I generated the source code with STM32CubeMX 6.14.1, my Japanese comments in USER CODE area are garbled. The character code is Shift_JIS. The version 6.12.1 is no problem.
Could you please confirm and modify ASAP?
2025-05-08 10:42 PM
Hello @MTana.1
Could you please add more details on that (a screenshot of the error and the .ioc file that reproduce it will do the job).
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-05-09 12:18 AM
2025-05-09 1:41 AM
I've generated the project throw the STM32CubeMX .IOC FILE THAT YOU have sent, and I've added the comments you have added. After compiling the code (generated on the STM32CubeIDE V1.18.1), closing the project and reopen it in another workspace, the comment seems to be fine:
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-05-09 2:07 AM
Thank you for your prompt confirmation.
Please try below.
1) Open ioc file.
2) Generate code.
3) Replace main.c which is generated to main(before).c and rename to main.c
4) Generate code again.
2025-05-09 6:56 AM
I think this is related to the text editor that you are using. I've seen the same behavior with after opening main(before).c file with notepad. But it works fine with the notepad++.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-05-09 9:31 AM
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
2025-05-09 3:28 PM
Thank you for your confirmation. I understand your situation.
However, I didn't see the same problem on 6.12.1. What was changed?
2025-05-14 4:12 PM
Could you please share your files of "before" and "after" which you made?