Closed BobRyan530 closed 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
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