STemwin with STM32F429

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • STemwin with STM32F429

    Hi everyboby,

    I'm implementing the STemWin library (before migrate to EmWin) on my STM32F429IG.

    But I don't know how to start ! Is there a document that indicates step by step the things to do ?

    Regards,

    Fabrice
  • Hi Fabrice,

    When using the STemWin library you might want to use the Hello World example project which come with the STM32Cubef4 package. Thi is a good starting point and everything should be configured already. Of course this will only fit for one of the standard eval boards.

    But in general you need to to the following steps.

    1. Give emWin some memory.
    Open GUIConf.c and configure GUI_NUM_BYTES. This is used to allocate memory for emWin. How much you need depends pretty much on the application.
    If it is simple 150 - 500 KB should be enough. If it is getting more complex and you want to use memory devices you should spend emWin some more memory (maybe 2MB).

    2. Set up your LCDConf.c
    There are two major parts. First initialize the driver. This is done in LCD_X_Config(). Set the display size and the address of the frame buffer.
    Next step is to initialize the LCD controller. Do this in the driver callback LCD_X_DisplayDriver() when reacting on LCD_X_INITCONTROLLER. Here you have to set up the LCD controller and the GPIOs where the display is connected to.

    After these steps you should be able to see something on the LCD already (like a "hello world"). If you want to use the Chrome Art Accelerator further steps are required. But in this case I would simply copy paste the functions from the example config file.

    Attached is a config file which come with our emWin shipment. There are no external dependencies. Here it should be sufficient to adapt the GPIO init and the addresses of the frame buffer.

    Regards,
    Sven
    Files
    • LCDConf.zip

      (20.24 kB, downloaded 555 times, last: )
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.