error : not enough RAM

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
soheil_sab
Posts: 12
Joined: 23 Oct 2015 11:37
Location: iran
Contact:

error : not enough RAM

#1 Post by soheil_sab » 24 Dec 2015 09:57

I am converting one program from mikrobasic to Mikroc for AVR (ATMEGA128) , and the work almost completed but finally i got error :

Code: Select all

not enough RAM
so i read this two topics:

https://www.mikroe.com/forum/viewtopic.php?f=48&t=26588
and :
https://www.mikroe.com/forum/viewtopic.php?f=48&t=27350

SO i changed some variable from :

Code: Select all

char *txt;
to

Code: Select all

char txt;
So what more i must to do to release more RAM Space.
to free more RAM, but it is not working.
the whole program is accessible in attachment:


Best-regards:
Elasa.ir
Attachments
button_test2 -in MikroC.zip
(825.5 KiB) Downloaded 131 times

User avatar
biljana.nedeljkovic
mikroElektronika team
Posts: 1043
Joined: 30 Jun 2015 15:15

Re: error : not enough RAM

#2 Post by biljana.nedeljkovic » 25 Dec 2015 14:54

Hello,

As you must have seen from the topics you linked, you should consider finding some MCU with more RAM.

Or search for more code optimization recommendations.

Kind regards,
Biljana

Post Reply

Return to “mikroC PRO for AVR General”