FX2 SDCC Firmware problem

May 03, 2007 3 Replies

Folks,



Upon using SDCC for compiling the skeleton firmware provided by Friess and McNeill (2005), I get the following cryptic linker error:



"Error-Could not get 5 consecutive bytes in internal RAM for area DSEG."



What is going on here?


Please write directly to my mailbox.



Thank you, Gavin Brewer.



PS. For more information see:



formatting link


It looks like you ran out of RAM space.

Post here, read here. Answers and discussions benefit everyone.

Thad

Ah... Yes... C can "abstract" you from the SRAM volitle memory locations and placement of variables... and not tell you you have run out of SRAM space.

Have a look the map files and other files that are generated.

try reducing the number of variables or arrays and see if the error goes away.

One of the SDCC command line settings may help

Joe

formatting link

This is why I keep saying that it is often better to use the eval version of a proper 8051 compiler than some of the free ones.

Most commercial 8051 compilers aggressively overlay the data in data space. This is where the main bottle neck occurs for a lot of 51 programs.

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required