Skip to content

plambs/stm8_skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

-------------------------
/*/     Compiling     /*/
-------------------------

1) To genrate developpement environnement
	./gen_env.sh

	Note: After the checkout you shall buil stm8flash and sdcc

2) Compil stm8flash
	cd stm8flash && make

3) Compil src
	cd src
	make

4) To flash stm8
	cd src
	make flash

-------------------------
/*/  Troubleshooting  /*/
-------------------------

#Unprotect rom
$ echo "00" | xxd -r -p >ROP_CLEAR.bin
$ stm8flash -c stlinkv2 -p stm8s103f3 -s opt -w ROP_CLEAR.bin 

#Factory default:
echo "00 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > factory_defaults.bin
stm8flash -c stlinkv2 -p stm8s103f3 -s opt -w factory_defaults.bin

#Flash device by hand:
stm8flash -c stlinkv2 -p stm8s103f3 -w blinky.ihx





About

skeleton of stm8 project with blink led

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published