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

Changes

Jump to: navigation, search

CW1173 ChipWhisperer-Lite

3,611 bytes removed, 14:12, 25 January 2017
no edit summary
Note this programmer is fairly simple, and ''does not'' provide all the features of a stand-alone programmer.
{{CollapseStartHeader}}
=== AVR Programmer ===
{{CollapseEndHeader}}
{{CollapseStartContent}}
{{:CW1173_ChipWhisperer-Lite/AVR Programmer}}
{{CollapseEndContent}}
The AVR device programmer requires four connections to the target: RESET, MOSI, MISO, SCK. See [[#20-Pin_Connector]] for details of AVR programming pin connections.
{{CollapseStartHeader}}==== Accessing the Programming =AVR Programmer ==={{CollapseEndHeader}}{{CollapseStartContent}}{{:CW1173_ChipWhisperer-Lite/XMEGA Programmer}}{{CollapseEndContent}}
To access the AVR Programmer, select the "CW-Lite AVR Programmer" from the pull-down Tools menu:
 
[[File:avrprog_menu.png|image]]
 
Which should give you the AVR Programmer Window.
 
==== Clock Source Selection ====
 
Note to use the AVR programmer you may require a valid clock source for the AVR. It is suggested to select one of the setup scripts (such as <code>ChipWhisperer-Lite: AES Simple-Serial on ATMega328P</code>) which will generate a 7.37 MHz clock.
 
Check if the device is found by pressing the &quot;Check Signature&quot; button. The status window will show the detected device based on the signature.
 
[[File:avrprog_sigok.png|image]]
 
If this fails, double-check connections, and ensure the clock source to the AVR is suitable. Note some errors will appear as part of the main window log:
 
[[File:avrprog_fail.png|image]]
 
The default SPI data rate for the programmer is too fast for devices which are running slower than 2 MHz. If programming a device with a clock source slower than 2 MHz, you will need to enable the &quot;Slow Clock Mode&quot;. In &quot;Slow Clock Mode&quot; the entire SAM3U and FPGA clock is changed from 96 MHz to 12 MHz. Note the default fuse bytes for a virgin ATMega328P result in a 1 MHz clock, so you will need to use &quot;slow clock mode&quot; to program the correct fuse bytes, after which point you will not need to use &quot;slow clock mode&quot;.
 
<blockquote>'''note'''
 
The 'slow clock mode' is used to provide a slower SPI clock than would otherwise be possible. When switching into 'slow clock mode' it will cause all DCM blocks in the FPGA to become unlocked. You will need to reset the DCM blocks, or simply restart the CW-Capture software and run the setup script.
</blockquote>
==== Programming the Fuses ====
 
By default the AVR programmer allows you to modify the LOW fuse byte only, as this byte controls the clock source selection. To change the value of the fuse byte:
 
# Press the &quot;Read Fuses&quot; button, and the values should be populated
# Specify the new low fuse value
# Hit &quot;Write Fuses&quot;
 
See [http://eleccelerator.com/fusecalc/fusecalc.php?chip=atmega328p an Online Fuse Calculator] to better understand what the values mean.
 
<blockquote>'''tip'''
 
; If programming a virgin ATMega328P device, the default low-fuse value of <code>62</code> results in the internal
: 8 MHz oscillator being divided down to 1 MHz. Any external clock is ignored.
 
The low fuse byte must be changed to <code>D0</code> to use the external clock provided by the ChipWhisperer toolchain.
</blockquote>
==== Programming the Flash ====
 
Programming the flash is accomplished by selecting the new .hex file in the &quot;Find&quot; menu, and pressing the &quot;Erase/Program/Verify FLASH&quot; button. The &quot;Status&quot; line will show the following information:
 
* File programmed into device
* Time file was last modified (very useful to confirm you are using changed file when doing development)
* Status of verification, and number of bytes programmed/verified
 
[[File:avrprog_progok.png|image]]
 
=== XMEGA Programmer ===
 
The XMEGA device programmer requires only two connections to the target: clock (PDIC) and data (PDID). The PDIC line is usually shared with the RESET pin, and the PDID pin is a specific pin on the XMEGA device. See [[#20-Pin_Connector]] for details of XMEGA programming pin connections.
 
[[File:xmegaprog_main.png|image]]
{{CollapseStartHeader}}
== Using Glitch Port ==
{{CollapseEndHeader}}
{{CollapseStartContent}}
{{:CW1173_ChipWhisperer-Lite/Glitch Port}}
{{CollapseEndContent}}
The &quot;GLITCH&quot; port is used for voltage glitching. It's connected to two MOSFET elements, as the following figure shows: <blockquote>[[File:glitch_lp_hp.png|image]]</blockquote>The CW1173 glitch output can be commanded to turn on either of those MOSFETs via the &quot;Glitch Out Enable&quot; checkboxes: <blockquote>[[File:glitch_gui.png|image]]</blockquote>Be careful using this feature, as you don't want to short the MOSFETs for too long. It's also possible to damage the ChipWhisperer-Lite by burning these MOSFETs up if used incorrectly. See tutorial #A3 for more information on using this feature.{{CollapseStartHeader}}
== Using Measure Port ==
{{CollapseEndHeader}}
{{CollapseStartContent}}
The &quot;MEASURE&quot; port is the input to the low-noise amplifier and ADC.
{{CollapseEndContent}}
The &quot;MEASURE&quot; port is the input to the low-noise amplifier and ADC.
{{CollapseStartHeader}}
== 20-Pin Connector ==
{{CollapseEndHeader}}
{{CollapseStartContent}}
The pinout is as follows:
| Not Connected on ChipWhisperer-Lite.
|}
 
{{CollapseEndContent}}
== 8-Pin SmartCard Connector ==
Approved_users, bureaucrat, administrator
1,956
edits

Navigation menu