cryptoadvance / specter-diy

DIY airgapped hardware wallet that uses QR codes for communication with the host
MIT License
440 stars 73 forks source link

Erasing memory #193

Closed citizenanalog closed 2 years ago

citizenanalog commented 2 years ago

I used the Quickstart.md guide to program my STM32F469-DISCO board and that worked fine.

Now I'm trying to reset my development board back to factory defaults and I can't seem to erase memory.

Is there memory overwrite protection you can point me to? I'm using SMT32CubeIDE.

`Memory Programming ... Opening and parsing file: ST-LINK_GDB_server_a13980.srec File : ST-LINK_GDB_server_a13980.srec Size : 64956 Bytes Address : 0x08000000

Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 3] Error: failed to erase memory

Error: failed to erase memory Error! Failed to read target status Debugger connection lost. Shutting down...`

citizenanalog commented 2 years ago

Also using STM32-ST-LINK Utility when connecting to Target:

09:39:01 : ST-LINK SN : 066AFF544949878667143830 09:39:01 : V2J38M27 09:39:01 : Connected via SWD. 09:39:01 : SWD Frequency = 4,0 MHz. 09:39:01 : Connection mode : Normal. 09:39:01 : Debug in Low Power mode enabled. 09:39:01 : Device ID:0x434 09:39:01 : Device family :STM32F469x/F479x 09:39:01 : Can not read memory! Disable Read Out Protection and retry.

citizenanalog commented 2 years ago

SOLVED using STM32-ST-LINK Utility

Target -> Option Bytes -> Unselect all