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

Setting up Software for B1

1,307 bytes removed, 21:05, 17 September 2017
no edit summary
Next, open the CW-Capture software. Then perform the following steps:
[[File:01_genericsetupcwsetup_scriptselection.png|image600px]]
# Switch to the ''General SettingsPython Console'' tab.# As the ''Scope Module'', select the ''ChipWhisperer/OpenADC'' optionThe script selection window (2) lists available example scripts. Scroll down to "connect_cwlite_simpleserial.py" and click on it.# As You will see the ''Target Module'', select script contents appear in the ''Simple Serial'' option"Script Preview" window (3). You can either hit the "Run" button or double-click the filename of the script to execute it. Do either of those now.
Next, you'll have The window should change to configure indicate the scope device in use.connect succeeded:
[[File:02_cw1173_scopesetupcwsetup_scriptselection_cwliterun.png|image400px]]
<ol start="4" style="list-style-type: decimal;">
<li>Switch to The console lists the ''exact script that is executed. Note you could have manually executed the script commands line-by-line in this console.</li><li>The "Scope Settings'' tab" and "Target" buttons will show as connected.</li><li>As the ''The Status Bar will show a connection'', select the ''ChipWhisperer Lite'' protocol.</li></ol>
NextNote in previous software versions, this tutorial took you'll have to configure through manual setup. This can still be done (using the target module:GUI), but instead now the API has been made more powerful, so the example configuration script will be used instead.
To do so, simply scroll down and select the "setup_cwlite_xmega_aes.py" file:[[File:03_cw1173_targetsetupcwsetup_scriptselection_xmegaconfig_cwliterun.png|image400px]]
<ol start="6" style="list-style-type: decimal;"><li>Switch to the You''Target Settings'' tab</li><li>As ll nice the ''connection'', select contents of the ''NewAE USB (CWLite/CW1200)'' option</li></ol>script contain the following setup:
[[File:04_connect.png|image]]TODO SCRIPT
<ol start="814" style="list-style-type: decimal;"><li>Press the button labeled ''Master: DIS'', where DIS has a circle around it. If it works, it will switch to green and say ''CON''.</li></ol> [[File:05_connection buttons.png|image]] We will now need to configure the clock to the XMEGA target device. [[File:06_cw1173_freqoutput1.png|image]] <ol start="9" style="list-style-type: decimal;"><li>Switch to the ''Scope Settings'' tab.</li><li><p>Scroll down to the CLKGEN section, and enter the ''Desired Frequency'' as ''7.37 MHz''. Hit <code>&lt;enter&gt;</code> and you should see the multiply and divide settings change. Be careful of the units - you may need to click just on the numbers and enter that. You can also check the frequency settings using the ''Frequency Counter'' - to use this switch the ''Freq Counter Src'' to be ''CLKGEN''. It should read 7.37 MHz. <b><sup>*</sup>If the red ADC Lock Failed LED light is on you may need to click ''Reset ADC DCM''.</b></p><p>We now need to feed this generated clock to an output pin.</p></li></ol> [[File:07_cw1173_freqoutput2.png|image]] <ol start="11" style="list-style-type: decimal;"><li><p>Scroll further down until you find the ''Target HS IO-Out'' function, set this to ''CLKGEN''. The clock is now being sent on the ''Target-IO HS2'' pin, which is used by the XMEGA as the input clock.</p><p>For dumb historical reasons the XMEGA and AVR have opposite TX/RX pinouts (on the original multi-target board, the AVR and XMEGA are designed such they can communicate, which required opposite TX/RX connections). Anyway you now need to switch the IO1 and IO2 functions from default:</p></li></ol> [[File:08_cw1173_txrx.png|image]] <ol start="12" style="list-style-type: decimal;"><li>Change the ''Target IO1'' function to be ''RXD''.</li><li>Change the ''Target IO2'' function to be ''TXD''.</li>
<li><p>You can now program the XMEGA device! To do so, open the XMEGA Programmer from the ''Tools'' menu:</p>
<p>[[File:cw1173_xmegaproga.png|image]]</p></li>
Approved_users, bureaucrat, administrator
1,956
edits

Navigation menu