Topic: STM8S-Discovery Raisonance compiler w/STVD?

I wrote about the STM8S-Discovery kit a while back (http://www.drdobbs.com/blog/archives/20 … ent_k.html). So not that I don't have enough PIC/AVR/ARM/SX/etc. etc. etc. kits, but I figured for under $10 it would be fun to check out.

I did the license steps to get the 32K ride license. I also downloads STVD from ST because -- correct me if I'm wrong -- Ride won't program/debug through the ST-Link on this board.

I was pleased that STVD figured out where the toolchain was. But apparently when launched from STVD it doesn't know it is licensed. I hit a 1K limit trying to run through the STVD Raisonance tutorial.

Is there a way to make it figure that out? Ride 7 tells me I have Rkit-STM8-Lite Suite. But apparently Ride7 is somehow letting the software know it has a valid license key. STVD isn't.

And yes, I could just compile to hex and then use STVP, but that won't let me debug, just download. I think.

Al W
DDJ (http://www.ddj.com/embedded)

Re: STM8S-Discovery Raisonance compiler w/STVD?

Mmmmh looks strange...

The limitation is NOT related to Ride7/STVD but to the tools themselves (compiler/assembler/linker).

However, what Ride7 reports may not be accurate, the latest version does not recognize properly the 32KB extension but 16KB.

Can you tell us your OS version, STVD version, and share a screenshot of the "Help/About" dialog from Ride7? We will try to see if we can understand what happens.


As a workaround, you can use Ride7 to develop, and STVD to program/debug your device. Not as comfortable, but at least you can experience Ride7 while developing.

Regards,
Bruno

Bruno Richard, PhD.
RAISONANCE - 17, avenue Jean Kuntzmann - F-38330 Montbonnot St Martin - FRANCE
There are 10 types of people in the world: Those who understand binary, and those who don't.

Re: STM8S-Discovery Raisonance compiler w/STVD?

Thanks for the reply.

OS is XP SP3 (well, running in a VM under Linux, but still XP SP3)

4.1.5 is the STVD version number.

About Ride 7 says: Copyright 1995-2009...
Licensed to Al Williams
DDJ

Ride 7: 7.28.10.0075 Full functional, no serializaton needed 2010/06/04
RKit-STM8 for Ride 7 2.28.10.0092 RKit STM8 - Lite Suite  2010/06/04

Expanding that out has the same version for compiler/linker and compressor. The compiler and linker both say Lite (16kb code limited) and the compressor says Evaluation (no result saving)

I had read that Ride 7 reports 16k even with the 32k license, so I'm not worried about that.

Compiling the stop light demo from STM (yes, I know I have to change the device, and I understand there may be more changes, but I'm not getting that far yet) gives me:


----------- Project tutorial - Raisonance - Configuration Debug -------------

Compiling timer.c...
rcstm8 timer.c OBJECT(Debug\timer.o) PIN("C:\Program Files\Raisonance\Ride\inc\ST7") PIN("C:\Program Files\Raisonance\Ride\inc")  WRV(0) ST7STACKSET0 DEBUG DGC(page0) DLC(page0) ST7SET  OT(0) PR(Debug\timer.lst) CD CO SB LAOB
RCSTM8 COMPILER V2.28.10.092 Evaluation (1 Kb code limited)
Copyright (c) Raisonance S.A.S. 1987-2010. All rights reserved.


RCSTM8 COMPILATION COMPLETE. 0 WARNING, 0 ERROR


Running ST7 linker
rlstm8 "Debug\timer.o" TO(Debug\tutorial.aof) LIBPATH("C:\Program Files\Raisonance\Ride\Lib\ST7")  DEBUGLINES DEBUGPUBLICS DEBUGSYMBOLS PR(Debug\tutorial.map)  DATASTART(0x80) RAMSIZE(0x80) CODESTART(0xfa00) CODESIZE(0x600) STACKTOP(0x100) STACKSIZE(0x40)
LINKER/LOCATOR RLST7 V2.28.10.092 Evaluation (1 Kb code limited)
Copyright (c) Raisonance S.A.S. 1987-2010. All rights reserved.



***FATAL ERROR 246 : MAXIMUM OBJECT SIZE REACHED

RLST7 ABORTED
The command: "rlstm8 "Debug\timer.o" TO(Debug\tutorial.aof) LIBPATH("C:\Program Files\Raisonance\Ride\Lib\ST7")  DEBUGLINES DEBUGPUBLICS DEBUGSYMBOLS PR(Debug\tutorial.map)  DATASTART(0x80) RAMSIZE(0x80) CODESTART(0xfa00) CODESIZE(0x600) STACKTOP(0x100) STACKSIZE(0x40) " has failed, the returned value is: 1
exit code=1.

tutorial.elf - 2 error(s), 0 warning(s)

Re: STM8S-Discovery Raisonance compiler w/STVD?

Hi Al (quite a famous name from THE Dr Dobbs Journal!)

Quoting the Ride7 release notes:

 A. Supported Configurations/Platforms

        Raisonance tool sets and Ride7 operate on Windows Vista (including
        64-bits) and Windows XP. Other versions of Windows, including
        Windows 2000 and Windows Server, are not supported.

I guess it's time to buy a new PC. Your OS is not supported under a Linux virtual box, which seems to cause this discrepancy between STVD and Ride7.
Can you try to open Ride7, navigate to the <Ride7>Examples\STM8\C\Whetstone\ directory and build the project? If it does, then it's a good indication that STVD does NOT support XP with our tools.

Regards,
Bruno

Bruno Richard, PhD.
RAISONANCE - 17, avenue Jean Kuntzmann - F-38330 Montbonnot St Martin - FRANCE
There are 10 types of people in the world: Those who understand binary, and those who don't.

Re: STM8S-Discovery Raisonance compiler w/STVD?

Thanks for the reply. I'm not sure what you mean, though. The release note says "... and Windows XP." And I am running Windows XP (service pack 3). As far as I can tell, Ride7 is working fine. Its just the command line tools that are not finding their license.

Re: STM8S-Discovery Raisonance compiler w/STVD?

Whoops. Operator error (that is to say, my fault). I thought I had changed the processor type to an ST8M in the project settings (in STVD) but apparently I didn't hit the "select" button so I was still building ST7 code and, of course, I don't have the 32k license for that. Changing the CPU to the right family did the trick.

Thanks for the help!

Re: STM8S-Discovery Raisonance compiler w/STVD?

Hi,

Just to clarify, here is the complete list of supported OSes for Ride and RLink:
XP32, Vista32, Vista64, Win732, Win764.

That means XP64 and Win2000 are not supported.

I guess Bruno did not read your post correctly.

Of course if you use STVP/STVD, this list must be "AND'ed" with the list of OSes supported by the ST tools.

Best Regards,

Vincent

Re: STM8S-Discovery Raisonance compiler w/STVD?

I've got similar problem. The STM8 compiler could be registered only in administrative mode.
So I did and now I can use the compiler only in administrative mode, which is inconvenient.

Moreover, RIDE reports

administrator: 32 kb
user: 1 kb

STVP/STVD reports

administrator: 32 kb
user: 1 kb

Starting compiler from the command line
administrator: 1 kb
user: 1 kb

Something is wrong...