I just executed tutorial code.
However, I failed to program simpleserial-base code on STM32F4.
import chipwhisperer as cw
scope = cw.scope()
scope.clock.clkgen_freq = 8E6
cw.program_target(scope, cw.programmers.STM32FProgrammer, “…/chipwhisperer-develop/hardware/victims/firmware/simpleserial-base/simpleserial-base-CW308_STM32F4.hex”)
scope.clock.clkgen_freq = 7.37E6
CmdException: Can’t read port or timeout (Traceback (most recent call last):
File “C:\Users\JongHyeok Lee\anaconda3\lib\site-packages\chipwhisperer\hardware\naeusb\programmer_stm32fserial.py”, line 304, in _wait_for_ask
ask = self.sp.read(1)
IndexError: list index out of range
). Target didn’t respond when an ack was expected.
How can I fix it?
Note: When XMEGA is connected, programming work well.