cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S Discovery Examples don't work with Raisonance

st3
Associate II
Posted on December 08, 2009 at 07:02

STM8S Discovery Examples don't work with Raisonance

6 REPLIES 6
st3
Associate II
Posted on May 17, 2011 at 15:06

Ref: the STM8S Discovery Examples:

http://www.st.com/stonline/products/support/micro/files/um0834.zip

None of the example projects - ADC, PWM, or Discovery - contains anything in the 'Raisonance' project folder.

Opening the .stw file from the 'Cosmic' project folder selects 'Cosmic' as the toolset - even when Cosmic is not present on the PC!

If the toolset is changed to 'Raisonance', all of the projects fail to build!

They all fail to build because none of them can find 'stm8s.h'

The problem seems to be that STVD has nowhere to specify project-specific include paths - it only seems possible to specify them relative to the Toolset installation folder!! :|

Are these Projects actually supposed to work with Raisonance at all?

If not, then why is there a Raisonance folder provided?

Why is this not mentioned in the Discovery user manual?

st3
Associate II
Posted on May 17, 2011 at 15:06

Quote:

Are these Projects actually supposed to work with Raisonance at all?

A little more digging shows that they are quite obviously not intended to work with Raisonance at all! :|

Quote:

If not, then why is there a Raisonance folder provided?

It makes no sense: the examples are entirely Cosmic-specific - there is no point at all in providing any Raisonance folder!

Quote:

Why is this not mentioned in the Discovery user manual?

OK, it is mentioned:

Quote:

3.1 STM8S standard firmware library

... All these examples are provided with workspace and project definition files for STVD and Cosmic C compiler to allow loading and compiling them easily into you development environment.

That's on p15; but pretty much all of the preceding 14 pages have been giving the impression that everything is all completely interchangeable & compatible between Raisonance and Cosmic - but that's complete nonsense, as Raisonance & Cosmic use entirely different & incompatible syntax extensions!! :|

See:

http://www.st.com/mcu/forums-cat-8230-27.html

st3
Associate II
Posted on May 17, 2011 at 15:06

Quote:

They all fail to build because none of them can find 'stm8s.h'

The problem seems to be that STVD has nowhere to specify project-specific include paths

OK, I've found where to set that now.

But it still leaves the problem that none of the examples is compatible with Raisonance at all - they are all entirely Cosmic-specific.

Posted on May 17, 2011 at 15:06

Hi all,

The Raisonance is not yet supported in the STM8 touch sensing libraries, but a new release should correct this very soon.

Note that there is an application note on the Raisonance Web site that documents how to port Cosmic applications to Raisonance. It's mostly a matter of syntax, so the changes are easy. Only the inline assembly parts have to be rewritten a little bit so that it works, but the project is not difficult to port to Raisonance.

Adding the inlcude directories to the project is easy as well (once you understand how the ST libraries are structured ;^)

Regards,

Bruno

[ This message was edited by: bruno.richard on 07-12-2009 14:47 ]

st3
Associate II
Posted on May 17, 2011 at 15:06

Quote:

The Raisonance is not yet supported in the STM8 touch sensing libraries, but a new release should correct this very soon.

Is that coming from ST, or Raisonance?

Quote:

Note that there is an application note on the Raisonance Web site that documents how to port Cosmic applications to Raisonance.

Indeed - see:

http://raisonance-forum.xsalto.com/viewtopic.php?id=2762

and:

http://www.st.com/mcu/forums-cat-8230-27.html

Quote:

It's mostly a matter of syntax, so the changes are easy. Only the inline assembly parts have to be rewritten a little bit

But the current code uses Cosmic's #pragma section, and says this is ''very important'' - what is the Raisonance equivalent?

Or does Raisonance ''just do it'' automatically?

Quote:

Adding the inlcude directories to the project is easy as well (once you understand how the ST libraries are structured ;^)

It wasn't the structure of the libraries - it was spotting how to set the include paths!

One question on that: the default project uses relative paths - where does Raisonance need these to be relative to?

st3
Associate II
Posted on May 17, 2011 at 15:06

Is it just me, or are the last 3 posts all squashed-up against the right-hand margin??