I bought a ready cable from eco cycles (st-link + connector to speed sensor)
I'm on linux. I can make a backup of existing firmware just fine, but when trying to clear eeprom or flash I only get
SWIM error 0x04
SWIM error 0x05
I have tried the remove protection step, and converting to binary format. According to this wiki: Flash the firmware on TSDZ2
Any ideas?
Example command output:
If I click compile & flash in java configurator it saves the config.h but nothing else seems to happen
I'm on linux. I can make a backup of existing firmware just fine, but when trying to clear eeprom or flash I only get
SWIM error 0x04
SWIM error 0x05
I have tried the remove protection step, and converting to binary format. According to this wiki: Flash the firmware on TSDZ2
Any ideas?
Example command output:
Code:
stm8flash -c stlinkv2 -p "stm8s105?6" -w src/controller/data_empty.ihx 255 ✘
Determine FLASH area
STLink: v2, JTAG: v29, SWIM: v7, VID: 8304, PID: 4837
Due to its file extension (or lack thereof), "src/controller/data_empty.ihx" is considered as INTEL HEX format!
Address 4000 is out of range at line 1
Code:
stm8flash -c stlinkv2 -p "stm8s105?6" -w releases/TSDZ2-20.1C.2-2-initialflash.hex
Determine FLASH area
STLink: v2, JTAG: v29, SWIM: v7, VID: 8304, PID: 4837
Due to its file extension (or lack thereof), "releases/TSDZ2-20.1C.2-2-initialflash.hex" is considered as INTEL HEX format!
30310 bytes at 0x8000... SWIM error 0x05
Code:
stm8flash -c stlinkv2 -p "stm8s105?6" -w releases/TSDZ2-20.1C.2-2-initialflash.hex.bin
Determine FLASH area
STLink: v2, JTAG: v29, SWIM: v7, VID: 8304, PID: 4837
Due to its file extension (or lack thereof), "releases/TSDZ2-20.1C.2-2-initialflash.hex.bin" is considered as RAW BINARY format!
30310 bytes at 0x8000... SWIM error 0x04
Code:
echo "00 00 ff 20 df 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > option_bytes_pwm_n_channels_enabled.bin
stm8flash -c stlinkv2 -p "stm8s105?6" -s opt -w option_bytes_pwm_n_channels_enabled.bin
Determine OPT area
STLink: v2, JTAG: v29, SWIM: v7, VID: 8304, PID: 4837
Due to its file extension (or lack thereof), "option_bytes_pwm_n_channels_enabled.bin" is considered as RAW BINARY format!
15 bytes at 0x4800... SWIM error 0x05
If I click compile & flash in java configurator it saves the config.h but nothing else seems to happen
Last edited: