Keil Logo Arm Logo

target not created

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Shani S
Posted
11-Feb-2011 04:50 GMT
Toolset
C51
New! target not created

hey guys i hv just installed the keil c51 version 9.01 but when a i try to build target files this error comes up
plz help me
Build target 'Target 1'
linking...
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: ?DT?COUNTER LENGTH: 0079H
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: DEL_ALL SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: TEXT SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: DAT SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: INIT SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: DEL SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: SEND SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: READ SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: SMS3 SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: SMS2 SEGMENT: ?DT?COUNTER
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: SMS1 SEGMENT: ?DT?COUNTER
Program Size: data=133.0 xdata=0 code=568
Target not created

Read-Only
Author
Shani S
Posted
11-Feb-2011 04:52 GMT
Toolset
C51
New! RE: target not created

This is my program

#include<AT89X52.H>
//#include<reg51.H>
#include<stdio.H>
#include<string.H>

//***** Preprocessor Directives *******//
sbit engine_cutoff = P1^7; // Relay for cutting off Engine
sbit lock = P1^6; // Relay Locking/Unlocking the doors
sbit horn = P1^5; // Relay for horn and flashing lights
sbit window_sensor = P1^4;
sbit door_sensor = P1^3;

//***** Variable Declaration *******//

unsigned char init[] = "AT"; // to confirm that modem is working
unsigned char text[] = "AT+CMGF=1"; // to format sms as txt msg
unsigned char read[] = "AT+CMGR=1"; // to read sms at index 1
unsigned char send[] = "AT+CMGS=\"03335131925\""; // to send sms at given number
unsigned char del[] = "AT+CMGD=1"; // to del 1 sms
unsigned char del_all[] = "AT+CMGD=1,4"; // to del all sms
unsigned char sms1[] = "Window is disturbed"; // sms due to sensor1
unsigned char sms2[] = "Door is disturbed"; // sms due to sensor2
unsigned char sms3[] = "Car is Secured"; // sms generated that car is secured
unsigned char dat[1] ; // for storing ok

//***** Function to transmit the data through serial port *******//

void transmit (unsigned char array[])
{ unsigned int i; for (i=0;array[i]!='\0';i++) { if (TI != 1) { SBUF = array[i]; }// End of if while(TI != 1); TI = 0; }// End of for SBUF = 0x0D; // This is Enter while(TI == 0); TI =0; }// End of transmit function

//***** Function to Receive Single character *******//

char receive ()
{ unsigned char ch; while(RI == 0); RI = 0; ch = SBUF; return(ch);
}// End of Receive function

//***** Function of Delay *******//

void delay()
{ unsigned int i; for(i=0;i<33000;i++);
}//End of delay

//***** Function of Checking OK *******//

void check()
{ dat[0] = receive(); delay(); dat[1] = receive();
} // End of Check

//***** Main Program *******//

void main ()
{

while(1)
{ SCON = 0x50; TMOD = 0x20; TH1 = 0xFD; TR1 = 1; delay(); delay();

if(window_sensor == 0 && door_sensor == 1) //Window is disturbed { U: transmit(init); delay(); delay(); check(); if (dat[0]=='o' && dat[1]=='k') { transmit(text); delay(); delay(); check(); if (dat[0]=='o' && dat[1]=='k') { transmit(send); delay(); delay(); transmit(sms1); delay(); delay(); transmit("SUB"); // ASCII of CTLZ }//end of if1-1-1

else {goto U;} //else 1-1-1

}// end of if1-1

else {goto U;} //else 1-1 }//End of if1
}// End of while }// End of Main

Read-Only
Author
Andrew Neil
Posted
11-Feb-2011 07:27 GMT
Toolset
C51
New! Read the messages!
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: ?DT?COUNTER LENGTH: 0079H

DO you understand what the word "overflow" means?

When anything "overflows", what do you do about that?

If you were trying to put water into a bucket, and the bucket overflowed - what would that mean? What could you do about it?

Please pay attention to the clearly stated instructions for posting source code: http://www.danlhenry.com/caps/keil_code.png

Read-Only
Author
Shani s
Posted
12-Feb-2011 05:03 GMT
Toolset
C51
New! RE: Read the messages!

ok z thanks
i got it .
and i solved it too
i just reduced the length of strings sms1 , sms2 and sms3
and it worked.......

Read-Only
Author
Erik Malund
Posted
11-Feb-2011 12:19 GMT
Toolset
C51
New! no, it is not

This is my program

No, it is not, that is your mess.

Did 'preview' not show you that you had to reformat something to show it?

Did you read the NOTE above the "enter message details below" window?, if you did why did you not follow them.

Erik

Read-Only
Author
Shani s
Posted
12-Feb-2011 05:05 GMT
Toolset
C51
New! RE: no, it is not

sorry man ...
i didnt see it ..
my fault.........
nxt time i'll be carefull

Read-Only
Author
Neil Kurzman
Posted
12-Feb-2011 23:30 GMT
Toolset
C51
New! RE: no, it is not

If you put the strings in code space they will not fill up the RAM

Read-Only
Author
Shanis s
Posted
13-Feb-2011 05:10 GMT
Toolset
C51
New! RE: no, it is not

ok .... thanks

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.