Error of not enough RAM using mikroc compiler

Status
Not open for further replies.

weather_station

Newbie level 3
Joined
Sep 6, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
hi

i am using mikroc compiler for my program and i am using p89v51rd2fn controller which has 64kb flash memory and my program is about 37 to 40 KB but some how it give error of not enough ram. I costruct 17 variables including array and for display purpose i also use graphical lcd which is 127*63. so if any one find solution please reply me.

thank you
 

Re: not enough RAM problem

This microcontroller has “only” 1024B of RAM, so maybe your compiler tries to tell you that during operation the micro will need more than 1kB of RAM and that is above its physical size ..

IanP
:grin:
 

Re: not enough RAM problem

i see the manual of P89V51RD2FN and it has 64 KB flash memory so yet i am not getting my solution
 

i see the manual of P89V51RD2FN and it has 64 KB flash memory

Flash (code memory) is not RAM, have a thorough look at the attached picture ..

IanP
:wink:
 

Attachments

  • P89 - 1kRAM.JPG
    31.3 KB · Views: 169
I also think that Ian is right........ MIckroC while compiling would require more memory than we expect it to take........ :wink:
 
thanks IanP :smile:, now tell me than how to adress 64KB CODE FLASH MEMORY IN P89V51RD2FN :???:
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…