I.MXRT1064 - emWin - Issue with GUI_SetOrientation

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

I.MXRT1064 - emWin - Issue with GUI_SetOrientation

750 Views
chris_lingwood
Contributor I

Good day all,

I am using the NXP I.MXRT1064-EVK for some screen prototyping with the following constraints/features

- Using a ST7789 based display (320x240, 16bits per pixel)

- emWin is working, I am able to write text/draw images/create graphs on the display.

- One screen buffer should be a total of 153,000 bytes. 

- I have a total of 350,000 bytes declared as part of GUI_NUMBYTES.

- I have 2 GUI_BUFFERS

When calling GUI_SetOrientation() I am getting a return value of 1. Which by the documentation, looks to be a failure.

From trawling the web, I am seeing this usually occurs when emWin has not been given enough memory as GUI_SetOrientation creates a new frame. I am sure I have declared more than enough memory for the two frames however I am still receiving this error.

Any help would be greatly appreciated. Thanks! 

Labels (2)
0 Kudos
1 Reply

615 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Chris Lingwood

  Do you try to write a small code to test the GUI_SetOrientation() ?

  Take an example, just use the very simple code, this is my test result, we can find the return flag is 0:

pastedImage_1.png


Have a great day,
Kerry

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos