cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX makes error in generating Project for ARM Keilv5

herbert
Associate III

Hello all!

When generating a project for ARM Keilv5 with CubeMX Version 5.1.0, the file system_stm32f4xx.c ist added twice to the project under Drivers/CMSIS heading. This leads to Keil compiling the file twice and results in linker errors as some symbols are present twice, an issue the linker cannot resolve. One has to manually remove one occurance of the file in the project, then everything works fine.

Is this issue konw by others here and is there a bugfix/workaround besides manually removing the entry every time?

Kind regards

Herbert

2 REPLIES 2

Hi

Remove both of these files from Keil, save the project, close it and generate code with CubeMx.

Usually all these strange things happens in case MDK is open when try to generate code.

Hi,

when I followed your tip, cubeMX failed to generate the project file! So, I had to manually restore "system_stm32f4xx.c" to the "Drivers/CMSIS" branch in order to resolve this error. Subsequently, CubeMX no longer replicated the entry for that file in the project tree. AHA... very strange behavior.

Greets, Bernd