home autoamtion
Discussion in "Project Doubts" started by anilmm Apr 8, 2007.
Sun Apr 08 2007, 11:30 pm
sir ,plz tell how to compile using sdcc your given files as i get this error as follows while compiling:
cmd>sdcc HA.c lcd.rel serial.rel strfunc.rel cmd.rel
output:
In file included from HA.c:4:
lcd.h:41:6: warning: no newline at end of file
HA.c:52:1: warning: no newline at end of file
?ASlink-Error-Could not get 160 consecutive bytes in internal RAM for area DSEG.
cmd>sdcc HA.c lcd.rel serial.rel strfunc.rel cmd.rel
output:
In file included from HA.c:4:
lcd.h:41:6: warning: no newline at end of file
HA.c:52:1: warning: no newline at end of file
?ASlink-Error-Could not get 160 consecutive bytes in internal RAM for area DSEG.
Mon Apr 09 2007, 01:52 am
This code cannot be compiled with SDCC because its not compatible with SDCC, you need a little work to make it compatible, like changing th way things has to be defined and stored in ROM instead of RAM.
Defining SFRs and SBITs. and 8051 has only 128 bytes, so getting 160 bytes is not possible, so instead of defining the constant strings in DSEG, better store then in RSEG. look into the SDCC manual for defining constants in Code memory instead of data memory.
Defining SFRs and SBITs. and 8051 has only 128 bytes, so getting 160 bytes is not possible, so instead of defining the constant strings in DSEG, better store then in RSEG. look into the SDCC manual for defining constants in Code memory instead of data memory.
Tue Apr 10 2007, 07:23 pm
I use keil C compiler. you can convert this C files and make it compatible with SDCC, there is not much of changes to be made, take the help of SDCC manual for more details.
Powered by e107 Forum System