cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Cube IDE - cubeMX includes multiple source files that results in multiple definition errors

selcukozb
Associate III

Time to time cubeMX configurator includes c files in multiples, which I can clear by deleting one of them. But cubeMX insists adding multiples again in each regeneration. In freshly generated projects it doesn't do so. That issue appears only when I attempt to make a revision using the cubeMX configurator.

I am using cube IDE version 1.4.2 and :

cube MX

Version: 6.0.1-RC3

Build: 20200810-1643 (UTC)

In the attached image you can see multiple includes of system_STM32F1xx.c file. Project builds smoothly when I delete one of them.

13 REPLIES 13

yes this problem is so annoying .what can i do is creating a new project, It's a waste of time�?�?

Dimitris_Kara
Associate

I am having the same problem too. Is there any solution yet? I generate code each time this problem surfaces, to delete the extra files. 

Thanks in advance

ama_it
Associate

Hi all,

appends also with recent IDE versions, is not a solution but works

"Exclude from build" the template file

 


@Dimitris_Kara wrote:

I am having the same problem too. Is there any solution yet?


I don't and, it seems, most users don't - so there must be something "odd" that you're doing.

Perhaps provide a complete & detailed description of the exact steps you take to get into this situation.

 


@Dimitris_Kara wrote:

I generate code each time this problem surfaces, to delete the extra files. 


What "extra files" ?