sudo apt-get install libusb-1.0-0-dev texinfo openocdDownloaded from st.com
Downloaded from sourceforge.
tar -xjf ./<SDCC archive>
cd sdcc
sudo cp -r * /usr/localBuilded from source.
git clone https://github.com/vdudouyt/stm8flash.git
cd stm8flash
make
sudo make installDownloaded from https://stm8-binutils-gdb.sourceforge.io/
./patch_binutils.sh
./configure_binutils.sh
cd binutils-2.30
make
sudo make installst-info --probest-flash --debug read dummy.file 0 256stm8flash -c stlinkv2 -p stm8l152?6 -wecho "00 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > reset.bin
stm8flash -c stlinkv2 -p stm8l152?6 -s opt -w reset.binstm8flash -c stlinkv2 -p stm8l152?6 -w <program hex>openocd -f interface/stlink-dap.cfg -f target/stm8l152.cfg -c "init" -c "reset init"stm8-gdb <file elf> --tui