vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
403 stars 183 forks source link

verify option bytes with stlinkv2 on stm8s003 #58

Closed BobRyan530 closed 7 years ago

BobRyan530 commented 7 years ago

This process successfully maps TIM2_CH1 to PC5.

[h36sa@boblaptop sdcc-examples-stm8]$ stm8flash -c stlinkv2 -p stm8s003f3 -s opt -r x.bin Determine OPT area Reading 64 bytes at 0x4800... OK Bytes received: 64 [h36sa@boblaptop sdcc-examples-stm8]$ xxd x.bin 00000000: 0000 ff00 ff00 ff00 ff00 ff00 0000 0000 ................ 00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ [h36sa@boblaptop sdcc-examples-stm8]$ hexedit x.bin [h36sa@boblaptop sdcc-examples-stm8]$ xxd x.bin 00000000: 0000 ff01 fe00 ff00 ff00 ff00 0000 0000 ................ 00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ [h36sa@boblaptop sdcc-examples-stm8]$ stm8flash -c stlinkv2 -p stm8s003f3 -s opt -w x.bin Determine OPT area Writing binary file 64 bytes at 0x4800... OK Bytes written: 64