Hello!
I have a similar problem when running:
%%bash
cd …/firmware/mcu/simpleserial-base/
make PLATFORM= CRYPTO_TARGET=NONE
SS_VER set to SS_VER_1_1
…/./hal/Makefile.hal:303: *** Invalid or empty PLATFORM: . Known platforms:
±------------------------------------------------------+
| PLATFORM | DESCRIPTION |
+=======================================================+
| MOST COMMON TARGETS |
+=======================================================+
±------------------------------------------------------+
| CWLITEARM | CW-Lite Arm (Alias for CW308_STM32F3) |
±------------------------------------------------------+
| CWNANO | CW-Lite Nano (STM32F0_NANO) |
±------------------------------------------------------+
| CWHUSKY | CW-Husky (Alias for CW312_SAM4S) |
±------------------------------------------------------+
+=======================================================+
| AVR/XMEGA Targets (8-Bit RISC) |
+=======================================================+
±------------------------------------------------------+
| CWLITEXMEGA | CW-Lite XMEGA (Alias for CW303) |
±------------------------------------------------------+
| CW301_AVR | Multi-Target Board, AVR Target |
±------------------------------------------------------+
| CW303 | XMEGA Target (CWLite), Also works |
| | for CW308T-XMEGA |
±------------------------------------------------------+
| CW304 | ATMega328P (NOTDUINO), Also works |
| | for CW308T-AVR |
±------------------------------------------------------+
| CW308_MEGARF | ATMega2564RFR2 Target for CW308T |
±------------------------------------------------------+
+=======================================================+
- ARM Cortex-M Targets (Generic) |
+=======================================================+
±------------------------------------------------------+
| CWLITEARM | CW-Lite Arm (Alias for CW308_STM32F3) |
±------------------------------------------------------+
| CWNANO | CW-Lite Nano (STM32F0_NANO) |
±------------------------------------------------------+
| CWHUSKY | CW-Husky (Alias for CW312_SAM4S) |
±------------------------------------------------------+
| CW308_STM32F0 | CW308T-STM32F0 (ST Micro STM32F0) |
±------------------------------------------------------+
| CW308_STM32F1 | CW308T-STM32F1 (ST Micro STM32F1) |
±------------------------------------------------------+
| CW308_STM32F2 | CW308T-STM32F2 (ST Micro STM32F2) |
±------------------------------------------------------+
| CW308_STM32F3 | CW308T-STM32F3 (ST Micro STM32F3) |
±------------------------------------------------------+
| CW308_STM32F4 | CW308T-STM32F4 (ST Micro STM32F405) |
±------------------------------------------------------+
+=======================================================+
- ARM Cortex-M Targets (Support CRYPTO_TARGET=HWAES) |
+=======================================================+
±------------------------------------------------------+
| CW308_CC2538 | CW308T-CC2538 (TI CC2538) |
±------------------------------------------------------+
| CW308_ | CW308T-EFM32GG11 |
| EFM32GG11 | (Silicon Labs Giant Gecko) |
±------------------------------------------------------+
| CW308_ | CW-Lite EFM32TG11B |
| EFM32TG11B | (Silicon Labs Tiny Geko) |
±------------------------------------------------------+
| CW308_ | CW308T-EFR32MG21 (A version without |
| EFR32MG21A | ‘secure vault’) |
±------------------------------------------------------+
| CW308_ | CW308T-IMXRT1062 (iMX RT1062) |
| IMXRT1062 | NXP “Cross-Over” Microcontroller |
±------------------------------------------------------+
| CW308_K24F | CW308T-K24F (NXP Kinetis K24F) |
±------------------------------------------------------+
| CW308_K82F | CW308T-K82F (NXP Kinetis K82F) |
±------------------------------------------------------+
| CW308_LPC55S6X| CW308T-LPC55S69 (NXP LPC55S69) |
±------------------------------------------------------+
| CW308_NRF52 | CW308T-NRF52840 (Nordic Semi) |
±------------------------------------------------------+
| CW308_PSOC62 | CW308T-PSOC62 (Cypress PSOC 62) |
±------------------------------------------------------+
| CW308_SAM4L | CW308T-SAM4L (Atmel SAM4L) |
±------------------------------------------------------+
| CW308_SAML11 | CW-Lite SAML11 (Atmel SAML11) |
±------------------------------------------------------+
| CW308_STM32F2 | CW308T-STM32F2HWC (ST Micro STM32F215)|
±------------------------------------------------------+
| CW308_STM32F4 | CW308T-STM32F4HWC (ST Micro STM32F415)|
±------------------------------------------------------+
| CW308_STM32L4 | CW308T-STM32L4 (ST Micro STM32L443) |
±------------------------------------------------------+
| CW308_STM32L5 | CW308T-STM32L5HWC (ST Micro STM32L562)|
±------------------------------------------------------+
| CW312_SAM4S | CW308T-SAM4S (Microchip SAM4S) |
±------------------------------------------------------+
+=======================================================+
- Other 32-bit Architecture |
+=======================================================+
±------------------------------------------------------+
| CW308_AURIX | CW-Lite AURIX (Infineon TC233A) |
±------------------------------------------------------+
| CW308_FE310 | CW308T-FE310-G002 (RISC-V) |
±------------------------------------------------------+
| CW308_ | CW308T-MPC5676R (NXP MPC5676R) |
| MPC5676R | |
±--------------|---------------------------------------+
| CW308_NEORV32 | CW308/CW312-iCE40 with neorv32 |
| | (RISC-V) soft-core processor. |
±--------------|---------------------------------------+
| CW305_IBEX | CW305 or CW312-A35 with Ibex |
| | (RISC-V) soft-core processor. |
±--------------|---------------------------------------+
Options to define platform:
(1) Run make with PLATFORM specified as follows:
make PLATFORM=CW304
(2) Save a file called Makefile.platform with contents:
PLATFORM=CW304
. Stop.
CalledProcessError Traceback (most recent call last)
Cell In[9], line 1
----> 1 get_ipython().run_cell_magic(‘bash’, ‘’, ‘cd …/firmware/mcu/simpleserial-base/\nmake PLATFORM= CRYPTO_TARGET=NONE\n’)
File ~\ChipWhisperer\cwenv\Lib\site-packages\IPython\core\interactiveshell.py:2542, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
2540 with self.builtin_trap:
2541 args = (magic_arg_s, cell)
→ 2542 result = fn(*args, **kwargs)
2544 # The code below prevents the output from being displayed
2545 # when using magics with decorator @output_can_be_silenced
2546 # when the last Python token in the expression is a ‘;’.
2547 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):
File ~\ChipWhisperer\cwenv\Lib\site-packages\IPython\core\magics\script.py:159, in ScriptMagics._make_script_magic..named_script_magic(line, cell)
157 else:
158 line = script
→ 159 return self.shebang(line, cell)
File ~\ChipWhisperer\cwenv\Lib\site-packages\IPython\core\magics\script.py:336, in ScriptMagics.shebang(self, line, cell)
331 if args.raise_error and p.returncode != 0:
332 # If we get here and p.returncode is still None, we must have
333 # killed it but not yet seen its return code. We don’t wait for it,
334 # in case it’s stuck in uninterruptible sleep. -9 = SIGKILL
335 rc = p.returncode or -9
→ 336 raise CalledProcessError(rc, cell)
CalledProcessError: Command ‘b’cd …/firmware/mcu/simpleserial-base/\nmake PLATFORM= CRYPTO_TARGET=NONE\n’’ returned non-zero exit status 2.
When I run
%%bash
echo $PATH
The output is:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/nicol/ChipWhisperer/cwenv/Scripts:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Aldec/Active-HDL-Student-Edition/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/PuTTY/:/mnt/c/msys64/mingw64/bin:/mnt/c/MinGW/bin:/mnt/c/Program Files/usbipd-win/:/mnt/c/Users/nicol/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/nicol/AppData/Local/Programs/Python/Python310/:/mnt/c/Users/nicol/AppData/Local/Microsoft/WindowsApps:/mnt/c/intelFPGA_pro/21.2/modelsim_ase/win32aloem:/mnt/c/MinGW/bin:/mnt/c/Users/nicol/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/msys64/usr/bin:/mnt/c/avr8-gnu-toolchain-win32_x86_64/bin:/snap/bin
Helppp