2010-04-28 10:04 AM
Hi there,
Sorry about this, but I appear unable to get started... I have tried compiling a number of the pre-written software such as the um0884 which should be the RS232 files... But I just cannot compile or build the projects... Ok it's been a few years, so I am a tad embarrassed by all this... Could someone point me in the right direction... I have downloaded the lastest sttoolset, and plan on using this compiler ''Cosmic CxSTM8 32K 4.3.4'' All I want to do is complile a basic programme just to familerise myself with how it all works and dump the file to the development board... Only there seems to be a lot of documentation to wad through, what should I actually be looking at...2010-04-28 02:31 PM
When I try and build the downloaded files I get the following error message: -
----------- Project discover - STM8 Cosmic - Configuration Debug -------------
Removing intermediate files ... Done!
----------- Project discover - STM8 Cosmic - Configuration Debug -------------
Compiling ..\..\src\main.c...
cxstm8 +mods0 +debug -pxp -pp -l -i..\..\..\..\libraries\stm8_touchsensing_driver\inc -i..\..\..\..\libraries\stm8s_stdperiph_driver\inc -i..\..\inc -i''..\..\..\..\..\..\..\..\..\program files\stmicroelectronics\st_toolset\include'' -i..\..\..\includes -i..\..\..\..\stm8sfwlib\fwlib\library\inc -i..\..\..\..\stm8_ts_lib\includes -i''C:\Program Files\COSMIC\CXSTM8_16K\Hstm8'' -clDebug\ -coDebug\ ..\..\src\main.c
#error cpstm8 E:\Program Files\COSMIC\CXSTM8_32K\HSTM8\mods0.h:1 FlexLM incompatible feature
..\..\src\main.c:
The command: ''cxstm8 +mods0 +debug -pxp -pp -l -i..\..\..\..\libraries\stm8_touchsensing_driver\inc -i..\..\..\..\libraries\stm8s_stdperiph_driver\inc -i..\..\inc -i''..\..\..\..\..\..\..\..\..\program files\stmicroelectronics\st_toolset\include'' -i..\..\..\includes -i..\..\..\..\stm8sfwlib\fwlib\library\inc -i..\..\..\..\stm8_ts_lib\includes -i''C:\Program Files\COSMIC\CXSTM8_16K\Hstm8'' -clDebug\ -coDebug\ ..\..\src\main.c'' has failed, the returned value is: 1
exit code=1.
discover.elf - 2 error(s), 0 warning(s)
The license agreemant is there, as I have double checked this after reading one of the other posts... The file I am trying to build is (um0834.zip) or (STM8S-Discovery_dev) so I would have thought that all the files would have been ready for compiling etc...2010-04-28 02:45 PM
After having a read through the STM8 threads it appears that some issues are apparent...
Am I right in thinking that I can no longer work from a seperate folder on the desktop, that it now has to be an integral part of the ST toolset in order for it to to compiled correctly... Only I appear to be getting myself rather confused here...2010-04-29 03:29 AM
Hy Icarus,
Could you give me the number of your STVD version ? I will try to reproduce the problem by my side . Grom2010-04-29 03:47 AM
Looks like it's Version 4.1.5
I have been through the User Manual (UM0834) for the STM8S Discovery as I personally feel something is not set up correctly... But as of yet I can not see where I am going wrong... I've attached the file I am trying to compile... it's the PWM file as shown in the user manual...2010-04-29 04:35 AM
2010-04-29 04:52 AM
Hi Grom,
Thanks for this... But, guess what: ------------ Project set_up - STM8 Cosmic - Configuration Debug -------------
Removing intermediate files ... Done!
----------- Project set_up - STM8 Cosmic - Configuration Debug -------------
Compiling libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c...
cxstm8 -ilibraries\stm8s_stdperiph_driver\inc -iproject\inc +debug -pxp -no -l +mods0 -pp -i''C:\Program Files\COSMIC\CXSTM8_32K\Hstm8'' -clDebug\ -coDebug\ libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c
#error cpstm8 E:\Program Files\COSMIC\CXSTM8_32K\HSTM8\mods0.h:1 FlexLM incompatible feature
libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c:
The command: ''cxstm8 -ilibraries\stm8s_stdperiph_driver\inc -iproject\inc +debug -pxp -no -l +mods0 -pp -i''C:\Program Files\COSMIC\CXSTM8_32K\Hstm8'' -clDebug\ -coDebug\ libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c'' has failed, the returned value is: 1
exit code=1.
set_up.elf - 2 error(s), 0 warning(s)
All that I have done is opened up the My Workspace.stw file in STVD and pressed build (F7) It appears something is not setup correctly here... any idea's what could be causing such an error...2010-04-29 05:03 AM
I've change the compiler path to fit with my environement.
you need to change the compiler path in project>settingsJust replace it by your Cosmic install path : ''E:\Program Files\COSMIC\CXSTM8_32K\''
2010-04-29 05:16 AM
I've changed the settings file to match what I have...
Still getting an error message...2010-04-29 05:35 AM
----------- Project set_up - STM8 Cosmic - Configuration Debug -------------
Removing intermediate files ... Done!
----------- Project set_up - STM8 Cosmic - Configuration Debug -------------
Compiling libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c...
cxstm8 -ilibraries\stm8s_stdperiph_driver\inc -iproject\inc +debug -pxp -no -l +mods0 -pp -i''E:\Program Files\COSMIC\CXSTM8_32K\Hstm8'' -clDebug\ -coDebug\ libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c
#error cpstm8 E:\Program Files\COSMIC\CXSTM8_32K\Hstm8\mods0.h:1 FlexLM incompatible feature
libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c:
The command: ''cxstm8 -ilibraries\stm8s_stdperiph_driver\inc -iproject\inc +debug -pxp -no -l +mods0 -pp -i''E:\Program Files\COSMIC\CXSTM8_32K\Hstm8'' -clDebug\ -coDebug\ libraries\stm8s_stdperiph_driver\src\stm8s_tim2.c'' has failed, the returned value is: 1
exit code=1.
set_up.elf - 2 error(s), 0 warning(s)
I've attached the current version of the file...