Fixed stlinkv2 writing (broken by #b754a32050)