Hello I am working in a medical company they give me a program for At89C55wd when i want to debug the project,its message is :
error 56 : cant open file what is you opinion about this?
and i have #define lowPrsPressure *(XCHAR+0x81A2)
in program and XCHAR is undefined identifier i think XCHAR is similar to XBYTE. Can anybody help me? Thanks
My _guess_ is that someone wanted a XCHAR with the intention of having a signed character in external memory and use XBYTE to represent an unsigned byte in external memory.
With the C51 compiler, you normally use XDATA to just inform about memory region but without caring about the type information. So you have to separately supply "unsigned char", "long", "struct my_data_type" or whatever type you want for the variable.
It's important to always put _all_ required files under source code control. When developing embedded code, that also means that it may be required to check in a number of header files supplied with the compiler - just to make sure that a developer that later has to port the code to a different compiler will be able to read the original definitions and then be able to understand how the original program functioned - that's required information when porting to a different compiler and/or processor.