Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 29th May 2008, 04:32 AM   (permalink)
Default C18 linker error.. Help please..

Hi,
I tried to compile my code in C18 but have a linker error. Below is the error.

MPLINK 4.13, Linker
Copyright (c) 2007 Microchip Technology Inc.
Error - section '.udata_MainDemo.o' can not fit the section. Section '.udata_MainDemo.o' length=0x0000011b
Errors : 1

I use alot of printf("anystring") and maybe that is the thing that caused it. Please advice how I can solve it..
Thanks..

By the way, the memory is not even half full..
MrNobody is offline  
Reply With Quote
Old 29th May 2008, 05:07 AM   (permalink)
Default

Quote:
Originally Posted by MrNobody View Post
Error - section '.udata_MainDemo.o' can not fit the section. Section '.udata_MainDemo.o' length=0x0000011b
Errors : 1

I use alot of printf("anystring") and maybe that is the thing that caused it. Please advice how I can solve it..
Thanks..

By the way, the memory is not even half full..
Wild guess - you have some array or other thing (printf?) using more RAM than there is in one bank (length 0x11b). You can probably only fit 0x100 in a bank.

If this is the case, you'll have to rewrite so it either is smaller, or automatically moves to another storage space in the next bank.

I could be wrong. I use BoostC. I've dabbled in PICC and C18, but am not as familiar with them as BoostC.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Reply With Quote
Old 29th May 2008, 10:16 AM   (permalink)
Default

Thanks..
My printf data is only 16 bytes in size but I have lots of them. However, I do not store it in variable. I just directly type printf("anystring"); How can I make it smaller or move it to other banks..?

Please advice.. Thanks.
MrNobody is offline  
Reply With Quote
Old 29th May 2008, 12:04 PM   (permalink)
Default C18 Link error

The message is very general. There are a lot of error sources for it. Another is, the Linker will include the section a second time. Search your directories for this specific .o module and delete the name from the Project Window, if it is defined in "object files".
Is only a suggestion. Good luck!
ESchemainda is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
PIC error. apple9 Micro Controllers 1 6th April 2008 09:00 AM
dsPIC linker script for asm futz Micro Controllers 20 10th March 2008 08:19 AM
PCB error Electronics4you General Electronics Chat 4 20th October 2006 08:29 PM
Error 302 Six-Sixteen Micro Controllers 7 17th February 2004 04:07 PM
Need Assistance , Another Verify Error At OOOOh! Error MindShaper Micro Controllers 0 4th September 2003 02:05 PM



All times are GMT. The time now is 11:42 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.