I found a problem today when I created a new project,and tried to manage software packages byManage Run-Time Environment. I choose "Configuration via STM32CubeMX".(like the Screen Shot blow) ww3.sinaimg.cn/.../6cda5b3djw1f0wv0gwltvj20rr0lg3zf.jpg
After generate code by STM32CubeMX 4.13.0. When I returned to keil but it told me that
Error #545: Required gpdsc file '.....Project\RTE\Device\STM32F407VETx\FrameworkCubeMX.gpdsc' is missing
After I searched the update log of CubeMX, I found there words: New features: ..... In the project settings, the user can choose to generate a CMSIS-Pack description file (gpdsc) to integrate with other IDEs.
So,STM32CubeMX 4.13.0,will not generate a gpdsc file as earlier version , unless you change your Toolchain/IDE to"Other Toolchains(gpdsc)". ww4.sinaimg.cn/.../6cda5b3djw1f0wv0gbsn0j20go0hi3z0.jpg
That's inconvenient for developers.Will the next Update will fix that problem?
There is a possible solution,I did not try (because I don't want to write a new STM32CubeMxLauncher)but it should works:
Keil used a Program (X:\Keil_V5\ARM\Pack\Keil\STM32F4xx_DFP\2.7.0\MDK\CubeMX\STM32CubeMxLauncher.exe) to generate a script for CubeMX to know the information about the Project. the script is like
load STM32F407VETx project name STCubeGenerated project toolchain "MDK-ARM V5" project path X:\Workspace\....
So change the 3rd line of script to project toolchain "Other Toolchains (GPDSC)" to generate a GPDSC file, and import it to target project.
You are reading templates from the "Default" location.
Browse to your Pack directory e.g. C:\Keil\ARM\Pack\Keil\STM32F4xx_DFP\2.0.0\MDK\CubeMX
@Matthias Hertel thanks very much,my problem solved....
Hi,
I was playing around with v4.15 of the cubemx and v5.20 of the MDK. I noticed that if my project directory had spaces in it that I would see the errors described above. If the project directory had no spaces it works perfectly.
Can anyone confirm this?
Thanks, Bob
I should be more specific. What happens is that cubemx tool only uses the first word of the directory filename and places the generated files in the wrong directory. So the sources are not in the project directory and MDK shows the source files like main.c to be missing.