vdudouyt / stm8flash

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

iSerial of programmer gets corrupted after one attempt to write #57

Closed adithyaselv closed 6 years ago

adithyaselv commented 7 years ago

Hi, I have been trying to program multiple boards connected to single pc. I tried to use an additional argument iSerialNumber of the device to distinguish between multiple programmers. But when I run your flash code , the iserial number of the programmer seem to get corrupted after one attempt and I am unable to use that for the next time(I have to plug out the device and plug in again to get correct serial number). If I just try to open and close the usb port using libusb , the number doesn't get corrupted. Does your code access device config parameters somewhere ? or changes it somewhere while writing into STM flash ? Kindly help

lkord commented 6 years ago

@adithyaselv corrupted serial is the issue of stlinkV2 FW. You have to upgrade the FW with STM32 STlink utility. image

adithyaselv commented 6 years ago

wow great thanks