The original version had been done for the Open Source Compiler AVR-GCC. Starting with Nut/OS version 2.5, the commercial compiler ICCAVR from ImageCraft is additionally supported.
Command Line Environment for AVR-GCC
Windows users need to edit nutenvgc.bat before running it the first time. This batch must then be started in each DOS window you intend to use with the GNU Compiler, because it modifies only the local environment of the single DOS window, not that of the whole system.
Next you should become familiar with the GNU make utility.
The rest of this section is for Linux only.
Sorry Linux users, there's no prepared script right now. May be somebody sends one in one day. Untill then, please refer to the DOS batch file. The following environment variables are required:
Using the AVR Studio IDE with GCC.
Using the AVR Studio IDE with GCC.
The ImageCraft IDE should be used for your application code only. Compiling the Nut/OS sources requires a command line environment (see next section).
In order to link your application, you need to configure the following additional libs:
Command Line Environment for ICCAVR
In case you avoid IDEs in general or if you want to make your own modifications to Nut/OS, then you must use the DOS window.
Edit nutenvic.bat before running it the first time. This batch command file must then be started in each DOS window you intend to use with the ImageCraft Compiler, because it modifies only the local environment of the single DOS window, not that of the whole system.
Get yourself familiar with the GNU make utility.
All Nut/OS and Nut/Net libraries should compile and link without problem. But most apps written for AVR-GCC will not run properly when compiled by ICCAVR. Specifically the macro PSTR() will not work with ICCAVR. For porting, refer to the samples in subdirectory appicc.