458
edits
As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com. |
Changes
Created page with "= Programming the XMEGA = To program the device you need to have completed the Communication, and the CW303 XMEGA Target/Compiling|Compi..."
= Programming the XMEGA =
To program the device you need to have completed the [[CW303 XMEGA Target/Communication|Communication]], and the [[CW303 XMEGA Target/Compiling|Compiling]] sections. The firmware source files can be found in their directories under the <code>chipwhisperer/hardware/victims/firmware/</code> directory.
== Using GUI Tools ==
<ol>
<li>
<p>From the <b>Tools</b> menu item select <b>CW-Lite XMEGA Programmer</b></p>
<p> [[File:tools_menu_XMEGA_programmer.png|200px]] </p>
</li>
<li>
<p>The <b>Find</b> button is used to choose the firmware file (.hex) to flash onto the device</p>
<p>The <b>Check Signature</b> button resets the device and asks for its signature, this is printed to the screen</p>
<p>The <b>Erase/Program/Verify FLASH</b> button erases, programs the device and then verifies the programmed firmware.</p>
<p>[[File:XMEGA_programmer.png|400px]]</p>
</li>
</ol>
== Python Scripting ==
Anything surrounded by < and > is user and project specific and needs to be changed.
<syntaxhighlight lang=python>
from chipwhisperer.capture.api.programmers import XMEGAProgrammer
programmer = XMEGAProgrammer()
programmer.scope = scope
programmer._logging = None
programmer.find()
programmer.erase()
programmer.program("<path to xmega firmware .hex file>", memtype="flash", verify=True)
programmer.close()
</syntaxhighlight>
To program the device you need to have completed the [[CW303 XMEGA Target/Communication|Communication]], and the [[CW303 XMEGA Target/Compiling|Compiling]] sections. The firmware source files can be found in their directories under the <code>chipwhisperer/hardware/victims/firmware/</code> directory.
== Using GUI Tools ==
<ol>
<li>
<p>From the <b>Tools</b> menu item select <b>CW-Lite XMEGA Programmer</b></p>
<p> [[File:tools_menu_XMEGA_programmer.png|200px]] </p>
</li>
<li>
<p>The <b>Find</b> button is used to choose the firmware file (.hex) to flash onto the device</p>
<p>The <b>Check Signature</b> button resets the device and asks for its signature, this is printed to the screen</p>
<p>The <b>Erase/Program/Verify FLASH</b> button erases, programs the device and then verifies the programmed firmware.</p>
<p>[[File:XMEGA_programmer.png|400px]]</p>
</li>
</ol>
== Python Scripting ==
Anything surrounded by < and > is user and project specific and needs to be changed.
<syntaxhighlight lang=python>
from chipwhisperer.capture.api.programmers import XMEGAProgrammer
programmer = XMEGAProgrammer()
programmer.scope = scope
programmer._logging = None
programmer.find()
programmer.erase()
programmer.program("<path to xmega firmware .hex file>", memtype="flash", verify=True)
programmer.close()
</syntaxhighlight>