Forum: µC & Digital Electronics STM8S Discovery board, Code::Blocks and SDCC

von rumpelrausch (Guest)

Attached files:

Rate this post
0 useful
not useful
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.

: Edited by Admin
von rumpelrausch (Guest)

Rate this post
-1 useful
not useful
This blog entry describes in detail how to configure Code::Blocks to run 
with SDCC and STM's toolchain:


von Matteo (Guest)

Rate this post
0 useful
not useful
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 
I only bought the 1$ "chinese cheap" board + STlinkV2 dongle.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.