Page 1 of 1

STM8S208

Posted: Wed Jan 02, 2013 4:38 pm
by Valio
Hallo!

I have STM8208MBT6B chip, so use near STM8S-STM8S105-DISCOVERY-STVD demo project.
so meanwhile the Cosmic32k compiling demo ChibiOS-RT workspace, produced such error :

.....
Compiling ..\..\..\os\ports\cosmic\stm8\chcore.c...
cxstm8 +mods0 -pp -l -i..\demo -i..\..\..\test -i..\..\..\os\hal\include -i..\..\..\os\hal\platforms\stm8s -i..\..\..\boards\st_stm8s_discovery -i..\..\..\os\ports\cosmic\stm8 -i..\..\..\os\kernel\include -i"C:\Program Files\COSMIC\CXSTM8_32K\Hstm8" -i"C:\Documents and Settings\R11\Мои документы\STVD\Library\FWLib\library\inc" -clRelease\ -coRelease\ ..\..\..\os\ports\cosmic\stm8\chcore.c
..\..\..\os\ports\cosmic\stm8\chcore.c:

Running Linker
clnk -l"C:\Program Files\COSMIC\CXSTM8_32K\Lib" -l"C:\Documents and Settings\R11\Мои документы\STVD\Library\FWLib\library\src" -o Release\cosmic.sm8 -mRelease\cosmic.map Release\cosmic.lkf
#error clnk Release\cosmic.lkf:1 segment .ubsct size overflow (1383)
The command: "clnk -l"C:\Program Files\COSMIC\CXSTM8_32K\Lib" -l"C:\Documents and Settings\R11\Мои документы\STVD\Library\FWLib\library\src" -o Release\cosmic.sm8 -mRelease\cosmic.map Release\cosmic.lkf " has failed, the returned value is: 1
exit code=1.


cosmic.elf - 3 error(s), 0 warning(s)




As I understand the section used for uninitialized zero page data is not enough. So as im new in ChibiOS architecture, please help to fix that bug.

Thanks

Re: STM8S208

Posted: Wed Jan 02, 2013 5:02 pm
by Giovanni
Hi,

The Cosmic port is currently unmaintained because Cosmic stopped offering a 32K version of the compiler so I can't test it.

The demo worked last time I was able to compile it and not modified since then. It is possible that newer compiler versions need different settings but I can't tell. You could try using the Raisonance compiler instead, it is still free up 32K if I am not wrong.

Giovanni

Re: STM8S208

Posted: Wed Jan 02, 2013 5:06 pm
by Giovanni
I just checked again, the Cosmic compiler is again available. I will try to reinstall it and make a test if they grant me another year license.

Giovanni

Re: STM8S208

Posted: Sun Jan 06, 2013 11:49 am
by Giovanni
Hi,

I tested the two STVD projects using STVD 4.3.2 and the Cosmic Complier 4.3.9. The projects compile normally for me, not sure what your problem could be.

Giovanni