GUIX Studio Example Not Displaying

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GUIX Studio Example Not Displaying

Jump to solution
1,923 Views
chadgraham
Contributor V

Hello,

I am working with an RT1062 dev board with LCD screen.  I have successfully displayed binary graphics to the display and am reasonably certain that the display is working as intended using the SDK.

Due to the fact that our system will be running Azure RTOS, I am trying to get GUIX setup so that I can use GUIX Studio to develop the GUI and then run it on the dev board.  Following the example https://docs.microsoft.com/en-us/azure/rtos/guix/guix-studio-10 as a guide, I have setup a GUIX studio project and successfully integrated it into my code such that I can now execute my code and see the screen update with the intended canvas color.  (I used this as a simple check to ensure that GUIX was initialized and working.)

That said, I have added a text prompt and some button icons, but only the canvas color is shown.  I have tried playing with the properties, setting the Z level to top-most, changing the text font/color, etc...  In MCUXpresso, I have copied and pasted the example and updated the variable names, but no luck.

Has anyone else setup and used GUIX studio to generate and run a GUI on the RT1062?

Code:

void XXX::_initDisplay( GX_WINDOW_ROOT * _window)
{
    /* Initialize the GUIX library */
    gx_system_initialize();

    /* Configure the main display. */
    gx_studio_display_configure(
        LCD_DISPLAY,                      /* Display to configure*/
        _graphicsDriver, /* Driver to use */
        LANGUAGE_ENGLISH,                  /* Language to install */
        LCD_DISPLAY_THEME_1,        /* Theme to install */
        &_window);                     /* Root window pointer */

    /* Create the screen - attached to root window. */
    gx_studio_named_widget_create(
        ( char *) _DISPLAY_NAME.c_str(),
        (GX_WIDGET *) _window,
        GX_NULL);

    /* Show the root window to make it visible. */
    gx_widget_show( _window);
}
void XXX::_threadEntry( ULONG thread_input)
{
  /* Let GUIX run. */
  gx_system_start();

  // Enable the backlight
  _lcd_display->setBacklightEnable( true);

  while(1)
  {
    tx_thread_sleep( _THREAD_SLEEP_TICKS);
  }
}

GUIX Studio:

2021-07-13_11-16-44.jpg

 

0 Kudos
Reply
1 Solution
1,911 Views
chadgraham
Contributor V

Hello,

I was able to track down my issues and now have the display working.  In case other people have a similar issue, I had two bugs that ultimately stopped things from working.

The first was a naming issue in the gx_studio_named_widget_create() function.  As part of my debugging, I had blown away my original window and recreated it with default settings.  In doing this, I forgot to update the widget name and GX didn't know to create the window on the display. 

The second issue was in my custom driver where I had a pointer that wasn't incrementing properly.  After comparing the canvas buffer memory to the screen frame buffer, I found that the frame buffer was only being set to the first color value... which is why I thought the screen's background color was being properly controlled.

View solution in original post

0 Kudos
Reply
2 Replies
1,320 Views
vipuljain91
Contributor I

@chadgraham 

Hello, I have taken example of GUIX from SDK for MIMXRT1062, I was also facing the half screen display issue. But when I recreate  the window in GUIX taking 320*480 resolution I am not getting any thing on display. would you please help me  

0 Kudos
Reply
1,912 Views
chadgraham
Contributor V

Hello,

I was able to track down my issues and now have the display working.  In case other people have a similar issue, I had two bugs that ultimately stopped things from working.

The first was a naming issue in the gx_studio_named_widget_create() function.  As part of my debugging, I had blown away my original window and recreated it with default settings.  In doing this, I forgot to update the widget name and GX didn't know to create the window on the display. 

The second issue was in my custom driver where I had a pointer that wasn't incrementing properly.  After comparing the canvas buffer memory to the screen frame buffer, I found that the frame buffer was only being set to the first color value... which is why I thought the screen's background color was being properly controlled.

0 Kudos
Reply