Array pointer values are zero when passed

Help
Anonymous
2012-10-23
2013-03-12

  • Anonymous
    2012-10-23

    I using SDCC v3.with a SiLab 8051043.
    When a pass a char array from the MainLoop to a function the pointer values in the function are zero and the pointer address is not the same as the original array. the values in the original array are unchanged.

    It a simple exercise but the pointer does not pass-
    the original pointer is in xdata space

    any Idea as to what I'm doing wrong???

    ed.

     
  • Maarten Brock
    Maarten Brock
    2012-10-23

    Please show the code.
    And also wich exact version of SDCC are you using?
    And have you changed the memory model or other command line options?
    Are you using interrupts?