Topic : LinkSize error if over 36KB in linking although internal flash is 64KB

Forum : ST7/STM8

Original Post
Post Information Post
January 19, 2010 - 11:08am
Guest

Hello All.

I found some error that Linker in Ride7 can not link object files if total size is over 32KB although its internal flash size is 64KB(Part name is STM8S207C8)

To my surprise, the temporary coutermeasure to resolve this issue is to reallocate files order in the project explorer window of the main program RIDE7 which affects the Link order in the link time I guess. Whenever we modify source codes, we are now reallocating the file order there to try to avoid "over size link error" but sometimes it works and sometimes it does not

I would like to attach workspaces and files in this article but I can't do because they are the secret of the customer. Please help me to resolve this issue and let me know if you have any question further.

Thanks and best regards

Jun.

Replies
Post Information Post
+1
0
-1
January 19, 2010 - 2:23pm
Raisonance Support Team

Hi Jun,

Simple question: Did your customer select "LARGE" memory model?
If not, the code will remain in the 0000-FFFFh address range, hence cannot be bigger than 32KB (as Flash starts at address 8000h).

Can you check this?

If you cannot send a full project for reproducing the problem, can you send the linker .map file? This should help us understand what happens.

Regards,
Bruno