11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GETTING STARTEDQuick Start GuideThe new IDE, based on Code::Blocks (C::B <strong>for</strong> short) is as easy to use as <strong>the</strong> IDE in<strong>the</strong> previous releases; it just has a different look <strong>and</strong> more features. Don't let <strong>the</strong> newfeatures intimidate you, as it will quickly become apparent that many of those featureswill simplify your activities <strong>and</strong> shorten <strong>the</strong> time required to complete a project or a setof projects. The first improvement that you will notice is <strong>the</strong> built-in editor, which is verymuch a programmer's editor <strong>and</strong> will likely negate your need or desire to use anexternal editor when writing code.C::B impliments <strong>the</strong> concept of a workspace <strong>and</strong> starts up with suitable defaults <strong>for</strong>creating application projects <strong>and</strong> writing code.Creating a Project1. Start <strong>the</strong> Code::Blocks IDE.2. Click on File->New->Project...3. Click on ImageCraft AVR Project.4. Click on Go.5. Enter <strong>the</strong> name of your project in <strong>the</strong> Project Title text box. The o<strong>the</strong>r emptyor text boxes will be filled in automatically <strong>for</strong> you as you enter <strong>the</strong>project title.6. Click on Next when you are satisfied with <strong>the</strong> project name <strong>and</strong> paths.7. Click Finish <strong>and</strong> you will have a project framework set up <strong>for</strong> you with <strong>the</strong>main.c already created.NOTE: We recommend that you enter #include in eachsource file that contains code that references <strong>the</strong> target Atmel part. This allows <strong>for</strong>changing <strong>the</strong> target in <strong>the</strong> IDE without requiring an edit of each file that accesses<strong>the</strong> target processor. Ultimately this makes <strong>the</strong> source more portable from projectto project.8. Click on Ok.9. At this point you are ready to begin writing code <strong>for</strong> your project.10. Repeat items 1 - 8 <strong>for</strong> as many projects that you want in <strong>the</strong> current workspace.Compiling/Building a Project1. If your workspace only contains one project, go to item #2. O<strong>the</strong>rwise, if your

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!