I want an instance of a structure to be put at a specific address in xdata. What is the difference between these declarations:
#define tSetupPacket (* (tDEVICE_REQUEST xdata *)0xFF00) tDEVICE_REQUEST xdata tSetupPacket _at_ 0xFF00;
Thanks. All you agree that the second form is a valid one. Nevertheless, it is always zero, i.e. writing to the structure's fields does not modify it. So, something is still wrong.