View Single Post
  #4   Spotlight this post!  
Unread 19-01-2006, 10:00
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,782
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: .hex file too large for 2004 controller?

The two risk areas where we can try to stuff too much are the Program Space and the Data Space. Either one will blow your code out of the figurative water.

90% as reported in the .map file represents full Program Space as far as the user is concerned. The other 10% of that space gets taken up by IFI overhead not covered by the report.

The .map file doesn't have a neat report for the Data Space. You have to check it yourself using the Data Space memory mapping at the end of the .map report. Compare the linked addresses to the blocks open to the user in the .lkr file.
From my notes 1,343 bytes of ram were available to the user after the 2004 default code (IFI, stack, etc), but that has to cover dynamically allocated local function variables as well that won't show up in the linker report.

There are usually some distinctive behaviors that indicate we are trying to stuff too much into the controller, but with the latest version of the IFI_Loader those symptoms may have all changed. I usually take time to experiment and measure the RC limitations, but there's no time yet. Today I'll be at four different schools.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-01-2006 at 10:15.