Topic 2, Part 2 - CPA on Hardware AES Implementation
SCOPETYPE = ‘OPENADC’
PLATFORM = ‘CW308_STM32F4’
CRYPTO_TARGET = ‘HWAES’
%%bash -s “$PLATFORM” “$CRYPTO_TARGET”
cd …/…/…/firmware/mcu/simpleserial-aes
make PLATFORM=$1 CRYPTO_TARGET=$2
Blockquote …/./hal/Makefile.hal:310: *** Missing fw-extra submodule. See GitHub - newaetech/chipwhisperer-fw-extra: Firmware files for extra firmware targets. Stop.
CalledProcessError Traceback (most recent call last)
Cell In[4], line 1
----> 1 get_ipython().run_cell_magic(‘bash’, ‘-s “$PLATFORM” “$CRYPTO_TARGET”’, ‘cd …/…/…/firmware/mcu/simpleserial-aes\nmake PLATFORM=$1 CRYPTO_TARGET=$2\n’)
File B:\ChipWhisperer5_70_V2\cw\home\portable\WPy64-31080\python-3.10.8.amd64\lib\site-packages\IPython\core\interactiveshell.py:2422, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
2420 with self.builtin_trap:
2421 args = (magic_arg_s, cell)
→ 2422 result = fn(*args, **kwargs)
2423 return result
File B:\ChipWhisperer5_70_V2\cw\home\portable\WPy64-31080\python-3.10.8.amd64\lib\site-packages\IPython\core\magics\script.py:153, in ScriptMagics._make_script_magic..named_script_magic(line, cell)
151 else:
152 line = script
→ 153 return self.shebang(line, cell)
File B:\ChipWhisperer5_70_V2\cw\home\portable\WPy64-31080\python-3.10.8.amd64\lib\site-packages\IPython\core\magics\script.py:305, in ScriptMagics.shebang(self, line, cell)
300 if args.raise_error and p.returncode != 0:
301 # If we get here and p.returncode is still None, we must have
302 # killed it but not yet seen its return code. We don’t wait for it,
303 # in case it’s stuck in uninterruptible sleep. -9 = SIGKILL
304 rc = p.returncode or -9
→ 305 raise CalledProcessError(rc, cell)
CalledProcessError: Command ‘b’cd …/…/…/firmware/mcu/simpleserial-aes\nmake PLATFORM=$1 CRYPTO_TARGET=$2\n’’ returned non-zero exit status 2.
Blockquote
Something like this… please note that for some reason it looks in the directory GitHub - newaetech/chipwhisperer-fw-extra: Firmware files for extra firmware targets. to which, naturally, I don’t have access… approximately the same messages if I try to compile examples from Topic 2, Part 2 - CPA on Hardware AES Implementation
Building for platform CW308_STM32F4 with CRYPTO_TARGET=HWAES
…/simpleserial/Makefile.simpleserial:24: *** Invalid SimpleSerial version: HWAES; allowed verions:
±--------±-------------+
| Version | SS_VER value |
±--------±-------------+
| V1.0 | SS_VER_1_0 |
| V1.1 | SS_VER_1_1 |
| V2.1 | SS_VER_2_1 |
±--------±-------------+
. Stop.