This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#10010 and #10056 erorrs in ALL example programs

Other Parts Discussed in Thread: TM4C123GH6PM, ENERGIA, EK-TM4C123GXL

I am pretty disappointing that TI is unable to provide CCS tutorials that don't work without having to do a whole bunch of things that are not even discussed or covered in the tutorials. I have finally at least gotten to the point that the example projects will load into the work space. But none of them will run according to the instructions in any tutorial I have found (e.g. http://www.ti.com/lit/ml/spmu352/spmu352.pdf).

I am trying to get running on Windows XP and CCS 5.5.

Hello has five errors when building and Blinky gets three. All the other ones have errors too. Here are the errors in Blinky:

#10010 errors encountered during linking; "blinky.out" not built blinky C/C++ Problem

#10056 symbol "g_pfnVectors" redefined: first defined in "./tm4c123gh6pm_startup_ccs.obj"; redefined in "./startup_ccs.obj" blinky C/C++ Problem

#10056 symbol "ResetISR" redefined: first defined in "./tm4c123gh6pm_startup_ccs.obj"; redefined in "./startup_ccs.obj" blinky C/C++ Problem

The driverlib, usblib and grlibs all have errors like...

"This project was created for a device that is not currently recognized: Cortex M.LM4F110B2QR. Please install the device descriptor, or migrate the project to the closest match from the supported devices by adjusting project properties."

...and when I try to select the TIVA C series and the appropriate board, that produces yet another error.

AND, there are a bunch of TM4C123G choices available, but none match the board. I finally figured out by studying the pamphlet that came with the board that the "closest" match is TM4C123GH6PM, but that doesn't change the result when selected.

Okay fine, so I installed the Energia IDE, followed their Windows instructions and tried it, and of course it fails with a cryptic error as well.

So, I moved over to a Macbook, downloaded Energia for Mac, followed their instructions and had it working in less that 5 minutes (including download time)!

Seriously? Is this the best you can do?

Is there some reason for all this "not working" experience and what is the fix?

