$ time stm8flash -c stlinkv2 -p stm8s003f3 -w empty.bin
Determine FLASH area
Writing binary file 6144 bytes at 0x8000... OK
Bytes written: 6144
real 0m2.735s
user 0m0.020s
sys 0m0.000s
Master:
$ time stm8flash -c stlinkv2 -p stm8s003f3 -w empty.bin
Determine FLASH area
Writing binary file 6144 bytes at 0x8000... OK
Bytes written: 6144
real 0m4.124s
user 0m0.000s
sys 0m0.020s
The issue seems to be introduced in b8dcaa1. Also, what is the purpose of usleep(2000) in stlink2_write_ functions? Code uses blocking libusb transfers so I'm not exactly sure why this delay is needed.
Older commit:
Master:
The issue seems to be introduced in b8dcaa1. Also, what is the purpose of
usleep(2000)
instlink2_write_
functions? Code uses blocking libusb transfers so I'm not exactly sure why this delay is needed.