2018-09-05 05:18 AM
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.
2018-09-05 06:50 AM
#overflow #memory-usage #segment-overlap #memory-overflow
Urgent Help needed!
2018-11-21 03:59 PM
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