When trying to burn a program onto a P16F690 chip, the error message: Linker Error: Not enough ROM main, appears
How shall I overcome this problem?
Thanks in advance!
Linker error: Not enough ROM main
Re: Linker error: Not enough ROM main
Hi,thespacewizard wrote:When trying to burn a program onto a P16F690 chip, the error message: Linker Error: Not enough ROM main, appears
How shall I overcome this problem?
Thanks in advance!
I also get the same error when I cross the 50% of ROM used. Is this a limitation of the compiler?
MIke
-
- mikroElektronika team
- Posts: 265
- Joined: 25 Nov 2008 09:09
Thanks for this Tip. (and to answer rmteo, this issue occurs in both demo and paid version)goran.marinkovic wrote:Hi,
Please read carefully ,,PIC Specifics" topic in help section of your compiler.
And especially pay attention on PIC16 specifics.
Regards
Apparently what I am seeing is the "no single routine should exceed one page (2,000 instructions)" limitation. When I look at the asm output of the compiler, I see that my program is right at 2000 lines of assembly code.
However I'm a bit confused with the Help section suggestion to break the routine into several chunks. Can you point me to the right direction to do this?
Thanks,
Mike
If you like statistics, then it's 1/4 of program space available for main in processors with 8 kwords ROM .mwcook wrote:So does that mean 1/2 of the ROM space is reserved for procedures and functions while the other half is for the Main rountine?
I think, I'd have to live really long to see a large main that cannot be broken into smaller pieces. Just look closely at your code and I'm sure you'll be able to separate chunks of code that may be exported into procedures and functions - most probably leading to some optimisation, as well.
And if you don't see a way to do it, just post the code here and you'll see what others can do to it .