cancel
Showing results for 
Search instead for 
Did you mean: 

which software use for stm8l151f3 controller

shital gosai
Associate
Posted on June 13, 2018 at 10:44

which software use for stm8l151f3 controller in linux(ubuntu)

6 REPLIES 6
Philipp Krause
Senior II
Posted on June 14, 2018 at 15:16

You mean for development for the STM8L151F3?

Basics:

SDCC for the compiler.

stm8flash for putting the program onto the device.

Advanced:

Maybe an IDE (Eclipse or Code::Blocks)?

OpenOCD with a patched GDB for on-device debugging.

Philipp

martonmiklos
Senior
Posted on June 15, 2018 at 10:50

Here you can find a comprehensive description how to setup a toolchaing for STM8 with SDCC:

https://stm8-binutils-gdb.sourceforge.io/

 

If you want to use proper headers you can grab sfr/ddf files from an IAR evaluation version and you can convert them to header files for SDCC with this tool:

https://github.com/martonmiklos/stm8_sfr_converter

 
henry.dick
Senior II
Posted on June 15, 2018 at 14:17

'

which software use for stm8l151f3 controller in linux(ubuntu)'

here is an approach that some (many?) apple embedded programmers do:

1) install an emulation software on apple;

2) install a Windows within it;

3) install a Windows toolchain for your target onto that Windows.

4) start develop for embedded targets on apple!

i'm sure you can replicate that on linux as well.

Posted on June 15, 2018 at 17:50

Apple developer, buys $2000 computer, where $200 was spent on packaging materials, ponders availability of software to get the job done. Me, goes to Walmart grabs $200 laptop.

Do colleges these days not train graduates how to WRITE and USE, assemblers, compilers, linkers, loaders, etc?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 17, 2018 at 12:11

Apple developer, buys $2000 computer, where $200 was spent on packaging materials, ponders availability of software to get the job done

And will suck with things like STVD cannot see the shared Mac folders and so on.

Posted on June 17, 2018 at 15:57

Well, SDCC is the only stm8 compiler that has macOS as an officially supported platform. In general, SDCC has the widest platform support of all compilers for the STM8. However: SDCC support for Solaris and HP-UX is considered unofficial, while AFAIK, Cosmic has official support for these two. Raisonance and IAR, on the other hand support Windows only.

Philipp

P.S.: AFAIK Raisonance and IAR work in a Windows VM on GNU/Linux. I wasn't able to get Raisonance and IAR working on GNU/Linux via wine.