PA_SPA_2-RSA_on_XMEGA_8bit

I am trying this example and getting error on following code:

SCOPETYPE = ‘OPENADC’
PLATFORM = ‘CWLITEARM’
CRYPTO_TARGET = ‘AVRCRYPTOLIB’

%%sh -s “$PLATFORM” “$CRYPTO_TARGET”
cd …/…/hardware/victims/firmware/simpleserial-rsa
make PLATFORM=$1 CRYPTO_TARGET=$2

Error:

SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
make[1]: ‘.dep’ is up to date.
SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
.
Welcome to another exciting ChipWhisperer target build!!
arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

.
Compiling:
simpleserial-rsa.c …Done!
.
Compiling:
simpleserial-rsa-xmega.c …Done!
.
Compiling:
simpleserial-rsa-arm.c: In function ‘get_pt’:
simpleserial-rsa-arm.c:415:1: warning: control reaches end of non-void function [-Wreturn-type]
415 | }
| ^
simpleserial-rsa-arm.c …Done!
.
Compiling:
…/./simpleserial/simpleserial.c …Done!
.
Compiling:
…/./hal/stm32f3/stm32f3_hal.c …Done!
.
Compiling:
…/./hal/stm32f3/stm32f3_hal_lowlevel.c …Done!
.
Compiling:
…/./hal/stm32f3/stm32f3_sysmem.c …Done!
.
Compiling:
…/./crypto/avrcryptolib//rsa/rsa_basic.c:27: warning: “DEBUG” redefined
27 | #define DEBUG 0
|
: note: this is the location of the previous definition
…/./crypto/avrcryptolib//rsa/rsa_basic.c …Done!
.

Compiling:
…/./crypto/avrcryptolib//bigint/bigint.c:41:10: fatal error: avr/io.h: No such file or directory
41 | #include <avr/io.h>
| ^~~~~~~~~~
compilation terminated.
make[1]: *** […/./Makefile.inc:495: objdir-CWLITEARM/bigint.o] Error 1
make: *** […/./Makefile.inc:338: all] Error 2
…/./crypto/avrcryptolib//bigint/bigint.c …
CalledProcessError Traceback (most recent call last)
Cell In[24], line 1
----> 1 get_ipython().run_cell_magic(‘sh’, ‘-s “$PLATFORM” “$CRYPTO_TARGET”’, ‘cd …/…/hardware/victims/firmware/simpleserial-rsa\nmake PLATFORM=$1 CRYPTO_TARGET=$2\n’)

File C:\Users\MYPC~1\CHIPWH~1\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 C:\Users\MYPC~1\CHIPWH~1\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 C:\Users\MYPC~1\CHIPWH~1\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 …/…/hardware/victims/firmware/simpleserial-rsa\nmake PLATFORM=$1 CRYPTO_TARGET=$2\n’’ returned non-zero exit status 2.