square / pylink

Python Library for device debugging/programming via J-Link
https://pylink.readthedocs.io/en/latest/
Other
334 stars 125 forks source link

Unlocking STM32L0 #191

Open witc opened 5 months ago

witc commented 5 months ago

Hi, I would like to unlock/erase locked STM32L0. When I call a standard erase, it doesn't work. However, when I run for example J-Flash Lite and select erase chip, it reliably deletes everything. Could this function be implemented? What commands does that button call?

image

Thank you. Jan.

hkpeprah commented 5 months ago

You could implement it as part of the unlock(); see here. Behaviour would have to be implemented for unlocking the STM32; likely using the CoreSight APIs.