Closed schneidersoft closed 1 year ago
I tried this with two ST-Link/v2 attached (and ST original external one, and an integrated one from the STM8AF board of the STM8A-Discovery).
Oddly, the serial number changes between the first and second invokation of stm8flash (but I see the same problem with master):
root@notebook6:/home/philipp/stm8flash# ./stm8flash -c stlinkv2 -w /home/philipp/sdcc-trunk/sdcc-extra/historygraphs/dhrystone-stm8-speed-13900/image.ihx -p stm8af5288 Determine FLASH area WARNING: More than one programmer found but no serial number given. Programmer 1 will be used: Programmer 1: STMicroelectronics STM32 STLink, Serial Number:513F6B06493F50535320163F Programmer 2: STMicroelectronics STM32 STLink, Serial Number:303030303030303030303031 STLink: v2, JTAG: v16, SWIM: v4, VID: 8304, PID: 4837 SWIM error 0x09 root@notebook6:/home/philipp/stm8flash# ./stm8flash -c stlinkv2 -w /home/philipp/sdcc-trunk/sdcc-extra/historygraphs/dhrystone-stm8-speed-13900/image.ihx -p stm8af5288 Determine FLASH area WARNING: More than one programmer found but no serial number given. Programmer 1 will be used: Programmer 1: STMicroelectronics STM32 STLink, Serial Number:303030303030303030303031 Programmer 2: STMicroelectronics STM32 STLink, Serial Number:303030303030303030303031 STLink: v2, JTAG: v16, SWIM: v4, VID: 8304, PID: 4837 SWIM error 0x09
see #133 #135 The serial number is not converted correctly when it contains a '\0' character.