![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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.. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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 ========================= |
||
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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! |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |