vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
401 stars 182 forks source link

proposed fix for stlinkv3 #149

Closed stefaandesmet2003 closed 2 years ago

stefaandesmet2003 commented 2 years ago

Hi, this change addresses problem reported in issue #148 Code submitted earlier with PR #144 introduced a bug in sending the READ_STATUS command. This command was incorrectly sent as a 2-byte packet instead of 16-byte packet. The error is corrected here.

spth commented 2 years ago

Thanks. Looks good to me. I did a quick test writing flash on the integrated ST-Link/V2 of the STM8AF board from the STM8A-Discovery kit, and it looks fine.