FX2 SDCC Firmware problem

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

Reply to
Gavin Brewer
Loading thread data ...

It looks like you ran out of RAM space.

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

--
Thad
Reply to
Thad Smith

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

Reply to
Joe G (Home)

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 \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply to
Chris Hills

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.