

This article assumes that MSYS2 is installed and that the make utility is reachable through the system’s PATH variable. Instructions on how to install MSYS2 can be found in another article on installing the IAR tools on Windows. Multiple options are available but I recommend MSYS2 for performance and compatibility. To build a makefile project using the IAR tools, the Make utility must be installed as well as a suitable shell to run the build. Note on the Shell and Make Provider on Windows Additionally, there is also Technical Note 47884 on the subject of building an IAR Embedded Workbench project from the command line. Those three manuals contain all the information required to use all the build tools either from the IDE or from the command line. IDE Project Management and Building Guide.There is a distinct set of manuals for each architecture with different command-line options for each. The Information Center can be reached through the Help menu of both the IAR IDE or the Eclipse Help menu if the IAR plugin for Eclipse is already installed.

Documentationīefore diving into the Makefiles, there’s a few important documents that developers should be aware of when it comes to using the IAR tools from the command line or within a Makefile.įirst, there are three important user manuals and reference manuals that can be found from the IAR Information Center. Note that IAR also has available a set of build tools for Linux but this article focuses on the Windows use case. In this article I’ll go over a simple set of Makefiles that can be used to build a basic project using the IAR Embedded Workbench tools under Windows. And since I was in the middle of writing the series of guides on using the IAR tools with Eclipse, I thought that a separate article on how to build an embedded C application using IAR and Makefiles would be an interesting addition. But for some reason, I’ve always been satisfied with the “simplicity” of Makefiles over other options. Now, I know that Makefiles can be very polarizing and have been losing favour bit by bit for over two decades to other options such as CMAKE.
