Skip to main content
Visitor II
November 18, 2015
Question

Cosmic compiler Error

  • November 18, 2015
  • 1 reply
  • 1525 views
Posted on November 18, 2015 at 07:54

Hello,

      We had developed one application using STVD IDE & cosmic compiler with 8k limit, for that we have following error while compile the code.

#error clnk Release\stm8s003.lkf:1 segment .text size overflow (1358)

 The command: ''clnk -l''C:\Program Files\COSMIC\32K_Compilers\CXSTM8\Lib''  -o Release\stm8s003.sm8 Release\stm8s003.lkf '' has failed, the returned value is: 1

exit code=1.

    Now we have cosmic compiler with STM8_STM32_32k license.lic file which is copied into License folder & then compile the code but still we have same error as above 

so please help us & give solution.

Thank You.
    This topic has been closed for replies.

    1 reply

    Visitor II
    November 18, 2015
    Posted on November 18, 2015 at 09:20

    Hello,

    here are some possible explanations for your problem:

    - you are still calling the 8k compiler (although you also installed the 32k version on your computer)

    - your linker file specifies a maximum file for the code (.text segment) of 8k

    - your application is actually bigger than 32k

    Hope it helps.

    Regards,

    Luca

    Visitor II
    March 20, 2017
    Posted on March 20, 2017 at 06:49

    can you please tell me how to overcome this problem.

    I also had the 32k license file

    Visitor II
    March 22, 2017
    Posted on March 22, 2017 at 08:33

    Hi,

    download the latest free version from the Cosmic website that has no (more) code size limit and the problem will go away.

    Regards,

    Luca