Hi everyone,
I got a problem is that I create my own circuit on Proteus, and am going to upload the hex file of Keil into the simulational processor 8051in Proteus
However, when I "Output" Hex file, in the Object file which then emerged the obj file as the picture below. Is there any way that I can export C file into Hex file? or anyway that I can fix the aforementioned error.
Thank you so much!
You don't convert a single 'C' source file direct to hex. It has to be linked with the 'C' runtime support, etc.
The diagrams here https://www.avrfreaks.net/comment/2836911#comment-2836911 illustrate the process (they are for a different target & toolchain, but the general idea is common to all - including Keil)
For specific help with using the Keil tools, see:
http://www.keil.com/support/man/docs/uv4cl/uv4cl_creating_apps.htm
See also:
http://www.keil.com/books/
Do you mean that I have to add the lib file (*.h) into Source Group ??
Thank you so much. I have done it yet.
CUONG HO said:the lib file (*.h)
.h is a header file - not a library.
No, that has nothing to do with this.