cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32 Embedded GUI Lib V2.0.0

divner
Associate II
Posted on October 27, 2011 at 08:20

Hi

Whilst compiling the demo with warnings enabled I get the following error

''src/graphicObject.c:1476:7: warning: the address of 'pPage' will always evaluate as 'true'''

This error is associated with the following from source file graphicObject.c

GL_ErrStatus DestroyPageControl ( GL_Page_TypeDef* pPage, uint16_t ID )

{

         uint32_t index = 0;

         if (!&pPage)

        {

               return GL_ERROR;

         }

       .....

      ......

}

What is being tested here?, the pointer or the address of the pointer?

Appreciate if somebody from the MCD Application Team could have a look at this.

There are also numerous other warnings being emitted from the library which clutter the output from the compiler (gcc in my case) and which make developing with the library most irritating.

I noted that the tool vendor's solution is to disable all warnings (most useful).

Best regards,

Noel Diviney.

#gui #don't-hijack-old-threads #when-will-gui-lib-forstm32f4? #setting-a-bad-example
13 REPLIES 13
Posted on October 27, 2011 at 16:46

No doubt it's trying to confirm pPage is not NULL, before accessing the structure. ie if (!pPage)

A lot of the demo board software seems to be missing source, perhaps because it's a bit of a dogs breakfast, with various third party code lashed together and written by interns. Assume that it's like free code on the internet, and value it, and your time accordingly.

Chat with your local FAE, and see if there is a newer/cleaner version.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III
Posted on October 27, 2011 at 23:38

Doubts have previously been expressed regarding the quality of the Graphics Library code:

/b3a36b89

divner
Associate II
Posted on October 28, 2011 at 00:40

Andrew Neil
Evangelist III
Posted on October 30, 2011 at 17:00

Did you mean to have some text in that post...?

divner
Associate II
Posted on October 31, 2011 at 06:20

samuel239955_st
Associate II
Posted on July 17, 2012 at 09:20

In the STM32 GUI Library IAR project, there are example for STM322XG_EVAL, STM32L152 EVAL, but no example for STM324XG. When will it available?

Regards

Samuel

Posted on April 02, 2013 at 15:47

Isn't the GUI Library included in the Demo Builder Platform?

http://www.st.com/web/en/catalog/tools/PF258142

V2.0.0 of the Library can be found here

http://www.element14.com/community/solutions/5949/l/stm-stm32-embedded-gui-library

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
a9d
Associate II
Posted on April 02, 2013 at 15:53

Thanks a lot. This is what I've been looking for