STM8S208

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Valio
Posts: 1
Joined: Wed Jan 02, 2013 4:09 pm

STM8S208

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM8S208

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM8S208

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM8S208

Post 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
Post Reply