The Linker throws the following error with different variable names around 86 times:
(by medkit_io_1.o and medkit_io.o).
invertercubemx\invertercubemx.axf: Error: L6200E: Symbol Motor_front multiply defined (by medkit_io_1.o and medkit_io.o).
There is not Medkit_IO_1.h, only a Medkit_IO.h so there should be no file with redundant definitions.
The two .o files are the same size as if the compiler was copying it...
Did anyone else encounter such a problem?
But is there a Medkit_IO_1.c, and a Medkit_IO..c ?
If you look at the build output, you will be able to see what files are being compiled; eg, see: www.keil.com/.../mcbtsx1001_wp_cap_build.htm
Also, use the Windows file explorer ...
Thank you for your answer. No, there ios not _1.c file or anything matching. I restarted Keil several times now and now it compiles. The linker gives the following warning though:
invertercubemx\invertercubemx.axf: Warning: L6304W: Duplicate input file invertercubemx\medkit_io_1.o ignored.
Is there a reason why the compiler produces these duplicate files?
The compiler just does what the Project tells it.
So, again, have you looked through the complete build output to see what is happening?
It looks like the project has been auto-generated by ST's CubeMX - is that right? If so, the problem may well lie with CubeMX ...
another thing to do would be to enable the 'Create Batch File' option:
http://www.keil.com/support/man/docs/uv4/uv4_dg_adsout.htm
Then examine the batch file to see exactly what's going on ...