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.

11 REPLIES 11

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