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.

TM4C123GH6PM: TM4C123GH6PM

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: EK-TM4C123GXL, TM4C1230C3PM, TM4C1230D5PM, TM4C1230E6PM

Hello,

Where in the software do I define the correct target, and how to define it? I'm using the EK-TM4C123GXL board. I just don't understand how this should works. Could you please reply with an example or two? :) 

#if defined(TARGET_IS_TM4C123_RA1) || defined(TARGET_IS_TM4C123_RA2) || \
    defined(TARGET_IS_TM4C123_RA3) || defined(TARGET_IS_TM4C123_RB0) || \
    defined(TARGET_IS_TM4C123_RB1) || defined(PART_TM4C1230C3PM) || \
    defined(PART_TM4C1230D5PM) || defined(PART_TM4C1230E6PM) || \ ................................

#define INT_RESOLVE(intname, class) intname##TM4C123

Thank you,

Hani

  • Typically this is defined in the Code Composer Project settings. Right click on the project name in the "Project Explorer" view and select "Show Build Settings". Then expand the selections in the left had window "Build" -> "ARM Compiler" -> "Predefined Symbols". Depending on which version of compiler you are using it will look like this:

    The more practical solution is to start with an example project that already has the correct defines for the EK-TM4C123GXL. Instead of creating a new project, from the top menu select "File" -> "Import". Expand "Code Composer Studio" and select "CCS Projects" -> "Next". Browse to the TivaWare examples in:

    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c123gxl\project0

    Select "Finish" to import project0 into your workspace. You can now right click on the project name and rename this project. The proper defines and the path information will now be setup properly.

  •  I forgot to mention that I'm using Keil v4. Is there is any solution for that? is there is any C statement I can add to help me with this issue?

    Thanks again,

    Hani

  • There are also example projects for the Keil debugger in the TivaWare examples I pointed to earlier. I have not used the Keil debugger so I cannot be more helpful. You can contact them for more details: https://www.keil.com/

    You can just add the defines directly to the source file or add them to an included header file, but I suspect just like TI's Code Composer, the Keil debugger has a different suggested approach.

    #define PART_TM4C123GH6PM
    #define TARGET_IS_TM4C123_RB1
    

  • Thank you, greatly appreciated.

    Hani