Go to Post Elevator speeches too - everyone should have one. - Swan217 [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 08-02-2006, 16:21
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Out of space?

We are having a strange problem when uploading our code. It almost seems like we are out of space, but we do not really have much code written. Mostly we've used the camera code (although it is the "bells and whistles" version) and the gyro code.

The code compiles and runs fine, but then we might add something simple like a new printf() and then when uploading the yellow light will stay on and the terminal will show a hex dump.

We are going to start paring out some whistles (but hopefully leave the bells).

Is this definitely an oversize indication? One of our coders noticed this in camera.map:

Program Memory Usage
Start End
--------- ---------
0x000800 0x007f3f
30528 out of 132120 program addresses used, program memory utilization is 23%


Is there another more restrictive limitation somewhere? How do we determine if our generated hexfile is out of bounds?
  #2   Spotlight this post!  
Unread 08-02-2006, 16:28
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Out of space?

Quote:
Originally Posted by tux
Is there another more restrictive limitation somewhere? How do we determine if our generated hexfile is out of bounds?
Are you using the most current version of the IFI Loader, v 1.1.0?
  #3   Spotlight this post!  
Unread 08-02-2006, 16:32
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Out of space?

> Are you using the most current version of the IFI Loader, v 1.1.0?

Yes.
  #4   Spotlight this post!  
Unread 08-02-2006, 16:36
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Out of space?

<EDIT>I just saw that you included this in your post....I glazed over it thinking it was a signature</EDIT>


In your project directory should be a .map file. If you open it with a text editor you can find out how much memory you're actually using. Look for the section that looks like this
Code:
                              Program Memory Usage 
                               Start         End      
                           ---------   ---------      
                            0x000800    0x0050a7      
18600 out of 132120 program addresses used, program memory utilization is 14%
  #5   Spotlight this post!  
Unread 08-02-2006, 16:47
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Out of space?

> you can find out how much memory you're actually using

>> 30528 out of 132120 program addresses used, program memory utilization is 23%

So as long as this number is not 100% we're definitely not having a space problem?

Is there a document that tells about those hex dumps?

Any other ideas what might cause these symptoms?
  #6   Spotlight this post!  
Unread 08-02-2006, 16:57
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Out of space?

Quote:
Originally Posted by tux
> you can find out how much memory you're actually using

>> 30528 out of 132120 program addresses used, program memory utilization is 23%

So as long as this number is not 100% we're definitely not having a space problem?
You're not having a program space problem. You're probably not having a data memory problem, either, since IIRC the compiler catches that one.

Odd, since Team 95's current code is just about as large (basically the stripped camera code, adc, gyro, encoder, custom PWM driver code, and a bunch of routines that use trig functions), and we haven't had problems. Are you *sure* you're using 1.1.0?

Last edited by kaszeta : 08-02-2006 at 17:01.
  #7   Spotlight this post!  
Unread 08-02-2006, 17:00
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Out of space?

Quote:
Originally Posted by tux
One of our coders noticed this in camera.map:

Code:
Program Memory Usage 
                               Start         End      
                           ---------   ---------      
                            0x000800    0x007f3f      
            30528 out of 132120 program addresses used, program memory utilization is 23%
This message all but clinches it for me that you are NOT using IFI Loader, v 1.1.0.

This year's robot controller has 4 times the memory of last year's, and 1.1.0 is the first version that supports the new improved RC. It was not released until January 26th. (There was a subsequent re-release on February 7 which I think was to address installation problems experienced by some people.) BE ESPECIALLY CAREFUL THAT YOU'RE NOT USING V 1.0.10, since it is so easy to conflate the two.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #8   Spotlight this post!  
Unread 08-02-2006, 18:28
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Out of space?

> This message all but clinches it for me that you are NOT using IFI Loader, v 1.1.0.

Well.... I know that we have upgraded IFI Loader twice already. Once going to 1.0.12 and then again to 1.1.0, but I will (triple) check tomorrow when I get back to the lab.

"""
Program Memory Usage
Start End
--------- ---------
0x000800 0x007f3f
30528 out of 132120 program addresses used, program memory utilization is 23%
"""


Isn't this message generated by mcc18 and not by IFI Loader? How could this message indicate a problem with using the wrong Loader?
  #9   Spotlight this post!  
Unread 08-02-2006, 18:58
Tureyhall Tureyhall is offline
Registered User
AKA: Thomas Hall
FRC #0668 (Apes Of Wrath)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2004
Location: San Jose
Posts: 40
Tureyhall will become famous soon enoughTureyhall will become famous soon enough
Re: Out of space?

if it compiles, the problem HAS to be the IFI Loader. everything else is DONE when it finishes compiling. IFI Loader doesn't call mcc18.
__________________
/*Nerd Camouflage*/

2005 SVR - 668+1072+840 - Semifinalists.
2006 SVR - 668+1280+1693 - Finalists.
2007 SVR - 668+604+624 - Quarter-finalists, Xerox Creativity Award, two highest scores (290-2, 128-0) at SVR.
2007 Nat's - TBA.
  #10   Spotlight this post!  
Unread 08-02-2006, 19:00
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Out of space?

Quote:
Originally Posted by tux
Isn't this message generated by mcc18 and not by IFI Loader? How could this message indicate a problem with using the wrong Loader?
This message is produced by mplink.exe, which KNOWS about the extra memory that the PIC18F8722 has. The older ifi_loader DOESN'T know about it, and ralphs when it gets too full.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #11   Spotlight this post!  
Unread 08-02-2006, 20:10
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Out of space?

>> 30528 out of 132120 program addresses used, program memory utilization is 23%

> This message all but clinches it for me that you are NOT using IFI Loader, v 1.1.0.

> The older ifi_loader DOESN'T know about it, and ralphs when it gets too full.


So you're saying that since the new one allows 4 times as much space and ours is failing at about 1/4th full it is almost certainly a Loader problem. Makes sense.

I'm starting to wonder if we have some kind of a mixed IFI Loader install. I remember having trouble uninstalling the old version to install the new one. I am almost certain that going to "About" shows 1.1.0, but maybe there is an old .dll lingering and causing trouble.

Hopefully a full re-install of IFI Loader will solve the trouble. Thanks for your help.
  #12   Spotlight this post!  
Unread 08-02-2006, 23:17
Chriszuma's Avatar
Chriszuma Chriszuma is offline
Jack of all trades
AKA: Chris Hammond
FRC #0068 (Truck Town Thunder)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Clarkston, MI
Posts: 290
Chriszuma is just really niceChriszuma is just really niceChriszuma is just really niceChriszuma is just really nice
Send a message via AIM to Chriszuma
Re: Out of space?

Yeah, if you just install the new IFI_LOADER over top of the old one, the old one sticks around and it's really easy (at least it was for me) to run the wrong one.
__________________
2006 T3 World Tour: Great Lakes - Waterloo - Palmetto - IRI
2006 Awards: Motorola Quality - RadioShack Innovation in Control

My website: http://zuma.phire.org/
Truck Town Thunder's website: http://trucktownthunder.com/
  #13   Spotlight this post!  
Unread 09-02-2006, 11:49
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Out of space?

Quote:
Originally Posted by Chriszuma
Yeah, if you just install the new IFI_LOADER over top of the old one, the old one sticks around and it's really easy (at least it was for me) to run the wrong one.
I've never had that problem (with ifi_loader.) My guess is that you must have installed the new one in a different directory, and then invoked the old loader using an old shortcut.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #14   Spotlight this post!  
Unread 09-02-2006, 22:40
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Out of space?

OK. It is working now. Definitely a Loader problem.


> Yeah, if you just install the new IFI_LOADER over top of
> the old one, the old one sticks around and it's really easy
> (at least it was for me) to run the wrong one.


I finally gave up trying to uninstall IFI Loader. Installing without uninstalling does not work.

Luckily, we are able to just run the .exe from the expanded zipfile.

Thanks for your help!
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
NASA's Return to Flight Mission July 13! Rich Wong NASA Discussion 82 09-08-2005 08:15
See ISS and Space Shuttle Discovery With Your Own Eyes! geo Chit-Chat 3 05-08-2005 15:09
St. Louis anyone? Jeremy_Mc Regional Competitions 8 07-02-2003 12:06
Slightly humorous story about global warming & space explor. archiver 2001 3 24-06-2002 04:01
KSC Results archiver 2000 2 23-06-2002 22:19


All times are GMT -5. The time now is 22:15.

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