Thanks.

  • Hi Philip,

    What version of the launchpad are you using?

    There are two versions of the Launchpad.

    1. LM4F Launchpad
    2. Tiva Launchpad

         Because, of the re-brand to Tiva, TM4C123 replaced LM4F. As far as I know, both chips are the same. The microcontroller name is the only difference. However, there are differences with regards to project options preprocessor defines at the example program like "blinky", that would likely cause error during compiling. So, it is necessary to download the correct Tivaware for your Launchpad.

    -kel

  • Philip McIntosh said:
    But none of them will run according to the instructions in any tutorial I have found (e.g. http://www.ti.com/lit/ml/spmu352/spmu352.pdf).

    I am trying to get running on Windows XP and CCS 5.5.

    Using XP and a complete CCS 5.5 installation, with either TivaWare_C_Series-1.0 or TivaWare_C_Series-2.0.1.11577 I was able to import the examples and driverlib without getting the errors you were seeing.

    The Install Code Composer Studio section of spmu352.pdf says:

    3. Follow the instructions in the Code Composer Studio installation program. Select a Complete Feature Set install or a Custom install with the Stellaris® (or Tiva C Series in the future) ARM® Cortex-M MCUs selected at a minimum. For all of the other options, keep the default values.
    Therefore, performed a new CCS custom install selecting only "Tiva C Series ARM MCUs":

    Using this CCS 5.5 custom installation with only "Tiva C Series ARM MCUs" and importing projects from TivaWare_C_Series-2.0.1.11577:

    1) The blink, hello and all other examples from examples\boards\ek-tm4c123gxl compile without error.

    2) The driverlib, grlib and usblib all report the following error after they are imported:

    This project was created for a device that is not currently recognized: Cortex M.LM4F110B2QR. Please install the device descriptor, or migrate the project to the closest match from the supported devices by adjusting project properties.

    The problem is that the driverlib, grlib and usblib projects in TivaWare_C_Series-2.0.1.11577 still refer to the Stellaris device names, and haven't been renamed to Tiva device names. To get the driverlib, grlib and usblib projects to compile during CCS 5.5 installation "Stellaris Cortex M MCUs" must be selected as well as "Tiva C Series ARM MCUs". You should be able to run-run the CCS 5.5 installer and add support for  "Stellaris Cortex M MCUs" to fix those errors.

  • Philip McIntosh said:
    Hello has five errors when building and Blinky gets three. All the other ones have errors too. Here are the errors in Blinky:

    #10010 errors encountered during linking; "blinky.out" not built blinky C/C++ Problem

    #10056 symbol "g_pfnVectors" redefined: first defined in "./tm4c123gh6pm_startup_ccs.obj"; redefined in "./startup_ccs.obj" blinky C/C++ Problem

    #10056 symbol "ResetISR" redefined: first defined in "./tm4c123gh6pm_startup_ccs.obj"; redefined in "./startup_ccs.obj" blinky C/C++ Problem

    These errors are because projects have ended up with both a tm4c123gh6pm_startup_ccs.c source file from the CCS installation and the startup_ccs.c source file from the TivaWare example project. When the existing TivaWare example project is imported, only the startup_ccs.c source file from the TivaWare example project should be added to the project.

    Not sure what caused this error, as haven't been able to repeat it - when TivaWare example projects were imported only the startup_ccs.c source file was part to the project.

    Philip McIntosh said:
    I have finally at least gotten to the point that the example projects will load into the work space.
    What problem did you encounter trying to load the example projects into the work space?

  • Chester Gillon said:
    These errors are because projects have ended up with both a tm4c123gh6pm_startup_ccs.c source file from the CCS installation and the startup_ccs.c source file from the TivaWare example project. When the existing TivaWare example project is imported, only the startup_ccs.c source file from the TivaWare example project should be added to the project.

    Not sure what caused this error, as haven't been able to repeat it - when TivaWare example projects were imported only the startup_ccs.c source file was part to the project.

    Have now managed to re-create those errors:

    1) Import an example from  TivaWare_C_Series-2.0.1.11577 into a CCS 5.5 workspace.

    2) The following warning is reported:

    This project was created using a version of compiler that is not currently installed: 5.0.4 [ARM]. Another version of the compiler will be used during build: 5.1.1. Please install the compiler of the required version, or migrate the project to one of the available compiler versions by adjusting project properties.

    3) The project compiles successfully.

    4) In the project properties change the compiler version from v5.0.4 (the version used in the imported project) to v5.1.1 (the version installed).

    5) The act of changing the compiler version caused CCS to add the tm4c123gh6pm_startup_ccs.c source file from the CCS installation to the project.

    6) Attempting to compile the project now produces the errors:

    error #10056: symbol "ResetISR" redefined: first defined in "./tm4c123gh6pm_startup_ccs.obj"; redefined in "./startup_ccs.obj"

    error #10056: symbol "g_pfnVectors" redefined: first defined in "./tm4c123gh6pm_startup_ccs.obj"; redefined in "./startup_ccs.obj"

    error #10010: errors encountered during linking; "blinky.out" not built

    7) Delete the  tm4c123gh6pm_startup_ccs.c source file from the project. The project now compiles without any errors or warnings.

     

    Guess that it a "bug" that changing the compiler version causes CCS to add the tm4c123gh6pm_startup_ccs.c source file to the project. (that source file is meant for when a new project is created, so doesn't make sense for it to be added when a project property is changed on an imported project)

  • Thanks to everyone who responded.

    I had the correct Tivaware installed.

    It was about a week ago that I reported the problem, and I do not recall why the projects were not appearing in the work space after following the instructions in the above reference tutorial document. I recall there were was an error message of some kind. But, it might have had to do with the fact, that despite what the instructions say, there is no grlib file in the 1.0 folder. I ended up installing everything from the newer version folder after updating the compiler. That probably did it.

    The driverlib and glib items still are in error but that will probably be fixed by installing the cortex stuff.

    And, deleting the tm4c123gh6pm_startup_ccs.c file does allow a project to build without error and run on the board.