Skip to main content
KChiz.1
Associate II
Mar 24, 2020 7:52 PM UTC
Solved

Is there a good way to view structured data? I have a global variable of structure data type, I was not able to view any fields of this struct except of specifying memory address directly.

..

This topic has been closed for replies.
Richard.Chvr
Richard.ChvrBest answer
ST Technical Moderator
Sep 27, 2023 1:27 PM UTC

No update since a while, closing the post.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

4 replies

Thierry
Visitor II
Mar 31, 2020 3:47 PM UTC

Dear KChiz,

Did you check the "Expand Variable List" checkbox in the "exe-config" node panel (as shown in attached picture)?

It should normally show the content of data structure and the arrays.

0693W000000V5x5QAC.png

Best Regards,

Thierry

KChiz.1
KChiz.1Author
Associate II
Mar 31, 2020 6:07 PM UTC

OK, I got it. I'm using C++. For some reason this feature works only for 'structs' but not for classes.

Same code compiled using arm-none-eabi-gcc 9.2.1 i C++ mode. If I use 'struct' keyword.

0693W000000V6PdQAK.png

It looks OK.

0693W000000V6PnQAK.png

However is I use 'class':0693W000000V6QHQA0.png

No fields of class are visible:

0693W000000V6QRQA0.png

So this question should be re-classified as "Expand variables does not work with classes".

Thierry
Visitor II
Apr 14, 2020 7:58 AM UTC

Dear Kchiz.1,

The C++ classes are actually not supported by our executable parser. We will look at this support in a futur release.

Richard.Chvr
Richard.ChvrBest answer
ST Technical Moderator
Sep 27, 2023 1:27 PM UTC

No update since a while, closing the post.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.