Skip to main content
Graduate II
November 8, 2023
Question

missing structure element in Variables List

  • November 8, 2023
  • 5 replies
  • 2589 views

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.

    This topic has been closed for replies.

    5 replies

    ST Employee
    November 8, 2023

    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

    Graduate II
    November 8, 2023

    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.

    Graduate II
    November 9, 2023

    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

     

    ST Employee
    November 15, 2023

    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.

    Graduate II
    November 15, 2023

    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?

    Graduate II
    November 10, 2023

    Hello?

    Graduate II
    November 14, 2023

    Anyone?

    Graduate II
    November 15, 2023

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