Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to use sdcc in uC having more than 1K bytes of RAM.

Status
Not open for further replies.

vikrant

Junior Member level 2
Joined
Jun 30, 2006
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,425
how to use sdcc

hi all,

I am using Philips p89v51RD2 microcontroller and SDCC compiler.
This controller has 1K of RAM size but still sdcc compiler is giving Error due to overflow of memory size, I think sdcc still taking Maximum RAM size to 128 bytes,

Error which is given by sdcc is

Error: Couldn't get 62 bytes allocated in internal RAM for area DSEG.

tell my how i can use sdcc in order to use all 1K of the microcontroller .
 

I had a similar problem when using a PIC18F4520. In my case, there was a linker file that was used to set up the ram into 5 or 6 smaller banks. By changing that file, I was able to allocate one large continuous segment.

I cant say for sure if this is your problem, since I dont have any experience with that compiler. I'd try looking around in the documents for the compiler and see if there is anything there.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top