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?
not enough ROM space.
-
- Posts: 3
- Joined: 28 Nov 2011 22:43
not enough ROM space.
Last edited by david.warren on 26 Apr 2012 15:09, edited 1 time in total.
Re: not enough ROM space.
Hello,
could you show us your code?
could you show us your code?
Re: not enough ROM space.
This could be a library problem, have you selected all the libraries you are using in library manager?
Re: not enough ROM space.
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
Regards,
Alex
Re: not enough ROM space.
It should not matter, only used libraries will occupy the ROM space, not all those "ticked" in the library manager.pwdixon wrote:This could be a library problem, have you selected all the libraries you are using in library manager?
There seems to be a large code made by the user, without it there can be only speculation.
Re: not enough ROM space.
Or maybe an innapropriate #pragma orgall instruction...zristic wrote:It should not matter, only used libraries will occupy the ROM space, not all those "ticked" in the library manager.pwdixon wrote:This could be a library problem, have you selected all the libraries you are using in library manager?
There seems to be a large code made by the user, without it there can be only speculation.
Marc
Re: not enough ROM space.
david.warren has edited his post, now it is a bit difficult to follow what was written the first time...
-
- Posts: 3
- Joined: 28 Nov 2011 22:43
Re: not enough ROM space.
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
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
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: not enough ROM space.
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
Mince
-
- Posts: 3
- Joined: 28 Nov 2011 22:43
Re: not enough ROM space.
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
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
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: not enough ROM space.
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.
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.