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

Tutorial B1 Building a SimpleSerial Project

1,094 bytes added, 15:45, 1 October 2018
no edit summary
|capture hardware = CW-Lite, CW-Lite 2-Part, CW-Pro
|Target Device =
|Target Architecture = XMEGA/ARM/Other
|Hardware Crypto = No
|Purchase Hardware =
<h2> What is SimpleSerial </h2>
[[SimpleSerial]] is the communications protocol used for almost all of the ChipWhisperer demo project. It's a very basic serial protocol which can be easily implemented on most systems. This system communicates using a standard asyncronous asynchronous serial protocol, 38400 baud, 8-N-1.
All messages are sent in ASCII-text, and are normally terminated with a line-feed ('\n'). This allows you to interact with the simpleserial system over a standard terminal emulator.
: This is the response from the system. If data has been encrypted with a 'p' for example, the system will respond with the 'r' sequence automatically. So sending the earlier example means the result of the encryption was <code>cbbd4a2b34f2571758ff6a797e09859d</code>.
<h2> Building the Basic Example </h2>For this example, we'll be working off of <code>simpleserial-base</code> firmware, which by default just echos the 16 bytes we send to the target back to us.{{CollapsibleSection
|intro = === Building for CWLite with XMEGA Target ===
|content= Building for XMEGA}}
<li>Rebuild the example using the <code>make</code> command. Remember you can press the up arrow on the keyboard to get recently typed commands in most OSes.</li></ol>
== Hardware Setup ==
{{CollapsibleSection
|intro = === Completing Tutorial with CW1173 (Lite) With XMEGAHardware Setup ===|content= Completing Tutorial with CW1173CWLite HW Setup}}
{{CollapsibleSection
|intro = === Completing Tutorial with CW1173 CW1200 (LitePro) With ARMHardware Setup ===|content= Completing Tutorial with CW1173 ARMCW1200 HW Setup}}
{{CollapsibleSection
|intro = === Completing Tutorial with CW1173 CW308 (LiteUFO) + UFO Board Hardware Setup ===|content= Completing Tutorial with CW1173 UFO BoardCW308 HW Setup}}
== Programming the Target ==
{{CollapsibleSection
|intro = === Completing Tutorial with CW1200 Programming the XMEGA Target ===|content= Programming XMEGA}} {{CollapsibleSection|intro = === Programming the STM32F3 (ProCW303 Arm) Target ===|content= Completing Tutorial with CW1200Programming Arm}} {{CollapsibleSection|intro = === Programming Other Targets ===|content= Programming Other}} == Completing the Tutorial ==Now that the target has the modified firmware, there's only a few steps left to completing the tutorial. Note that if you've closed ChipWhisperer Capture since programming the device, you'll need to rerun the connect_cwlite_simpleserial.py and target setup scripts:# Open the status monitor under <i>Tools > Encryption Status Monitor</i>.# Resize the monitor window. The monitor will show sent &amp; received data to the target.# Hit the ''Run 1'' button ([[File:Capture One Button.PNG|image|link=http://wiki.newae.com/File:Capture_One_Button.PNG]]). You may have to hit it a few times, as the very first serial data is often lost. You should see data populate in the ''Text Out'' field of the monitor window. Note that each byte of the ''Text In'' is incremented in the ''Text Out'' field.
<h2> Conclusion </h2>
Approved_users, administrator
366
edits

Navigation menu