not enough ROM space.

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
david.warren
Posts: 3
Joined: 28 Nov 2011 22:43

not enough ROM space.

#1 Post by david.warren » 26 Apr 2012 07:23

Target = 16F1825
Statistics show plenty ROM and RAM.
So why "not enough ROM space" ???

Can anyone help?

If I simply add,

Vdelay_ms(30);

anywhere to the code body I get,

135 342 There is not enough ROM space Controller-Reporting.c


RAM - 393/800 free
ROM - 3116/8191 free

mikroC PRO V.5.0.1

Is this version too old?
Last edited by david.warren on 26 Apr 2012 15:09, edited 1 time in total.

Aquadrox
Posts: 168
Joined: 20 Mar 2012 18:11
Location: France / Gien

Re: not enough ROM space.

#2 Post by Aquadrox » 26 Apr 2012 07:51

Hello,

could you show us your code?

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Re: not enough ROM space.

#3 Post by pwdixon » 26 Apr 2012 09:14

This could be a library problem, have you selected all the libraries you are using in library manager?

a_stankov
Posts: 10
Joined: 10 Dec 2009 18:43
Location: Bulgaria

Re: not enough ROM space.

#4 Post by a_stankov » 26 Apr 2012 12:17

To select only necessary libraries in the library manager is right way. Other variant is your code is really bigger from the MCU programing space.

Regards,
Alex

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: not enough ROM space.

#5 Post by zristic » 26 Apr 2012 14:40

pwdixon wrote:This could be a library problem, have you selected all the libraries you are using in library manager?
It should not matter, only used libraries will occupy the ROM space, not all those "ticked" in the library manager.
There seems to be a large code made by the user, without it there can be only speculation.

melillo
Posts: 44
Joined: 13 Oct 2010 16:41
Location: Montreal, Quebec, Canada
Contact:

Re: not enough ROM space.

#6 Post by melillo » 26 Apr 2012 14:53

zristic wrote:
pwdixon wrote:This could be a library problem, have you selected all the libraries you are using in library manager?
It should not matter, only used libraries will occupy the ROM space, not all those "ticked" in the library manager.
There seems to be a large code made by the user, without it there can be only speculation.
Or maybe an innapropriate #pragma orgall instruction...

Marc

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: not enough ROM space.

#7 Post by zristic » 26 Apr 2012 15:20

david.warren has edited his post, now it is a bit difficult to follow what was written the first time...

david.warren
Posts: 3
Joined: 28 Nov 2011 22:43

Re: not enough ROM space.

#8 Post by david.warren » 27 Apr 2012 06:59

I have upgraded to v.5.6.0.
The problem persists.

Last working complile gives ROM =

0 1144 Used ROM (program words): 4995 (61%) Free ROM (program words): 3197 (39%) Used ROM (program words): 4995 (61%) Free ROM (program words): 3197 (39%)

Add a few lines of code, any code....

48 342 There is not enough ROM space __Lib_UART_c45.c

and many entries like,
306 392 Address must be greater than 0 main Controller-Reporting.c

Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

Re: not enough ROM space.

#9 Post by Mince-n-Tatties » 27 Apr 2012 10:38

you will need to post the full project. zip up the complete directory and post it. Also it would help if you supply the project in a form which will compile and include a commented out line which can be uncommented to cause the error.
Best Regards

Mince

david.warren
Posts: 3
Joined: 28 Nov 2011 22:43

Re: not enough ROM space.

#10 Post by david.warren » 30 Apr 2012 14:13

Well....bad to worse.

I installed the latest version hoping the ROM problem might go away, but now my comms routines no longer work.

Can I download V.5.0.1 again?

Thanks
Dave

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: not enough ROM space.

#11 Post by janko.kaljevic » 03 May 2012 10:42

Hello,

We will need to see the whole project in order to help you with this issue.
If it is more convenient, you can send it to my e-mail:
janko.kaljevic@mikroe.com

In mean time here is the link for mikroC PRO for PIC v5.01:
http://www.mikroe.com/download/eng/soft ... _setup.zip

Best regards.

Post Reply

Return to “mikroC PRO for PIC General”