Setting Up your IAR Development Environment Tool

The following documentation is divided in two parts. First part, walk through the process to install IAR Embedded Workbench on your computer. The second part provides the steps to have ready your workbench development environment and start programming with a microcontroller. The ARM based TI Tiva TM4C123GH6PM is the one to be used as an example for this exercise. 

Note: I’m not affiliated, nor support, or receive any commission by doing so.


Part I. IAR Embedded Workbench Download and Installation:


Go to: IAR Embedded Workbench

Click: (scroll down a little) Download Software






Open the download folder. And double click the .exe file.

Click: Install IAR Embedded Workbench for ARM and follow the instructions.




Select: Register with IAR Systems to get an evaluation license and click next. 




Select/Click: Register - A new tab in your internet browser will open.




Select: Code size limited, fill your information and click “Submit” at the end.




Go to your email > Open your recent email from IAR > Copy the license number



Paste the previous registration windows and click next.


By now, you have completed the IAR Embedded Workbench installation.



Part II. Setting up your workspace:


One you have your IDE tool installed you will need to set up your workspace. Open you IAR integrated development environment (IDE) tool. 



From the top-left corner of the window:


Select: File > New Workspace 



Select: File > Save Workspace As: workspace 




From the top bar menu:


Select:

Project > Create New Project > C > main > Ok > File name: <name_of_your_project>


 

From the top bar menu:


Select: Project > Options > General Options: Texas Instrument TM4C123GH6PM





Project > Options > General Options





Project > Options > C/C++ Compiler > Language 1




Go to this website ARM-Programming-Examples-TM4C. In your IAR Embedded Workbench IDE make one of the include paths be "inc" folder. 


Project > Options > Category: C/C++Compiler > “Preprocessor” tab:


Also add the CMSIS core include path: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\CMSIS\Core\Include


Project > Options > Debugger




Add also the files "startup_LM4F.s" and those that are necessary from the "src" folder to your project:




Thank you for reading!


You should be ready to start programming. 




Comments