Debugger: unclear error when trying to display an union in the Expression-view

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by lpcch55 on Mon Mar 17 07:40:34 MST 2014
please refer to the attached screenshot:

The type of the datastructure is declared as:

typedef union tagMR_TXBufType
    uint8_t busAdr;                      
    uint8_t functionCode;                 
    uint8_t byteBuffer[MR_TXBufSize-2];    // MR_TXBufSize is 256
  } s;

  uint8_t a[MR_TXBufSize];

} MR_TXBufType;

viewing array a the contents is displayed correctly, looking at the structure s the array byteBuffer causes an error
never saw this with Red Suite 4 !