Closed ghost closed 8 years ago
additional info:
today i tried using STVP to read. STVP says this chip is protected. after erased using STVP(windoze in a virtualbox), stm8flash (both linux and osx) can flash the chip again.
guess we can narrow down to opt page programming.
Hello! You have to write opt space with two bytes at minimum: [0][1] = [byte][negation of byte].
oh, thanks, I didn't know that!
but the ROP has only one byte.
anyway i'll try later.
Yes, but each option byte in stm8s003 is saved as a pair: b and ^b in next cell.
oh, sorry~ I understood the RM0016 the wrong way. should write a byte other than 0xAA @0x4800 to disable ROP! Thanks~
_$ echo "00" | xxd -r -p >ROP_CLEAR.bin $ stm8flash -c stlinkv2 -p stm8s105?4 -s opt -w ROPCLEAR.bin
Hi. I got ROP protected stm8s105s4 chip in e-bike controller and would like dump it's entire content (flash, eeprom and option memory). Is it 100% sure that doing above trick will result in a lost of original flash memory ?
to flash a protected STM8S003F3, using single byte 0x55 file ROP_CLEAR.bin to erase ROP:
(very strange, erased flash should reads ffffff) Now the MCU really is not running old program, but it cannot be flashed
erase it again
repeat erase and read, readout data stuck in this 000000 and 717171 loop.
same issue on ubuntu 15.10 and OS X 10.11.2