Discussion in "Project Doubts" started by    anilmm    Apr 8, 2007.
Sun Apr 08 2007, 11:30 pm
#1
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.
Mon Apr 09 2007, 01:52 am
#2
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.
Tue Apr 10 2007, 07:19 pm
#3
so sir which compiler u r using and how r u compiling
plz explain it.
Tue Apr 10 2007, 07:23 pm
#4
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.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am