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.

How to make Tiva ware default include directory in IAR embedded workbench?

Hello everyone. 

I have installed the Tiva Ware and managed to make it the default include directory for Code Composer Studio by reading TM4C123G_LaunchPad_Workshop_Workbook manual. In section Add Path and Build Variables the manual describes how to set up the CCS to evoke the Tiva Ware driver libraries and files. Now I want to do the same for IAR embedded workbench. In other words how to make the Tiva Ware the default include directory for IAR, to test the projects on it? I know that the easier way is to import the entire project, but in case I want to create my own project I will need to set up the build variables.

Excuse my poor English. I hope you get the idea.
Thanks a lot in advance.

  • Radoslav Marinov said:
    in case I want to create my own project

    Those (quoted) words - all too often - prove the "last" of creation-obsessed posters...

    Silent always - what is the appeal of, "own creation?"  The code examples are conceived & implemented by persons w/experience, skill, and care - "own creations" are unlikely to anticipate & implement all that is required.   (this is not a "knock" upon you - the task is non-trivial - and is unlikely to justify your time/effort...)  Note - that if you're really "up" for the time/effort/detail investment - IAR has rich technical documents - prepare for a long & intense read...

    Along with the (always) silence in justifying the "why" of own-creation - may we highlight your need to (likely) choose between becoming an "IDE maven" or more likely - your "continued growth in understanding & mastery" of this class MCU.  (it's not easy to achieve both - doing too much is a violation of KISS...)

    Far more successful alternative is to employ the "closest" factory-supplied project - again one that's been implemented by experts.  You then may carefully & methodically add your own code blocks - and carefully delete (small sections, methodically) of the original code.   This method works as all of the many, special IDE hooks & paths have been (properly) made for you.

    Any "negative feedback" which results from the non, "own-project name" may be overcome by a (careful) project "rename." 

    Long live the desire for, "create my own" - not so much the improper, ill-considered, methods of achievement...

  • As far as I understood you are telling me to employ one of the existing projects and to modify it? When I Add existing project from the Tiva Ware examples, I don't make a copy of the project into my own directory, instead I modify the original example which is undesirable.
  • There's a simple means - for both you/I - to achieve our goals.  Cannot you (first) simply copy - then save your chosen, existing project - in a "safe" (and known) location?  (surely you can - and this keeps your original, factory project "intact" - while freeing you from the necessity to become IDE maven.)  You're then free to modify away (controllably - as past suggested) as you have the original project safely stored, elsewhere...

    And you are welcome...

  • Thanks a lot cb1 for helping me to find a solution to my issue. So I made a copy of one of the example projects in Tiva Ware. Then I located it into prepared directory. Then I added it into IAR as an existing project. Again when I compile it, an error appears: the compiler can not find the include file. How to make the IAR to search include files (by default) in Tiva ware directory as it searches into the project directory? I made a video to show what exactly what I am doing: https://www.youtube.com/watch?v=SHbsJYo277Y

    Thanks again cb1. I appreciate your time.
  • As past stated, IAR provides extensive documentation with their large, long established, pro IDE.

    Your read/review of IAR docs is preferable to my view of your (unique) video. Your answers are there - but do require some "digging/head-banging" upon your part... (same holds true for each/every IDE...)