Hello,
if i try to compile, i get this message:
*** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: LED.obj
The compiler should make the LED.obj or is that wrong? Whats the problem here?
Please help me
Bye!
http://www.keil.com/support/man/docs/c51/c51_src.htm
"The SRC directive creates an assembler source (.SRC) file instead of an object (.OBJ) file."
But i want the .obj file.
If i uncheck "Generate Assembler SRC File" he compiles but brings up 3 warnings:
Build target 'Target 1' assembling STARTUP.A51... compiling LED.c... LED.C(1): warning C500: SERIAL NUMBER EXPIRED linking... *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: ?C_START MODULE: STARTUP.obj (?C_STARTUP) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: ?C_START MODULE: STARTUP.obj (?C_STARTUP) ADDRESS: 000DH Program Size: data=9.0 xdata=0 code=15 creating hex file from "LED"... "LED" - 0 Error(s), 3 Warning(s).
Then, obviously, you must not check 'Generate Assembler SRC File'
Or, if you do, you must also check 'Assemble SRC file'.
"i uncheck 'Generate Assembler SRC File' he compiles..."
So you did have it checked, then?!
"...but brings up 3 warnings"
Does your LED.c file contain a valid main() ?
Yes there is a valid main()!
I have to uncheck Assemble SRC File and check Generate Assembler SRC File -> result: 3 warningsbut it compiles
If I try anything other -> the error I mentioned in the beginning!
No - that's wrong!
I think you need to just throw that project away, and start again from scratch with a good, clean project; eg,
http://www.keil.com/support/man/docs/uv4/uv4_ex_hello.htm
result:
Build target 'Simulator' compiling HELLO.C... HELLO.C(1): warning C500: SERIAL NUMBER EXPIRED linking... BL51 BANKED LINKER/LOCATER V6.22 - SN: K1U9F-UA565E COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009 "HELLO.obj" TO "HELLO" RAMSIZE(256) *** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: HELLO.obj Target not created
Your project is messed-up, and you are floundering with this.
It's impossible to debug remotely on a forum like this.
Just throw that project away, and start again from scratch with a good, clean project; eg,
Follow the tutorial carefully!
Build target 'Simulator' error - can't create command input file 'HELLO.__i' Target not created
Did you follow the tutorial carefully?
Is this for your job, or for a hobby?
I reinstalled uVision4 and it worked with a project in Evaluation mode.
But if I add the LIC in license management, he has two warnings:
Build target 'Target 1' assembling STARTUP.A51... compiling LCD2.c... LCD2.C(1): warning C500: SERIAL NUMBER EXPIRED linking... *** WARNING L52: EVAL VERSION USED BEFORE, REBUILD ALL *.OBJ FILES MODULE: LCD2.obj (LCD2) Program Size: data=13.0 xdata=0 code=221 creating hex file from "LCD"... "LCD" - 0 Error(s), 2 Warning(s).
LCD2.C(1): warning C500: SERIAL NUMBER EXPIRED
You know why you get that one.
*** WARNING L52: EVAL VERSION USED BEFORE
And that seems to be just an obvious statement of fact!
Again, is this for your job, or hobby?
only hobby....maybe later for job!
But what about the warnings? I cant fix them. I understand them, but how should i rebuild the .obj files?? With rebuild, isnt working!
ok now i checked it a hundert times!
I build a new project and it runs in evaluation mode of uVison4 if I add the LIC i get the error:
Build target 'Target 1' assembling STARTUP.A51... compiling LED.c... LED.C(1): warning C500: SERIAL NUMBER EXPIRED linking... BL51 BANKED LINKER/LOCATER V6.22 - SN: K1U9F-UA565E COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009 "STARTUP.obj", "LED.obj" TO "test" RAMSIZE(256) *** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: LED.obj Target not created
There is no way around this. That is really stupid. Why does it work in evaluation mode?
So where did you get this licence code?
Are you sure it is valid?
"Why does it work in evaluation mode?"
presumably it is quite difficult to evaluate a piece of software if it doesn't work?