Closed dzid26 closed 1 year ago
Hello dzid26, I finally found the time to try your modification proposals. Flashing with stm8flash.exe does not work, I have this error:
Press any key to flash ... (Ctl + C to stop) stm8flash -c stlinkv2 -p stm8s105? 6 -w ../../bin/main.ihx Determine FLASH area libusb: error [init_device] device '\. \ USB # VID_145F & PID_01D3 & MI_01 # 7 & 617E18A & 0 & 0001' is no longer connected! Due to its file extension (or lack thereof), "../../bin/main.ihx" is considered as INTEL HEX format! 30957 bytes at 0x8000 ... Tries exceeded make: *** [flash] Error 127 Flashing error !!
Isn't it better to use STVP_CmdLine.exe with Windows and stm8flash.exe with Linux only?
libusb: error [init_device] device '\. \ USB # VID_145F & PID_01D3 & MI_01 # 7 & 617E18A & 0 & 0001' is no longer connected!
Did the USB get disconnected somehow? I am on Windows and stm8flash.exe works completely fine for me - every time.
Maybe the difference comes from the programmer? I can't find your vid/pid. https://devicehunt.com/view/type/usb/vendor/145F/device/01D3
Mine this cheap one https://devicehunt.com/view/type/usb/vendor/0483/device/3748
updated with ST-LINK Utility.
Hello,
Confirmed to be working on MacOS.
I run make
to build the ihx file.
Then make flash
to deploy on the TSDZ2 through ST-Link.
Everything went fluently.
Hi dzid26, I really enjoyed your work, and merged it, however for flashing with windows I decided to use STVP_CmdLine.exe. I have two STlink-V2 clones like the ones in the photo, with STVP_CmdLine they both work, with stm8flash they don't. Regardless of the cause, I don't want to cause discomfort to others as well. Can you check if everything is ok? Thank you.