• Declare variable in the same location as that of a struct member
    Hi All, Am trying to re-write a code in PLM51 to embedded C. There is a statement in PLM51 as below. DECLARE TASK(17) STRUCTURE(PNTR BYTE,STATUS BYTE,DELAY WORD); DECLARE DELAY_HEAD BYTE AT (...
  • Absolute Variable location problem
    I have the following code: volatile BYTE xdata RxQueue[RX_MAX_QUEUE] _at_ MEM_RXQUEUE; both RX_MAX_QUEUE and MEM_RXQUEUE is defined as constants. but I get an error: *** ERROR C129 IN...
  • problem in absolute variable location
    I would appreciate your help to fix this problem: -------------------------------------------------- <main.c> // include files #include "main.h" // main int main(void) { //test code for...
  • Absolute variable location
    On my program for the LPC2129 using the RealView toolchain, For this line of code: unsigned int StandardFilter[2] _at_ 0xE0038000; I get the following error: CAN_RX.C(31): error: #65: expected...
  • assign an absolute memory location
    I am kind of confused about using the _at_ keyword to assign a specific address to a variable. so for example : extern xdata char variable _at_ 0x000f; it fills 3 bytes in xram . can any...