free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World :: Discussion Forums :: Project Development :: Project Help
 
<< Previous thread | Next thread >>
Help to debug error in my code
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage
Author Post
kvbhat123
Sat Mar 07 2009, 06:58PM
 User Offline
Registered Member #16211
Joined: Sat Mar 07 2009, 06:46PM

Posts: 4
Thanked 1 time in 1 posts
I along with our group members made a code for home automation .It was working with few warnings but now suddenly the warnings have increased without any modification of code.I am attaching all header along with main.c pls help me to debug this....
If possible guide me to bring down the warnings

waiting for your reply Ajay sir

code.rar

Back to top

DavesGarage
Sat Mar 07 2009, 08:05PM

 User Offline
Registered Member #14254
Joined: Tue Jan 20 2009, 08:14AM

Posts: 621
Thanked 116 times in 112 posts
kvbhat,

I downloaded your files and compiled them with Keil C51. I included the default startup.a51 file, and have NO errors or warnings when I compile your MAIN.C file.

Since you did not include the source modules for the other files, I cannot build the entire thing.

Can you please show the warnings you are getting?

Thanks,

-Dave

-Dave
"Basic research is what I am doing when I don't know what I am doing"
Back to top

kvbhat123
Sun Mar 08 2009, 12:26AM
 User Offline
Registered Member #16211
Joined: Sat Mar 07 2009, 06:46PM

Posts: 4
Thanked 1 time in 1 posts
what exactly do we need sir apart from those give here(files)

waiting for your reply!!
Back to top

DavesGarage
Sun Mar 08 2009, 10:20AM

 User Offline
Registered Member #14254
Joined: Tue Jan 20 2009, 08:14AM

Posts: 621
Thanked 116 times in 112 posts
From your question, I assume this isn't your software, but something you borrowed from someone else. Is this the case? If not, I apologize, but the question seems odd. If you could screen print your screen after you get the warnings, you could attach the picture to this forum so I could better understand what problems you are having. This would be very helpful in fully understanding your problem.

To answer your question, your RAR file included these files:




Obviously, I don't need to see the included library files from Keil, because I assume they are correct.

In case you don't know what I am talking about, that would be anything having to do with the functions listed in stdio.h and 89c51.h - These header files are for a library that comes with Keil and a register definition file, that also comes with Keil, repectively.

However, you have header files called delay.h, lcd4,h, adc.h, serial.h, fbus.h, and keymatrix.h. These must have source modules that have source code for the function prototypes in the headers.

In order to compile the entire project, I would need these modules.

I hope this helps you,

-Dave

[ Edited Sun Mar 08 2009, 10:23AM ]

-Dave
"Basic research is what I am doing when I don't know what I am doing"
Back to top


This post has been thanked 1 time
 kvbhat123 
Ajay Bhargav
Sun Mar 08 2009, 12:56PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 7542
Thanked 1330 times in 1254 posts
can you provide what errors you are getting?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


This post has been thanked 1 time
 kvbhat123 
kvbhat123
Mon Mar 09 2009, 07:12PM
 User Offline
Registered Member #16211
Joined: Sat Mar 07 2009, 06:46PM

Posts: 4
Thanked 1 time in 1 posts
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _DELAYI
MODULE: Main.obj (MAIN)
ADDRESS: 1FF6H

this and many more similar to this are the warnings.

You are right sir i havent done the entire code myself ,took help of my friends and some of them are currently out of town..

Even if the warning persist and i burn the code in microcontroller will the code work??

Thnx for the reply
Back to top

DavesGarage
Mon Mar 09 2009, 11:59PM

 User Offline
Registered Member #14254
Joined: Tue Jan 20 2009, 08:14AM

Posts: 621
Thanked 116 times in 112 posts
No, it will not work without resolving the warnings. These warnings indicate that there are external functions that the linker cannot find. The one you specifically show here is the Delay function. No doubt, it is in one of the missing modules I was referring to.

You must include these modules in your project, and then compile and link them together for this software to work...

Sorry,

Dave

-Dave
"Basic research is what I am doing when I don't know what I am doing"
Back to top


This post has been thanked 1 time
 kvbhat123 
kvbhat123
Tue Mar 10 2009, 02:03AM
 User Offline
Registered Member #16211
Joined: Sat Mar 07 2009, 06:46PM

Posts: 4
Thanked 1 time in 1 posts
Thank you very much for the help.

I got the source code from my friend and works without any warning..

again thank you very much for ur help and support....:-|:-|
Back to top


This post has been thanked 1 time
 rdvarma 
rdvarma
Thu Apr 02 2009, 05:01AM
 User Offline
Registered Member #17187
Joined: Thu Apr 02 2009, 04:46AM

Posts: 2
Thanked 0 times in 0 posts
hey dude, i saw ur problem of programming microcontroller......even i have same problem....can u please give me source codes for header files that u have posted on forums??

thanx mann
Back to top

 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems