• 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 (...
  • L6200E Error, Multiple Declarations
    I keep getting a linker error suggesting that a few variables (and some functions) have been declared across multiple files. I've triple checked the files (they're not large) and the erring functions...
  • How to declare a Struct for Multiple files?
    At the risk of receiving a good thrashing, I need to ask a basic C code beginner's question: I want to declare/define an array of struct in a .h file that assigns it to xdata memory. /* Struct.h...
  • Generating multiple versions of the same firmware?
    Hi, i have a rather daunting problem. We want to deploy our firmware in over 300 devices. All devices use the same firmware except for one variable DeviceID. The id has to be different for every device...
  • Variable declaration
    I am lost in this : Define src_ptr and dest_ptr at address 0x20001000 & 0x20002000 without assembler directives. What should I do?