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/Communication"
From ChipWhisperer Wiki
(→Python scripting) |
(→Setting up Communication) |
||
Line 1: | Line 1: | ||
− | = Setting up Communication = | + | == Setting up Communication == |
Sets up the ability for communication with the target using the ChipWhisperer scope. | Sets up the ability for communication with the target using the ChipWhisperer scope. | ||
− | == Using GUI Scripts == | + | === Using GUI Scripts === |
Within the python console run the following scripts in order: | Within the python console run the following scripts in order: | ||
<ol> | <ol> | ||
Line 7: | Line 7: | ||
<li><code> setup_cwlite_xmega.py </code></li> | <li><code> setup_cwlite_xmega.py </code></li> | ||
</ol> | </ol> | ||
− | == Python scripting == | + | === Python scripting === |
Execute these lines of code within a python console or script: | Execute these lines of code within a python console or script: | ||
<syntaxhighlight lang=python> | <syntaxhighlight lang=python> |
Latest revision as of 06:52, 19 April 2018
Setting up Communication
Sets up the ability for communication with the target using the ChipWhisperer scope.
Using GUI Scripts
Within the python console run the following scripts in order:
connect_cwlite_simpleserial.py
setup_cwlite_xmega.py
Python scripting
Execute these lines of code within a python console or script:
import chipwhisperer as cw
scope = cw.scope()
target = cw.target(scope)
scope.gain.gain = 45
scope.adc.samples = 25000
scope.adc.offset = 0
scope.adc.basic_mode = "rising_edge"
scope.clock.clkgen_freq = 7370000
scope.clock.adc_src = "clkgen_x4"
scope.trigger.triggers = "tio4"
scope.io.tio1 = "serial_rx"
scope.io.tio2 = "serial_tx"
scope.io.hs2 = "clkgen"