|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: How much memory is there really?
The Linker won't necessarily directly complain about memory over "drafts," so you have to watch it. What you usually get when you run out of space is a link error about not being able to load one of the libraries at the end. As reported by MPLab and the linker you will actual have less memory available to you due to other system overhead. As I recall the MAP file will report ~97% utilization when it is actually full.
We have three types of memory on the RC available to use. See http://www.ifirobotics.com/rc.shtml#Specifications for the PIC18F8722 128,000 bytes program space 3936 bytes variable space (less the PROTECTED, etc. areas listed in 18f8722.lkr) 1024 bytes EEPROM The default is to put variables into the 3936 byte variable space where your code can modify the values while it's running. There is a further limitation on the variable space due to how the linker has the space blocked out. You are only able to declare 256 bytes of variable space in any one MPLAB project file. "rom" puts your stuff into the 128K program space, but you cannot change values placed here as you noted. They are fixed and read-only when your code runs. As you said it is probably the best place for our fixed lookup tables. The EEPROM requires special runtime reads/writes to use, but it is maintained even when your robot power is off. In MPLAB you can also check on your memory utilization via: View -> Memory Usage Gauge Note though that the Program memory is stated in two-byte words, not bytes for some reason. P.S. We've kept our autonomous modes in large arrays in program space since these PIC RCs came out in 2004. Last edited by Mark McLeod : 11-01-2007 at 13:12. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A robotic challenge that's really out there | Richard Wallace | General Forum | 3 | 19-09-2006 20:26 |
| How much does Israel really cost the US tax payer?? | Matt Attallah | Chit-Chat | 9 | 23-07-2006 01:18 |
| Is there really inspiration in teams? | Philip W. | General Forum | 22 | 22-08-2005 11:53 |
| Do teachers really know that there talking about?!? | Erodge | Chit-Chat | 17 | 19-10-2002 00:41 |
| how much is too much on the DRILL MOTORS? | archiver | 2001 | 11 | 23-06-2002 23:53 |