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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

237 Views
lpcware
NXP Employee
NXP Employee
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
{
  struct
  {
    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 !
0 Kudos
2 Replies

217 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcch55 on Wed Mar 19 00:50:37 MST 2014
good to hear to get a fix soon.

the bug can be partly avoided by entering

varName.s

instead of varName, then the array in the struct will be displayed correctly, but of course varName.a is not visible.

I work with two expressions for the same variable as a workaround:

varName.s
varName.a
0 Kudos

217 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 18 10:59:52 MST 2014
Hi

Thanks for the report. We can reproduce and are testing a fix.
0 Kudos