Skip to main content
IB.1
Associate III
January 13, 2021
Question

Touch GFX dynamic Graph widget crash the application

Hello Touch GFX Guys.

Hardware: STM32H7B3I development board

Software: Touch GFX designer 4.16

STM Cube IDE 1.5.0

We are trying to experiment with "dynamic graph" widget and experiencing some problems .

After adding widget on the screen follow code is generated

 dataGraph1.setScale(1);
 dataGraph1.setPosition(10, 10, 380, 180);
 dataGraph1.setGraphAreaMargin(0, 0, 0, 0);
 dataGraph1.setGraphAreaPadding(0, 0, 0, 0);
 dataGraph1.setGraphRangeY(0, 100);
 
 dataGraph1Line1.setScale(1);
 dataGraph1Line1Painter.setColor(touchgfx::Color::getColorFrom24BitRGB(20, 151, 197));
 dataGraph1Line1.setPainter(dataGraph1Line1Painter);
 dataGraph1Line1.setLineWidth(2);
 dataGraph1.addGraphElement(dataGraph1Line1);
 
 dataGraph1.addDataPoint(6.40222585735995f);
 ........
 dataGraph1.addDataPoint(15.6299816028386f);
 dataGraph1.addDataPoint(9.83211034085783f);
 dataGraph1.addDataPoint(10.0465691581937f);

Once we run the application code is crushing. if we comment

dataGraph1.addGraphElement(dataGraph1Line1);

and all follow lines:

dataGraph1.addDataPoint(9.83211034085783f);

application is running but obviously no graph :)

We do not have any functions in the code to update graph yet...

We tried to set in CANVAS BUFFER "Overwrite default buffer size " to 7200 bytes

but no luck.

Please advise if anything else we can do to overcome this problem, or any other information we can provide.

Thank you for all your help and support

Regards,

i

This topic has been closed for replies.

20 replies

IB.1
IB.1Author
Associate III
January 27, 2021

Hi Alexandre,

Did you have a chance to look at the issue.

please advise at your earliest convenience.

Thank you,

I

Alexandre RENOUX
Visitor II
January 28, 2021

Hello @IB.1​ ,

Yes I've looked at the issue and I personally don't find anything wrong with your loader file. Unfortunately, I haven't found the root of your problem yet. I'm in discussion with the dev team but this takes more time than expected.

Sorry for the inconvenience.

/Alexandre

IB.1
IB.1Author
Associate III
January 28, 2021

Hi Alexandre,

Thank you for your replay. please keep us posted

Thank you for all your help and support

Regards,

I

IB.1
IB.1Author
Associate III
February 5, 2021

Hi Alexandre,

Can you please advise, what is status of this request?

Thank you,

I

IB.1
IB.1Author
Associate III
February 11, 2021

Hi Alexandre,

Can you please advise, what is status of this request?

Thank you,

I

IB.1
IB.1Author
Associate III
March 10, 2021

Hi Alexandre,

Can you please advise, what is status of this request?

Thank you,

I