Newbie:Unable to use emWin

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

  • Newbie:Unable to use emWin

    Hello
    I am using emWin through Dave IDE from infineon.
    I have multiple problems.
    1. I am unable to initialize SSD1963 based TFT screen of resolution 320*240
    I can do that by functions written by me.
    But function calls like
    GUI_SetBkColor(GUI_BLUE);
    Don't do anything. Probably no function seems to have been called.
    My project compiles okay without any error, so project does find GUI.h and other files.

    2. When I launch GuiBuilder , and drag anything to work area, I get an error
    "No valid parent dialog exists"

    Can someone point out where my mistake lies?
    Tired now after searching for entire last week
  • Moved from "SEGGER SystemView related" to "emWin related".
    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.
  • Hi,

    1.
    calling the function GUI_SetBkColor() alone doesn't do anything. Afterwards you have to call a GUI_Clear() to fill the screen with the color set by GUI_SetBkColor().

    This should work:

    C Source Code

    1. #include "GUI.h"
    2. /*********************************************************************
    3. *
    4. * MainTask
    5. */
    6. void MainTask(void) {
    7. GUI_Init();
    8. GUI_SetBkColor(GUI_BLUE);
    9. GUI_Clear();
    10. while (1) {
    11. GUI_Delay(100);
    12. }
    13. }
    Display All


    2.
    Prior of adding any widgets you have to set a background window. The first step should be selecting either a frame window or a normal window.


    Regards,
    Sven
    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.
  • Hello Sven

    Thanks for replying. I was not notified on my email about your reply...strange!!

    Anyways.
    I use SSD1963 with 8-bit MCU parallel interface.

    I wrote my own init routine and a standard SSD1963 driver from elsewhere.
    Now with this i can draw any color and any Bitmap on my screen (320x240, 5.7")

    Although when i integrate emwin in my project ,this does not happen.
    When i change my init code then some observation is observed as below..
    Sometimes only black color fills screen, sometimes entire screen is not covered.
    Sometimes the TFT doesnt initialise.

    I think some definitions in LCDconf.c and my init code do not agree with each other..

    I am attaching my init code and my conf file

    Can you correct it and post it here?

    Attached main.c and LCDconf.c files here
    Image of what i get on the LCD is attached too
    Images
    • 320x240_TFT_DISPLAY.jpg

      129.11 kB, 852×480, viewed 474 times
    Files
    • Sources.zip

      (6.83 kB, downloaded 380 times, last: )

    The post was edited 1 time, last by abicash ().