cancel
Showing results for 
Search instead for 
Did you mean: 

Cosmic compiler Error

kavitashah8907
Associate II
Posted on November 18, 2015 at 12:34

Thank you Luca,

   As per your reply we already change the workspace toolset Rootpath as follows:

   

   

''C:\Program Files\COSMIC\32K_Compilers\CXSTM8''

but I can't understand the meaning of

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

so please explain above in detail.

Thanks

1 REPLY 1
luca239955_stm1_st
Senior II
Posted on November 19, 2015 at 18:34

Hello,

the linker file is a text file that is given as input to the linker and specifies (mainly, but not only) at what addresses to place the code and variables of your application.

When using STVD (or the latest versions of IDEA), the linker file is generated automatically based on the microcontroller chosen, so some users do not know much about it because it is 'transparent' for them, but the linker file contains very important information and limitations that could result in the error message you have seen.

For example, if your linker file contains a line like

+seg .text -b 0x8080 -m 0x2000

(for whatever reason: maybe someone modified it manually or STVD generated it automatically for a micro with 8k of memory and then no one told it that you are now working with a bigger micro)

that tells the linker that the maximum size of the code if 8k, and if your application grows bigger than that you will receive the message ''.text size overflow'' that you have seen.

Regards,

Luca