My Program code is following:
system.c
#include <reg51.h>
#include <Memory.set> #include <Delay.h>
void main(void) {
//unsigned char xdata uc_xdata_Buf[32768];
//uc_xdata_Buf[0]=1;
Delay_Ms_24M(1);
}
Memory.set
//--------------------------------------------------------------------------------------------- //Test //---------------------------------------------------------------------------------------------
unsigned char xdata uc_xdata_Buf[32768] _at_ 0x0010;
Error Message as following: Comm Group\Memory.set(5): error A9: SYNTAX ERROR Comm Group\Memory.set(5): error A3: ILLEGAL CHARACTER Comm Group\Memory.set(5): error A3: ILLEGAL CHARACTER Comm Group\Memory.set(6): warning A41: MISSING 'END' STATEMENT
Please give me suggestion. Thanx.
I define a array in the other file(Memory.set). But I use the array in system.c and I compile it. It show the errow message. Memory.set has something wrong. If I move the array definition to the system.c. It can pass. Everything is ok. My Program code is following:
#include <reg51.h> #include <Memory.set> #include <Delay.h>
void main(void) { //unsigned char xdata uc_xdata_Buf[32768];->If the array definition move to here.It will be Ok.
uc_xdata_Buf[0]=1;
unsigned char xdata uc_xdata_Buf[32768] _at_ 0x0010;------>Error