Also, I just noticed that it says NACK during 0x2 but when I first ran it (without verbose) I got
[auxxoconnd1m1 10:35] ~/projects/Espruino >python scripts/stm32loader.py -p /dev/cu.usbserial -evw ./espruino_1v70_hystm32_24_ve.bin
Reading data from ./espruino_1v70_hystm32_24_ve.bin
Bootloader version 0x22
Chip id 0x414, STM32F1, performance, high-density
Traceback (most recent call last):
File "scripts/stm32loader.py", line 579, in <module>
cmd.cmdEraseMemory()
File "scripts/stm32loader.py", line 242, in cmdEraseMemory
if self.cmdGeneric(0x43):
File "scripts/stm32loader.py", line 137, in cmdGeneric
return self._wait_for_ack(hex(cmd))
File "scripts/stm32loader.py", line 98, in _wait_for_ack
raise CmdException("Chip replied with a NACK during %s" % info)
__main__.CmdException: Chip replied with a NACK during 0x43
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Also, I just noticed that it says NACK during 0x2 but when I first ran it (without verbose) I got
I can't reproduce it though.