Skip to main content
Graduate II
October 16, 2024
Solved

LWIP HTTPD and TouchGFX

  • October 16, 2024
  • 1 reply
  • 906 views

I am currently using the STM32H7B3I-DK for touchGFX development before moving to something in the STM32H743 family. I am curios about adding a simple webserver capability while running a touchGFX UI. I have implemented an httpd server on an Nucleo-H743ZI starting from this forum. Currently it seems to be using over 300KB of RAM (collectively from RAM_D1 and RAM_D2).
I am not sure if this much RAM is being used because I have not made any optimizations (as I am new to LWIP), or if this seems like a reasonable amount for a simple web server. If this is normal amount, I am thinking it does not seem feasible to try and run touchGFX and a server from the same MCU.

Does anyone have any advice on the feasibility of hosting a server and touchGFX UI from a STM32H743 MCU?

 

Thank you,
Ethan 

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello @EthanMankins,


    @EthanMankins wrote:

    I am thinking it does not seem feasible to try and run touchGFX and a server from the same MCU. 


    There are at least two parameters to take into account:

    - Memory size 

    - Performance

    For the memory size, most probably you need to add an external memories for TouchGFX: SDRAM for Frame buffer and External Nor Flash to store images, texts etc .. But this depends on your application.

    For performance, I don't see any reason to prevent you running TouchGFX and LWIP in parallel. You can reach 480MHz and enable the Cache. If not sufficient you can move to H7 Dual core: TouchGFX running on CM7 and LWIP on CM4.

     

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    October 17, 2024

    Hello @EthanMankins,


    @EthanMankins wrote:

    I am thinking it does not seem feasible to try and run touchGFX and a server from the same MCU. 


    There are at least two parameters to take into account:

    - Memory size 

    - Performance

    For the memory size, most probably you need to add an external memories for TouchGFX: SDRAM for Frame buffer and External Nor Flash to store images, texts etc .. But this depends on your application.

    For performance, I don't see any reason to prevent you running TouchGFX and LWIP in parallel. You can reach 480MHz and enable the Cache. If not sufficient you can move to H7 Dual core: TouchGFX running on CM7 and LWIP on CM4.

     

    Graduate II
    October 17, 2024

    Thank you for your Response.

    The minimum memory we can use for our frame buffers is currently 768KB due to screen size and color requirements. Our backend processes take around 50KB. Would you say the remaining ~200KB is a reasonable amount to host a basic web server and run the basic touchGFX interface?

    Technical Moderator
    October 17, 2024

    @EthanMankins wrote:

    Would you say the remaining ~200KB is a reasonable amount to host a basic web server and run the basic touchGFX interface?


    Hard to tell.. It depends on your basic TouchGFX interface and the content of the web page and other HAL stuff .. Need to test.