cancel
Showing results for 
Search instead for 
Did you mean: 

Cosmic compiler and STM8L052R8 error

CS Kim
Associate II
Posted on January 25, 2018 at 11:06

Hello, I'm using STM8L052R8(64KBytes ROM, 4KBytes RAM) and cosmic compiler.

I can see as below.

#error clnk Debug\dm5xx_stm8l.lkf:14336 (C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\lib\libm.sm8)fmul.o: section boundary crossing (.text:00d5)

The command: 'clnk -l'C:\Program Files (x86)\COSMIC\FSE_Compilers\Lib' -o Debug\dm5xx_stm8l.sm8 -mDebug\dm5xx_stm8l.map Debug\dm5xx_stm8l.lkf ' has failed, the returned value is: 1

exit code=1.

What can I do?.....

5 REPLIES 5
luca239955_stm1_st
Senior II
Posted on January 25, 2018 at 14:22

Hello,

library functions cannot be linked across the 0xFFFF border: add some code to your application so that the libraries will be 'pushed' to a higher address and the problem will go away.

Regards,

Luca

CS Kim
Associate II
Posted on January 26, 2018 at 04:32

Hi, Luca.

Thanks for your help.

I'm studying now 'CXSTM8_UserGuide.pdf' file, to find how I can 'pushed' to a higher address.

Maybe it need some times for me.

Anyway thnks so much.

CS Kim
Associate II
Posted on January 26, 2018 at 13:17

Hi, Luca.

I'm using Cosmic compiler ( one year free license ), then it is limited 32KBytes.

Is it right?

I can see below message about the Cosmic compiler in ST site.

'Cosmic's toolchain for the STM8 family is part of a complete and uniform product line incorporating over 20 years of innovative design and development. Cosmic tools for STM8, 32K Special Edition limited to 32K bytes of code, one year free license available at Cosmic. '

B.R.

Posted on January 26, 2018 at 17:07

Hello,

it was limited to 32kb, but since almost two years there is no limitation anymore.

Anyway, the error you see is not related to any limit in the toolchain (even if you were using an old version, the error message would be completly different), but to what I wrote in my first answer.

Regards,

Luca

CS Kim
Associate II
Posted on February 02, 2018 at 08:26

Hi, everyone.

Can anyone tell me about that how I can use over 32KBytes area?

Which library file do I need modify?

From some day I can use over 32KBytes area.

I cannot see any error message at compile.

I only open and close without modification some library files.

So I checked updated date and time about all library files.

But I cannot see recent date and time.

I don't know how I can use above 32KBytes over area.

It's very strange thing.

B.R.