We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have tried to write a simple embedded c program in keil for that purpose i added Startup.a51 file when i tried to compile it it had shown the warnigs
Build target 'Target 1' linking... *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: ?C_START MODULE: .\Objects\STARTUP.obj (?C_STARTUP) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: ?C_START MODULE: .\Objects\STARTUP.obj (?C_STARTUP) ADDRESS: 080AH Program Size: data=9.0 xdata=0 code=15 ".\Objects\loc" - 0 Error(s), 2 Warning(s). Build Time Elapsed: 00:00:00
what ever the program i change the warning remains same could you please help me in resolving it
do you have a main()?
You haven't enabled the SRC option for all your .c files, have you ... ?
http://www.keil.com/forum/14227/
yes i have main and mine is a simple progra and it is #include <reg51.h> void main(void) { unsigned char mynum[]=“ABCDEF”; unsigned char z; for (z=0;z<=6;z++) P1=mynum[z]; }
you need some code in main(). e.g. while(1); will do
i tried so and even i write code in assembly the same warning araises
You didn't answer that question!
start with this
void main (void) { while (1) {} // Spin forever }
and then add your stuff to see what makes it fail
Erik