<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.newae.com/index.php?action=history&amp;feed=atom&amp;title=CW303_XMEGA_Target%2FCompiling</id>
		<title>CW303 XMEGA Target/Compiling - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.newae.com/index.php?action=history&amp;feed=atom&amp;title=CW303_XMEGA_Target%2FCompiling"/>
		<link rel="alternate" type="text/html" href="http://wiki.newae.com/index.php?title=CW303_XMEGA_Target/Compiling&amp;action=history"/>
		<updated>2026-04-22T07:38:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.newae.com/index.php?title=CW303_XMEGA_Target/Compiling&amp;diff=3273&amp;oldid=prev</id>
		<title>Fheubach at 15:39, 19 April 2018</title>
		<link rel="alternate" type="text/html" href="http://wiki.newae.com/index.php?title=CW303_XMEGA_Target/Compiling&amp;diff=3273&amp;oldid=prev"/>
				<updated>2018-04-19T15:39:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:39, 19 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; to the project directory with the firmware source (.c) and makefile, and run &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;:&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; to the project directory with the firmware source (.c) and makefile, and run &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;:&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;pre&amp;gt;cd c:\chipwhisperer\hardware\victims\firmware\&amp;lt;project dir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;pre&amp;gt;cd c:\chipwhisperer\hardware\victims\firmware\&amp;lt;project dir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;make PLATFORM=CW303 CRYPTO_TARGET=AVRCRYPTOLIB&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;make PLATFORM=CW303 CRYPTO_TARGET=AVRCRYPTOLIB&amp;lt;/pre&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;lt;p&amp;gt;where the &amp;lt;&amp;gt; part is changed to the project name.&amp;lt;/p&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;If this is successful, you'll see an output like the following:&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;If this is successful, you'll see an output like the following:&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;[[File:Avr-build-ok.png|image]]&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;p&amp;gt;[[File:Avr-build-ok.png|image]]&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bitnami_mediawiki:diff:version:1.11a:oldid:3272:newid:3273 --&gt;
&lt;/table&gt;</summary>
		<author><name>Fheubach</name></author>	</entry>

	<entry>
		<id>http://wiki.newae.com/index.php?title=CW303_XMEGA_Target/Compiling&amp;diff=3272&amp;oldid=prev</id>
		<title>Fheubach: Created page with &quot;== Building firmware == The XMEGA uses AVR architecture and needs an AVR compiler. The target firmware can be found under the &lt;code&gt;chipwhisperer/hardware/victims/firmware/&lt;/c...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.newae.com/index.php?title=CW303_XMEGA_Target/Compiling&amp;diff=3272&amp;oldid=prev"/>
				<updated>2018-04-19T15:36:59Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Building firmware == The XMEGA uses AVR architecture and needs an AVR compiler. The target firmware can be found under the &amp;lt;code&amp;gt;chipwhisperer/hardware/victims/firmware/&amp;lt;/c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Building firmware ==&lt;br /&gt;
The XMEGA uses AVR architecture and needs an AVR compiler. The target firmware can be found under the &amp;lt;code&amp;gt;chipwhisperer/hardware/victims/firmware/&amp;lt;/code&amp;gt; directory in their project (e.g. simpleserial-aes, basic-passwdcheck) folder.&lt;br /&gt;
&lt;br /&gt;
* Atmel AVR-GCC standalone - see [http://www.atmel.com/tools/atmelavrtoolchainforwindows.aspx Atmel avr-gcc standalone] (registration required)&lt;br /&gt;
* WinAVR. Last release - 2010, see [https://sourceforge.net/projects/winavr/files/latest/download?source=typ_redirect WinAVR Page] (no registration required)&lt;br /&gt;
&lt;br /&gt;
To build the code, follow these steps:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
 &amp;lt;li&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; to the project directory with the firmware source (.c) and makefile, and run &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;pre&amp;gt;cd c:\chipwhisperer\hardware\victims\firmware\&amp;lt;project dir&amp;gt;&lt;br /&gt;
make PLATFORM=CW303 CRYPTO_TARGET=AVRCRYPTOLIB&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;If this is successful, you'll see an output like the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;[[File:Avr-build-ok.png|image]]&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;If instead you get an error something like &amp;lt;code&amp;gt;make: *** No rule to make target `simpleserial.elf', needed by `elf'.  Stop.&amp;lt;/code&amp;gt;, this means a required file was missing.&amp;lt;/p&amp;gt;&lt;br /&gt;
 &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;li&amp;gt; &lt;br /&gt;
  The compiled firmware file you will use to program the target will have the format &amp;lt;code&amp;gt;&amp;lt;sourcefile name&amp;gt;-CW303.hex&amp;lt;/code&amp;gt;, where the &amp;lt;&amp;gt; part will change based on the project.&lt;br /&gt;
 &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fheubach</name></author>	</entry>

	</feed>