cancel
Showing results for 
Search instead for 
Did you mean: 

Cosmic compiler Error

kavitashah8907
Associate II
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.
4 REPLIES 4
luca239955_stm1_st
Senior II
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

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

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

Posted on March 22, 2017 at 09:07

hi

I have installed the latest version only, cxstm8_FSE_stm32_32K I'm using