STM8S Discovery board, Code::Blocks and SDCC

Guest #3565915
Development for the low-cost board "STM8S Discovery" using free IDE and 
compiler is possible!

After experimenting with Eclipse I ended up with Code::Blocks. For the 
time being SDCC is probably the only open source compiler capable of 
building stm8 code.

The installation procedure and some supporting files are included in the 
attached zip file. In lack of a proper license agreement for STM's 
"Standard Peripheral Library" I cannot freely publish the whole SPL 
source code; You will have to download it on your own from STM. Just 
extract the inc and src folders and follow the instructions included in 
the attached zip file.
Attached files:
Guest
I also tried ASM and C with different ide.
The SDCC + stm8flash solution is the easiest to setup on linux and osx. 
The STVD + Cosmic on the other hand gives you all the power of ST debug 
tools.
I only bought the 1$ "chinese cheap" board + STlinkV2 dongle.

Reply

A question of your own? This thread is over 12 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.