Compiling: New Program.c
in
Lines: 3224
Linking
Writing New Program.COD
Internal Error - Contact CCS => Code 85:54
New Phone Program.c, Line 1659
Does anybody know what this is and how to fix it? The code is getting pretty big and I'm using an 18LF6620 but there's plenty of RAM and ROM left. ( I know this because if I bring down my array sizes a little, it works fine and I'm using about 40% of my RAM )
Any help please??
Al
Joined: 13 Nov 2003 Posts: 28 Location: Belfast
Posted: Fri Feb 13, 2004 6:39 am
I have had a similar experience. The %RAM displayed does not seem to be true reflection of actual RAM used. The solution is as you say to reduce the amount of RAM used. The RAM is the total sum of all variables used in Bytes.
Solutions
======
1. Use lots of functions with Local Variables, this allows RAM to be re-used between functions.
2. Use "short int" for Boolean variables.
3. Reduce complex expressions (If, Case statements and Loops etc)
4. Also it is wortwhile looking at the call tree. This shows the RAM used by each function, allowing you to target functions for RAM reduction. _________________ Alan Murray
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum