cancel
Showing results for 
Search instead for 
Did you mean: 

missing structure element in Variables List

Using STM32CubeMonitor v1.7.0 the Variables List (with "Expand Variable List" checked) doesn't contain a structure element which is a single-dimensioned array of (non-trivial) structures.  However, other elements of that same structure including a single-dimensioned array of (relatively trivial) structures are shown in the list.  Of course, all the information I'm interested in is held in the struct array that isn't listed, haha!  Does the elf parser need some work?

Also, 64-bit integers and bitfields don't appear to be supported.

8 REPLIES 8
stephane.legargeant
ST Employee

Hello

I confirm that 64bits integers and bitfields are not supported. ( One reason for 64 bits limitation is that javascript type "number" is not supporting 64bit and other types would be hard to manipulate in the "msg.payload" of the dashboard nodes.) 

For the elf parsing issue, what is a "non-trivial" structure ? Can you give an exemple ?

Best regards

Hi Stephane and thanks for the quick reply.

My "non-trivial" structure contains a large number of elements of varying data types such as uint32, int8, uint16, float, double, other structures, pointers to structures, arrays of floats and structures, bitfields, and a couple of 2-dimensional matrices.  The "relatively trivial" structs are much smaller with only a pointer, a timeval struct (with a 64-bit seconds element), int, and uint8.

Here's the problem (from the STM32CubeMonitor log file):

[2023-11-09T14:55:10.719] [WARN] elfparser - Information returned by gdb : value requires 222336 bytes, which is more than max-value-size

 

Hello?

Anyone?

You can always tell when you find a real problem with ST's stuff - they go dark and just stop replying.  Sad.

Hello David

The error from gdb seems to show that the structure is too huge to be parsed or the parsing has failed dur too complexity and has stopped because the size was getting too big. 

Is it possible that "non trivial" structure have a size greater than 200KB ?  In this case would it be possible to try to make it smaller ?

Have a nice day.

Is it possible that "non trivial" structure have a size greater than 200KB ?  Yeah, that's what the error message said.

In this case would it be possible to try to make it smaller ?  No.  Is CubeMonitor only useful for toy programs?