[Solved]How do I unlock the flash?

Hi, after numerous tries of flashing the unlocker.bin file and manually writing code to unlock the device I am still unable to connect my JTAG device to the photon

23:59:34 : ST-LINK SN : 52FF6D064883524835342487
23:59:34 : ST-LINK Firmware version : V2J23S4
23:59:34 : Connected via SWD.
23:59:34 : SWD Frequency = 1,8 MHz.
23:59:34 : Connection mode : Normal.
23:59:34 : Debug in Low Power mode enabled.
23:59:34 : Device ID:0x411 
23:59:34 : Device family :STM32F2xx
23:59:34 : Can not read memory!
                  Disable Read Out Protection and retry.

Can somebody point me in the right direction? I bought the photon for it’s amazing hardware but I feel limited by not being able to write the firmware from scratch

Cheers!

Update: I was able to unlock the flash by setting the read out protection to 0 using the ST-Link utility :flushed:

2 Likes

I am getting the same error of

23:18:57 : Can not read memory!
Disable Read Out Protection and retry.

Can anybody help me ?

It tells you in the error and is also published in the solved comment above. Set readout protection to 0.