Jump to content

Insufficient ram on msp430g2553

Recommended Posts

Hi guys,

I'm trying to program my msp430g2553 using energia. My program is about 360 lines in arduino.. When I try to compile the code in energia, it shows errors that the ram is insufficient and about 834B more needed.. I can't reduce the no of variables and the only header I've used in liquidcrystal.h.. So is this a problem with program or I need to change the controller?

Link to post
Share on other sites

If he is using liquidcrystal, he is surely using a lot of string. String can use up memory pretty fast : n+1 bytes (where n is the number of character and 1 is for null character)


No one would do string processing on a mcu, so I guess he won't modify them. Just declaring all string to constant would resolve all of his issue.

Link to post
Share on other sites

Thank you guys thank you for replying.. I was using an array of strings which were used as variables, now when I declared them as constant the ram is free now.. But I need to think of some other way to tick mark the particular index number of the particular array.. And also I need to transmit these strings serially.. So any suggestions for tick marking other than using 1 more array of type int ??

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...