I can not use more space than 51% 16f88 rom. What should I do ?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Fri Aug 17, 2012 4:27 am
Next time first try to help yourself:
- Surf to the Google website.
- Type in exactly:
Quote:
site:ccsinfo.com/forum "out of ROM"
Most common problem is that the PIC16 uses bank switching to address memory in pages. Each function you write has to fit in such a page. When a function is too big it won't fit and you get the 'out of memory' error even when the total number of available bytes is sufficiently large.
Solution is to split your large function(s) into smaller functions. Additional bonus is that your program will be easier to maintain as people tend to have a memory span for understanding only functions up to about 50 lines.
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