pavelrevak / pystlink

Python tool for flashing and debugging STM32 devices using ST-LINK/V2
MIT License
218 stars 59 forks source link

fix for “Error unlocking FLASH” #9

Open ZhouChenghong opened 6 years ago

ZhouChenghong commented 6 years ago

I add a 100ms delay before unlock the flash,and try to unlock the flash again between eraseing and flashing.After that,it work well.

EmbeddedPro commented 5 years ago

This fixed my problem with STM32F0308. Good job!

pavelrevak commented 5 years ago

Thanks for PR, please fixup these small issues.