2020-10-28 01:55 PM
I have attached a screenshot of a comparison of a project that works (an old one that I created previously in an older version of STM32CubeMx) on the left hand side of the window versus one I just created today using the most recent version of STM32CubeMx (right hand side). Any idea why the project is not exporting to Keil correctly?
I have uninstalled STM32CubeMx and reinstalled. I have also installed the latest STM32Cube MCU Package for the STM32F4 Series (1.25.1) .
Solved! Go to Solution.
2020-11-02 08:03 AM
Hi PMorr.1,
As I can remark from the attached .log:
You have a specific "#" character in the path of your project folder, which may cause this problem.
Some special character in the generation path (e.g. "ä", "&", "#") prevent CubeMX from correctly generate the project when using MDK-ARM toolchain. Sorry for the inconvenience, this is a known issue and it has been reported internally for fix. Thanks for your patience.
Please try to change the generation path and check if the problem still occurs.
Reagards,
Khouloud.
2020-10-28 02:23 PM
2020-10-28 03:17 PM
2020-10-30 01:26 AM
Hi PMorr.1,
I can't reproduce the issue, the project is correctly generated from my side:
Could you please attach the STM32CubeMX.log to track the issue ?
Thanks,
Reagards,
Khouloud.
2020-11-01 01:38 PM
Hi Khouloud,
yes I eventually found the log file under the path:-
C:\Users\PMorrow\.stm32cubemx.
Please see attached.
I notice that the Inc and Src folders that are generated by STM32CubeMx for Keil are generated inside the following path:-
Project_Name\Core\Src
Project_Name\Core\Inc
In the previous version of STM32CubeMx the Inc and Src folders were not placed inside the Core folder
Project_Name\Src
Project_Name\Inc
I don't know if this is causing an issue but it seems strange that the folder paths have changed.
Hopefully, you find the problem within the Log file.
Thanks,
Paul
2020-11-02 08:03 AM
Hi PMorr.1,
As I can remark from the attached .log:
You have a specific "#" character in the path of your project folder, which may cause this problem.
Some special character in the generation path (e.g. "ä", "&", "#") prevent CubeMX from correctly generate the project when using MDK-ARM toolchain. Sorry for the inconvenience, this is a known issue and it has been reported internally for fix. Thanks for your patience.
Please try to change the generation path and check if the problem still occurs.
Reagards,
Khouloud.
2020-11-03 02:58 AM
Thanks very much Khouloud.
Yes, I renamed the directory path to remove the # symbol and I had to delete the folders that were generated from STM32CubeMx and once I did that it was able to transfer the project correctly.
Thanks for your help,
Paul