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 B2 Viewing Instruction Power Differences

208 bytes removed, 20:55, 5 October 2018
Background on Setup (Arm)
=== Background on Setup (Arm) ===
While For the rest of this tutorial can , we'll be performed focusing on any supported targetthe STM32F3, results will vary between targets. which is the microcontroller on the CW303 Arm target (though other targets, for example, have pipelining and much smaller differences in power consumption between instructions compared to should demonstrate the XMEGA targetsame principles). Instead of trying to spot Since the differences ourselvesSTM32F3 is an Arm Cortex M4 device, we'll be using need to refer to the persistence feature of ChipWhisperer Capture to compare two traces. The instructions we'll be focusing on here are <code>nop</code> Cortex M4 Instruction Set and <code>mul</code>the Cortex M4 Instruction Set Summary.
FirstThe first thing we'll do is replace the <code>nop</code> instructions, clear since from it's documentation page we can see the display of the current trace (if you have one): [[File:Clear Displayprocessor may not execute them.png|frameless|336x336px]] NextInstead, enable persistence: [[File:Persistencelet's add some <code>add.w</code> instructions.png|frameless|336x336px]]
Now hit the ''Run 1'' [[File:Capture One Button.PNG|image]] button and capture a single trace. It's recommended that you only capture a single trace. You may also want to change the colour of the next trace to make differentiating them easier:
 
[[File:Set Colour.png|frameless|336x336px]]
You should now have something that looks like this:
 
[[File:B2 cap1.PNG|frameless|1139x1139px]]
==== Swapping NOP and MUL ====
Approved_users, administrator
366
edits

Navigation menu