This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Eclipse: region ram overflow

i am working with eclipse. i want to create a binary file. after successfully creating the .elf file eclipse displays a make error saying region ram overflow by so and so bytes. what should i do?

Parents
  • That doesn't sound right. That message comes from the link which means you are NOT successfully creating the .elf file, the link is failing.

    Use less RAM - the message says your code is asking for more RAM than your chip has on it. Use a smaller stack, smaller heap, go look for other places using lots of RAM and reduce it.

    I don't know if Eclipse produces a .map file telling you where it's placed things, that's one good place to start figuring out where your RAM usage is.

    One fairly common mistake is having a load of static data which isn't marked const, that ends up getting copied into RAM on startup just wasting RAM for no reason.

    Or get a chip with more RAM on it.

Reply
  • That doesn't sound right. That message comes from the link which means you are NOT successfully creating the .elf file, the link is failing.

    Use less RAM - the message says your code is asking for more RAM than your chip has on it. Use a smaller stack, smaller heap, go look for other places using lots of RAM and reduce it.

    I don't know if Eclipse produces a .map file telling you where it's placed things, that's one good place to start figuring out where your RAM usage is.

    One fairly common mistake is having a load of static data which isn't marked const, that ends up getting copied into RAM on startup just wasting RAM for no reason.

    Or get a chip with more RAM on it.

Children
Related