I just loaded up a sample program from the great people at microcontrollerslab.com to control a servo motor. I haven't used my Keil and Tiva board for a long time, so I would not be surprised if it was something I was doing wrong with the setup. Anyhow, I finally got down to one error and it might as well be in Mandarin. A screen grab with the error : .\Objects\Servo1.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_tm4c123.o and servo1_1.o). is on the bottom. Any ideas ?
The reason for this error is quite simple. There are two functions with the name 'SystemInit' in your project. One is in the startup file system_TM4C123.c and the other one is in Servo1.c. SystemInit the the standard name of function that initializes the clock tree, external memory interfaces and the like in a CMSIS compatible startup file. You could remove this startup file which is selected as a CMSIS component, but I would change the function name in the module Servo1.c. Depending on when the function should be executed, you could merge the content of your SystemInit function from the module Servo1.c into the CMSIS startup file.
I'm not sure, on first reading, I understand this reply, however I did realize later that there were several duplicate files in my project box. I've tried to simply remove one set but don't know how. I was very surprised that there was no simple right click and delete function associated with the project files and I have seen with a search that there have been other complaints about this missing functionality. I was just going to rebuild my project from scratch but would have preferred the ability to simply clean up the file duplications, if I only knew how. Thanks.
Can you tell me how i can clean up the duplicate files in the project box ? They don't respond to the usual right click and delete one sees in most Windows software,See my added comment below. My research revealed that this error is simply a matter of duplicate files.
>Can you tell me how i can clean up the duplicate files in the project box ?
Which duplicate file? In your screen captures I only see one source file with the name 'Servo1.c' You could remove it from the project window with a right-click and select 'Remove File 'Servo1.c''.
All other files underneath the groups with a green dice come from selected CMSIS components. You can even select/deselect in the dialog 'Manage Run-Time Environment'.
>They don't respond to the usual right click and delete one sees in most Windows software
Yes, it works that way in µVision as well. What you can't do in the project window is to remove the header files that are underneath the corresponding source file. These files are used by this C source file and this information is parsed from the C source file.
>My research revealed that this error is simply a matter of duplicate files.
I don't think so because I don't see duplicate files in your project. As already mentioned above, you only have two SystemInit Files in your project. Only this needs to be fixed.