output:
Failed to detect chip. Check following:
- Connections and device power.
- Device has valid clock (or remove clock entirely for internal osc).
- On Rev -02 CW308T-STM32Fx boards, BOOT0 is routed to PDIC.
OSError Traceback (most recent call last)
Input In [5], in <cell line: 2>()
1 #cw.program_target(scope, cw.programmers.XMEGAProgrammer, “path/to/firmware.hex”)
----> 2 cw.program_target(scope, cw.programmers.STM32FProgrammer, “../hardware/victims/firmware/simpleserial-base/simpleserial-base-CWLITEARM.hex”)
File ~/work/projects/chipwhisperer/software/chipwhisperer/init.py:126, in program_target(scope, prog_type, fw_path, **kwargs)
124 prog._logging = None
125 prog.open()
→ 126 prog.find()
127 prog.erase()
128 prog.program(fw_path, memtype=“flash”, verify=True)
File ~/work/projects/chipwhisperer/software/chipwhisperer/capture/api/programmers.py:121, in save_and_restore_pins..func_wrapper(self, *args, **kwargs)
119 self.scope.io.nrst = ‘high_z’
120 try:
→ 121 val = func(self, *args, **kwargs)
122 finally:
123 target_logger.debug(‘Restoring pdic, pdid, and nrst pin configuration’)
File ~/work/projects/chipwhisperer/software/chipwhisperer/capture/api/programmers.py:316, in STM32FProgrammer.find(self)
314 stm32f = self.stm32prog()
315 stm32f.scope = self.scope
→ 316 sig, chip = stm32f.find()
File ~/work/projects/chipwhisperer/software/chipwhisperer/hardware/naeusb/programmer_stm32fserial.py:38, in close_on_fail..func_wrapper(self, *args, **kwargs)
3@wr@wrapswrapsps @wraps(func)
36 def func_wrapper(self, *args, **kwargs):
37 try:
—> 38 return func(self, *args, **kwargs)
39 except:
40 self.close_port()
File ~/work/projects/chipwhisperer/software/chipwhisperer/hardware/naeusb/programmer_stm32fserial.py:174, in STM32FSerial.find(self, logfunc)
171 logfunc = print_fun
173 try:
→ 174 self.initChip()
175 except IOError:
176 logfunc("Failed to detect chip. Check following: ")
File ~/work/projects/chipwhisperer/software/chipwhisperer/hardware/naeusb/programmer_stm32fserial.py:38, in close_on_fail..func_wrapper(self, *args, **kwargs)@wraps3@wr@wrapsps @wraps(func)
36 def func_wrapper(self, *args, **kwargs):
37 try:
—> 38 return func(self, *args, **kwargs)
39 except:
40 self.close_port()
File ~/work/projects/chipwhisperer/software/chipwhisperer/hardware/naeusb/programmer_stm32fserial.py:348, in STM32FSerial.initChip(self)
345 fails += 1
347 self.releaseChip()
→ 348 raise IOError(“Could not detect STM32F, check connections, BOOT MODE entry setup”)
OSError: Could not detect STM32F, check connections, BOOT MODE entry setup