|
|
View previous topic :: View next topic |
Author |
Message |
ratheeshbr
Joined: 26 Jan 2011 Posts: 31
|
Out of ROM problem |
Posted: Thu Nov 08, 2012 3:41 am |
|
|
Seg 0004-07FF, 0289 left, need 0E0E
Seg 0800-0FFF, 0800 left, need 0E0E
Seg 1000-17FF, 0800 left, need 0E0E
Seg 1800-1FFF, 0800 left, need 0E0E
Seg 0000-0003, 0000 left, need 0E0E
*** Error 71 "D:\Ratheesh\Works\pgms\paneltest.c" Line 930(255,256): Out of ROM, A segment or the program is too large Halting build on first failure as requested.
BUILD FAILED: Thu Nov 08 15:02:59 2012
I am using pic16f877a and CCS compiler version 3.36.
How can I clear this error.
In my code I am declaring a lot of variables. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19546
|
|
Posted: Thu Nov 08, 2012 4:15 am |
|
|
Try searching the forum....
Nothing to do with variables, but the size your individual routines. You need to split the code up.
The ROM on the chip is in pages 0x800 bytes long. You have a routine that is 0xE0E bytes long so it can't be fitted into a page. Everything else in your code is only 0x572 bytes in total, so your are tending to write your code as one big lump, rather than thinking 'routines', and splitting into small pieces that the compiler can then move around.
Best Wishes |
|
|
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|