cancel
Showing results for 
Search instead for 
Did you mean: 

segment .bss size overflow

KSag
Associate II

I no longer compile the code successfully. I got the following error:

#error clnk Debug\most_software.lkf:1 segment .bss size overflow (5649)

 The command: "clnk -l"C:\Program Files (x86)\COSMIC\FSE_Compilers\Lib" 

Does anybody know how can I solve this issue. I am using STM8S208 microcontoller and programming environment is STVD.

2 REPLIES 2
KSag
Associate II

#overflow #memory-usage #segment-overlap #memory-overflow

Urgent Help needed!

Simon Peacock
Associate II

I am using Cosmic C, but should be the same issue.

I think this is a 'bug' in the linker.. it would seem that if you follow segment after segment, each one takes the attribute of the previous(?) or the mere fact it starts in .bsct range (i.e. page0) it gets limited to bsct address range i.e. 0 - 0xFF.

Try changing the linker file (*.lkf) line to:

+seg .bss -b 0x100 -n .bss

You will need to uncheck "use target specific linker file" as well to ensure its not overridden.

This solved the same issue in my program.

Simon