Skip to main content
divner
Associate II
October 27, 2011
Question

Stm32 Embedded GUI Lib V2.0.0

  • October 27, 2011
  • 13 replies
  • 3023 views
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
    This topic has been closed for replies.

    13 replies

    Tesla DeLorean
    Guru
    October 27, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    October 27, 2011
    Posted on October 27, 2011 at 23:38

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

    /b3a36b89

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    divner
    divnerAuthor
    Associate II
    October 27, 2011
    Posted on October 28, 2011 at 00:40

    Andrew Neil
    Super User
    October 30, 2011
    Posted on October 30, 2011 at 17:00

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

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    divner
    divnerAuthor
    Associate II
    October 31, 2011
    Posted on October 31, 2011 at 06:20

    samuel239955_st
    Visitor II
    July 17, 2012
    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

    Tesla DeLorean
    Guru
    April 2, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    a9d
    Visitor II
    April 2, 2013
    Posted on April 02, 2013 at 15:53

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

    Andrew Neil
    Super User
    April 2, 2013
    Posted on April 02, 2013 at 15:55

    Note that this thread is very old.

    ST recently anounced that they will be doing a ''free'' version of the Segger GUI library.

    So - which library are we actually talking about now?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.