Changes

Building/Programming the XMEGA Target
=== Building/Programming the XMEGA Target ===
As described in [[Installing ChipWhisperer]], you'll need to configure the AVR-GCC compiler. Assuming you have this setup, you can run <code>make</code> in the directory <code>chipwhisperer\hardware\victims\firmware\xmegasimpleserial-serialaes</code>. Before doing that, which edit the <code>makefile</code> to select the CW301 XMEGA target. This is done by uncommenting the "CW301_XMEGA" platform define as follows: <pre>#Multi-Target Board, AVR Device (ATMega328P)#PLATFORM = CW301_AVR #Multi-Target Board, XMEGA DevicePLATFORM = CW301_XMEGA #CW-Lite XMEGA Target Device (XMEGA128D4)#PLATFORM = CW303 #NOTDUINO Kit (ATMega328P)#PLATFORM = CW304</pre> Running <pre>make</pre> should give you an output like thisindicating the Multi-Target board was used:
<pre>Size after:
AVR Memory Usage
----------------
Device: atxmega16a4atxmega128a3
Program: 4572 3100 bytes (222.32% Full)
(.text + .data + .bootloader)
Data: 369 352 bytes (184.03% Full)
(.data + .bss + .noinit)
 
 
Built for platform Multi-Target Board, XMEGA Target
-------- end --------</pre>
 
Using either AVRStudio or AVRDude, program the XMega16A4 device (it is connected to the programmer built into the ChipWhisperer) with the resulting simpleserial.hex file.
Approved_users, bureaucrat, administrator
1,956
edits