Hi, I want to add a delay function to my project. For the reasons specifed in some of the posts in this forum I want to write the delay function in assembly though I am coding my project in C. Initially I have looked at the link http://www.keil.com/support/docs/146.htm, but as I could not find some of the options specified in this procedure I followed another procedure found in some post. The steps I followed are: * creating a dummy C file with the structure that I need
#pragma SRC void delay_asm(int msec) { }
C51 FATAL-ERROR - ACTION: PARSING INVOKE-/#PRAGMA-LINE LINE: #pragma SRC ERROR: RESPECIFIED OR CONFLICTING CONTROL C51 TERMINATED. delay.c - 0 Error(s), 0 Warning(s).
"*checking the options 'generate the assembler SRC file' and 'assemble SRC file'" and "I just have the delay.c file with a SRC pragma included." That'll be your problem, then! You are effectively specifying the SRC directive both on the command line and in the source file - hence the "RESPECIFIED" error! You need to do one or the other, but not both!
Thank you Andy. Your replies have always been helpful. I corrected my error and it worked fine.
http://www.keil.com/support/man/docs/c51/c51_er_messages.htm