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.

Compiler/TM4C1292NCPDT: Problem in starting my first project for uart communication.< Continued>

Part Number: TM4C1292NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: TI C/C++ Compiler

Hi,

i have been following this thread and i faced similar problem as the author

The link of the thread is shown here: https://e2e.ti.com/support/microcontrollers/other/f/908/t/497727?Problem-in-starting-my-first-project-for-uart-communication-

"Also to be added are in the Define section of the project, TARGET_IS_TM4C129_RA1 and PART_TM4C1294NCPDT." 

My question is how do i add this in the define section, i am trying to pick up more of C programming was trying to start from scratch the UART example. Do i do #define TARGET_IS_TM4C129_RA1 is my main.c program and for the PART TM4C1294NCPDT how do i add this?

  • The best way to start is to import an existing project. That way all of the necessary startup code and definitions are already included. Use the "File" -> "Import" function of Code Composer Studio. For the TM4C1294CPDT device, browse to the TivaWare directory: "C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl" and select a project. If you want an empty project, select "project0".

    But to answer your original question, the best way to create a define that will apply to all files in a project is to define it in Code Composer. Right click on the project and select "Show Build Settings". Then expand the menu items "CCS Build" -> "ARM Compiler" -> "Advanced Options" -> "Predefined Symbols". You can add new symbols or edit existing symbols.

  • Bob i can ask something related to this question. If i do this, is it the equivalent of me doing as #define TARGET_IS_TM4C129_RA1 in my c program?

  • Yes, with the exception that when it is defined in Code Composer it applies to all C files and assembly files in the project.