Skip to main content
herbert
Associate III
Apr 11, 2019 12:37 PM UTC
Question

CubeMX makes error in generating Project for ARM Keilv5

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

This topic has been closed for replies.

2 replies

Vangelis Fortounas
Associate II
Apr 12, 2019 10:57 AM UTC

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.

BerndNW18
Associate
Jan 27, 2020 1:40 PM UTC

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