Discussion in "Project Addition or Changes" started by    tahirmaqsood    Sep 26, 2010.
Wed Nov 10 2010, 12:23 am
#21
Hi guys!

I found this site searching for starting-informations in my AVR-Programming-life. This is the perfect matching source-code for me.

Majoka
, I downloaded your code tried to understand it in order to modify for my propper project.... I think i understand almost every... well most... ok: particular

I recognized that you use Klein and so I searched the C51-Program (V 9.01) and learned the basics in order to understand the important things.

BUT:
My first BIG Problem is the compiling.....
My generated hex-Files dont work simulating in Prometeus. Even when I re-compile your main.c File it doesent work (btw: the new hex-file is only 3kn. The original 9!!)

Do you (or anyone else) have an idea where my initial fault could be?!

Best Regards
Marcus


[ Edited Wed Nov 10 2010, 12:24 am ]
Wed Nov 10 2010, 12:59 am
#22
I Forgot: Here are are some (!) lines of the output-window

Build target 'Target 1'
assembling STARTUP.A51...
compiling main.c...
MAIN.C(22): warning C275: expression with possibly no effect
MAIN.C(45): warning C275: expression with possibly no effect
MAIN.C(56): warning C275: expression with possibly no effect
MAIN.C(68): warning C275: expression with possibly no effect
MAIN.C(77): warning C275: expression with possibly no effect
MAIN.C(94): warning C275: expression with possibly no effect
MAIN.C(107): warning C275: expression with possibly no effect
MAIN.C(120): warning C275: expression with possibly no effect
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _CHECK
MODULE: main.obj (MAIN)
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?_CHECK?BYTE
MODULE: main.obj (MAIN)
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: DEFAULTULOCK
MODULE: main.obj (MAIN)
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: GETKEY
MODULE: main.obj (MAIN)

[…]

SYMBOL: _DELAYMS
MODULE: main.obj (MAIN)
ADDRESS: 027AH
Program Size: data=12.2 xdata=0 code=1000
creating hex file from "3110"...
"3110" - 0 Error(s), 138 Warning(s)

Greetz
Wawa
Wed Nov 10 2010, 02:45 am
#23
hi wawa, i also downloaded that code from majoka and it has no error. try to
remove STARTUP.A51... from the group and compile it. i also got many errors when that startup file is included.. hehe i dont know about that file but i just remove that...
Wed Nov 10 2010, 03:16 am
#24
I retried!

When starting up, the system asks me if I want to include this file. This time I said "no", but the result is the same

Build target 'Target 1'
compiling main.c...
MAIN.C(22): warning C275: expression with possibly no effect
MAIN.C(45): warning C275: expression with possibly no effect
MAIN.C(56): warning C275: expression with possibly no effect

blablabla....


Welll maybe its because of V 9.01 instead of 9,1 ??!!

Greetz
Wawa
Wed Nov 10 2010, 03:27 am
#25
btw romel_emperado :

Whitch compiler do you use?!

Also Klein C51?
Wed Nov 10 2010, 03:55 am
#26
yes IM using keil uvision4 c51.. di u tried crating a new project?

i compiled it again just now it works no error no warning
download this this is the last files attached by majoka:
http://www.8051projects.net/e107_files/public/1286250944_22104_FT38136_updated.rar


Wed Nov 10 2010, 04:21 am
#27
Hey romel_emperado,

thx, but its the same

I create a new project using the steps discribed in the tutorial added below.

1. New uVision Project
2. chosing Atmel AT89C52
3. copy standard = no
4. File open: main.c
5. Project Window: Target1+ =Source Group1 opens
6. Source Group1 marked, add files = main.c
7. Save
8. Mark Target1: Rebuild all target files

--> Warnings as discribed

Need help
Wed Nov 10 2010, 04:26 am
#28
I forgot the file... sry



Whitch VERSION of uVision4 do u use?


[ Edited Wed Nov 10 2010, 04:27 am ]
Wed Nov 10 2010, 04:39 am
#29
wawa add in the group all the *.c file.. not only the main.c
include adding the group the lock.c, lcd1.c and etc. just include all the .c file..
yes Im using uvision4 c51


[ Edited Wed Nov 10 2010, 04:42 am ]
 Wawa like this.
Wed Nov 10 2010, 11:38 am
#30
download this keil version and try in it
1) http://ifile.it/rtkzpg4
2) http://ifile.it/rtkzpg4/keil.rar

install complete version key is inside it
 Wawa like this.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Williamjaf
Tue Apr 16 2024, 12:25 pm
best_yyPa
Tue Apr 16 2024, 09:42 am
ErnestoExpop
Tue Apr 16 2024, 02:57 am
Jamesclepe
Mon Apr 15 2024, 11:10 am
Aliciaelora
Mon Apr 15 2024, 07:59 am
btaletvpcu
Mon Apr 15 2024, 04:36 am
UbvpwcTib
Mon Apr 15 2024, 03:13 am
AmyJow
Sun Apr 14 2024, 11:54 pm