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.
The new version 4.14.0 reproduce this problem again. I doubt ST is not happy to let Keil use their tool :(.
Hello Zhang, I tested 4.14 and it does generate a gpdsc as expected. Can you check again that you installed 4.14 properly?
Best Regards, Matthias
I also found that there is a same problem in 4.14.0. As the keil call the CubeMx, from the CubeMx project setting you can find the Project name is not correct.
when stm32CubeMX (4.14)is called from keil uVision5 it gets the project name "STCubeGenerated", not the actual project name. After generating code either a new project (open project) is started with the name STCubeGenerated or the data file is not recognised cos its got the wrong name. Under stm32CubeMX settings the project name "STCubeGenerated" is greyed out so cant be changed.
MCU REF STM32F405RGTx
fw pac name STM32Cube FW_F4 V1.11.0
STCubeGenerated.ioc
I cant see any *.gpdsc file
It has been confirmed that this issue still exists in v4.14 release version, which is caused by a bug in STM32CubeMX 4.14.
There is a workaround solution:
Before running the code generation!!! Select from "Project" menu: "Settings..." (alt-p) Switch to tab "Code Generator" At the bottom of the dialog there is "Template Settings" where you need to press the "Settings..." button Hit "OK" to close all dialogs. Now generate the Code and both GPDSC and MX_Device.h file should get generated.
ST will fix this bug in the next release.
I don't think the issue will be solved any time soon. The problem was reported and acknowledged as a bug more than 1 year ago! That's unacceptable.
where