Thread: Simplest Code
View Single Post
  #11   Spotlight this post!  
Unread 05-11-2004, 11:46
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,855
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: Simplest Code

Quote:
Originally Posted by cibressus53
I had to completly remove the print_lib to get it down to a small enoguh size (35kb). does anyone know the real max size for the hex file?
You can't easily judge by the .hex file size. I can create a .hex file that's 85kb and it fits on the RC just fine.

You know what it does look like though is an IFI_Loader version problem. The original IFI_Loader had a bug that only loaded half the available RC program memory. Check your IFI_Loader version. It should be 1.0.7.

You should use the .map file MPLAB can generate for you to see how much memory your program requires. It tells you exactly how much space your program uses, e.g.,

Code:

Program Memory Usage
Start		 End 
--------- ---------
0x000800	0x000805
0x000808	0x006622
0x300000	0x30000d	 
 
24111 out of 33816 program addresses used, program memory utilization is 71%

Note however that the program memory will be full when it reads 90%, because that last little bit of memory gets used for IFI stuff.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-11-2004 at 11:58.