<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>open-nandra &#187; Makefile</title>
	<atom:link href="http://open-nandra.com/tag/makefile/feed/" rel="self" type="application/rss+xml" />
	<link>http://open-nandra.com</link>
	<description>open source</description>
	<lastBuildDate>Sun, 01 Jan 2012 13:10:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to simulate AVR in linux</title>
		<link>http://open-nandra.com/2008/12/how-to-simulate-avr-in-linux/</link>
		<comments>http://open-nandra.com/2008/12/how-to-simulate-avr-in-linux/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 10:06:31 +0000</pubDate>
		<dc:creator>Marek Belisko</dc:creator>
				<category><![CDATA[AVR programming]]></category>
		<category><![CDATA[avr]]></category>
		<category><![CDATA[ddd]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[gdbserver]]></category>
		<category><![CDATA[Makefile]]></category>

		<guid isPermaLink="false">http://open-nandra.com/?p=18</guid>
		<description><![CDATA[In this article I would like to introduce simulating of AVR processors in Linux. When I start playing around AVR coding I don&#8217;t want to switch to Windows because of many development tools are available. Search through google and found some good hints how to proceed. This article should provide summary. Steps: 1. install all [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I would like to introduce simulating of AVR processors in Linux. When I start playing around AVR coding I don&#8217;t want to switch to Windows because of many development tools are available. Search through google and found some good hints how to proceed. This article should provide summary.</p>
<p><span id="more-18"></span>Steps:<br />
1. install all AVR necessary tools (from source or from repository):</p>
<p>* avr-libc -  The C runtime library for the AVR family of microcontrollers for use with the GNU toolset (cross-avr-binutils, cross-avr-gcc, uisp, etc.).<br />
* cross-avr-binutils &#8211; Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy, objdump, ranlib, size, strings, strip.<br />
* cross-avr-gcc &#8211; compiler for AVR microprocessors.<br />
* simulavr &#8211; AVR simulator<br />
* gdb-avr &#8211; GNU debugger for avr</p>
<p>Note:</p>
<p>for users which are not familiar with gdb command line interface would be good install also ddd (graphic extension for gdb)</p>
<p>2. for compilation we will use <a href="http://open-nandra.com/wp-content/uploads/Makefile">Makefile</a></p>
<p>What is necessary set in Makefile:</p>
<p>* MCU &#8211; type of processor</p>
<p>* PROJECTNAME &#8211; project name</p>
<p>* PRJSRC &#8211; sources</p>
<p>* OPTLEVEL &#8211; optimization level (for debugging must be set to 0!!!)</p>
<p>3. Start debugging<br />
start simulavr first:</p>
<pre>simulavr</pre>
<p>Start GDB server:</p>
<pre>make gdbserver</pre>
<p>start dddd:</p>
<pre>make ddd</pre>
<p style="text-align: left;">If everything is OK you should see a ddd debugger window with your sources loaded and you can start debugging.</p>
<p><a href="http://open-nandra.com/wp-content/uploads/ddd_orig.png"><img class="aligncenter size-full wp-image-21" title="ddd" src="http://open-nandra.com/wp-content/uploads/ddd.png" alt="ddd" width="400" height="329" /></a></p>
<p>Marek</p>
]]></content:encoded>
			<wfw:commentRss>http://open-nandra.com/2008/12/how-to-simulate-avr-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

