GNU C Makefile

The output from Atmel START can be used with GNU C using a Makefile.

Exporting the Project from Atmel START

  1. 1. On the Atmel START website, create a new project (Example or Board).
  2. 2. Click on the Export Software Component button.
  3. 3. Make sure the "Makefile" check box is checked.
  4. 4. Click on DOWNLOAD PACK.
    An ‘atmelstart.atzip’ pack file will be downloaded.
  5. 5. Rename the downloaded file's extension to ‘.zip’ (change from ‘.atzip’ to ‘.zip’).
  6. 6. Unzip the resulting ‘atmelstart.zip’ file into a folder of your choice, where you would like to create your GNU C project.

Executing a GNU C Makefile

Make sure you have installed a GNU C compiler supporting your selected device. The C compiler must be present in the PATH. Also, the ‘make’ utility should be installed and present in your PATH.

    If you checked the "Include Makefile" check box when exporting the project from Atmel START, the extracted ‘atmelstart.atzip’ file should contain a Makefile inside the ‘gcc’ folder.

  1. 1. In the folder where you extracted the ‘atmelstart.atzip’ file, go to the ‘gcc’ sub-folder and open a command prompt.
  2. 2. Run make.
    This will build your project.