Go to Post Gotta love those free-range robots! Yum! - petek [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-11-2007, 13:18
jimmyrock88 jimmyrock88 is offline
Registered User
no team
 
Join Date: Nov 2007
Location: chicago
Posts: 1
jimmyrock88 is an unknown quantity at this point
Mplink error

hey guys i m gettin this link error:

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

I would guess its because MPLAB doesn't alloy more than 256 bytes ( which is default)

I have also seclected the option "Large Code Model >64Kbytes" and "Large Data Model" from Project->Build Options ->Project.

You think that the chip doesn't have enough memory. Should I change it to PIC184431 (has more memory) from original PIC184331 ?

Here's map file.
Attached Files
File Type: txt motor-control.txt (2.0 KB, 97 views)
  #2   Spotlight this post!  
Unread 14-11-2007, 15:42
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Mplink error

If you are using a large array try doing
rom unsigned int array[256];
putting rom in front will put the variable in the program memory which has a log more space
  #3   Spotlight this post!  
Unread 14-11-2007, 15:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,830
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Mplink error

rom won't help this, the controller doesn't have enough program memory to hold all the code you're trying to shove into it.
The code needs to be trimmed down or you need a processor with more memory.

You can get a very rough idea of how much more didn't get into the space allotted by looking at the Linker command and seeing where printf.o probably fell and what is listed after it.
You could also, as you seem to suggest, select a target PIC that has a lot of memory, then take a look at the MPLAB memory gauge to see how much space it all takes up.

Are you compiling with a particular PIC in mind or don't you care which one is the target?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-11-2007 at 16:12.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
180:Error: syntax error help! seanl Programming 8 04-02-2007 11:31
stupid Array error: Error [1300] stack frame too l Validius Programming 7 27-01-2006 10:53
MPLink Error cloudago Programming 2 01-02-2005 23:00


All times are GMT -5. The time now is 03:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi