Lab 2_1A - Instruction Power Differences (MAIN)

When we try out the Multiply or Addition operation and to do that we made the below changes in the simpleserial-base.c code but we are getting the below warning.Though the graph is getting generated, but unable to understand if the output is correct and we are going in the right direction. 


Just changes this part of the code in - simpleserial-base.c and nothing else,

uint8_t get_pt(uint8_t* pt, uint8_t len)

{/*********************************** 
Start user-specific code here. 
*/trigger_high();

volatile long int A = 0x2BAA;
A *= 2;
A *= 2;
A *= 2;
A *= 2;
A *= 2;

A *= 2;
A *= 2;
A *= 2;
A *= 2;
A *= 2;

A *= 2;
A *= 2;
A *= 2;
A *= 2;
A *= 2;

A *= 2;
A *= 2;
A *= 2;
A *= 2;
A *= 2;
//16 hex bytes held in 'pt' were sent
//from the computer. Store your response
//back into 'pt', which will send 16 bytes
//back to computer. Can ignore of course if
//not needed

trigger_low();
// End user-specific code here.
	
/******************************** */
//simpleserial_put('r',sizeof(A), pt);
return 0x00;

}



(ChipWhisperer Target WARNING|File SimpleSerial.py:454) Unexpected start to command: z

Also the graph generated for Multiply operation and Add operation is same.
I am not sure if that’s how it should be or should i see any deference ?

  1. ‘z’ is how the target acknowledges commands. The warning indicates that it’s being received at an unexpected time. Resetting the target and/or attempting the capture again usually resolves this.
  2. As noted in the notebook, “Depending on your target, there might not be much difference here. You may want to plot both traces on the same plot”; do you not see any differences at all? The differences may be quite small, but they should be consistently there. One of the goals of this lab is to help you acquire a sense of what these differences look like. You can also run the “SIMULATED” version of this lab, where you will get our pre-recorded traces, to see what it should look like (keeping in mind that this can vary greatly between different targets).