• Problems with Passing Pointers as Parameters
    Okay, I'm trying to pass a pointer to a char buffer to a function. It works fine in the Keil simulator/debugger, but not on the target hardware. // Variable Declaration #define MAX_RX_SIZE 100 static...
  • Passing > 4 Parameters to Function
    Greetings: Here is an odd one that I hope someone can point out the obvious thing I am doing wrong. In the accompanying extremely simplified source code, compiled with uVision3 V3.12a, I am just calling...
  • Can't pass pointer parameters correctly.Why?
    Hi, I wrote a test function as; // Task definitions OS_TID T_Test; U64 Test_stack[13312/8]; __task void init (void); __task void Test (void) ; // Function definition uint16_t TestFunc( uint8_t...
  • Function pointer parameter
    From C,I called an assembly function passing in generic pointer and a function pointer. I can access the first parameter (generic pointer) by taking in the values from R2 and R1 but I have difficulty...
  • xdata pointer as function parameter
    I'm pretty sure I know the answer to my question, but I like verification. Say I have an array in xdata: unsigned char xdata foo[32]; I have a function which accepts a pointer and does stuff...