As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com.

Difference between revisions of "CW303 XMEGA Target/Programming"

From ChipWhisperer Wiki
Jump to: navigation, search
(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)
 
Line 1: Line 1:
= Programming the XMEGA =
+
== 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.
 
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 ==
+
=== Using GUI Tools ===
 
<ol>
 
<ol>
 
  <li>
 
  <li>
Line 15: Line 15:
 
</ol>
 
</ol>
  
== Python Scripting ==
+
=== Python Scripting ===
 
Anything surrounded by < and > is user and project specific and needs to be changed.
 
Anything surrounded by < and > is user and project specific and needs to be changed.
 
<syntaxhighlight lang=python>
 
<syntaxhighlight lang=python>

Latest revision as of 06:52, 19 April 2018

Programming the XMEGA

To program the device you need to have completed the Communication, and the Compiling sections. The firmware source files can be found in their directories under the chipwhisperer/hardware/victims/firmware/ directory.

Using GUI Tools

  1. From the Tools menu item select CW-Lite XMEGA Programmer

    Tools menu XMEGA programmer.png

  2. The Find button is used to choose the firmware file (.hex) to flash onto the device

    The Check Signature button resets the device and asks for its signature, this is printed to the screen

    The Erase/Program/Verify FLASH button erases, programs the device and then verifies the programmed firmware.

    XMEGA programmer.png

Python Scripting

Anything surrounded by < and > is user and project specific and needs to be changed.

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()