cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMx 4.25 & STemWin & WM_MULTIBUF_Enable(1)

Posted on May 30, 2018 at 01:15

I make the small project for F746 Discovery with STemWin (small test window with button) for Keil

After the project is compiling & the start  - black screen.

void GRAPHICS_Init(void)

{

/* Initialize the GUI */

GUI_Init();

WM_MULTIBUF_Enable(1);

/* Enable the multi-buffering functionality */

/* Activate the use of memory device feature */

/* USER CODE BEGIN WM_SetCreateFlags */

//WM_SetCreateFlags(WM_CF_MEMDEV);

/* USER CODE END WM_SetCreateFlags */

}

I am a comment line

//WM_MULTIBUF_Enable(1);

An image appears on the screen after this.

Why does not  WM_MULTIBUF_Enable(1)  work?

#stemwin #cubemx #multibuf
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on June 01, 2018 at 03:37

Hello,

GHARBI.Nawres

I launched your project.

I replaced the version of CubeMX in your file .ioc (4.26 -> 4.1)

The project is launched under the condition

//WM_MULTIBUF_Enable(1);

or

WM_MULTIBUF_Enable(0);

BUT! If I compile the project with the condition

WM_MULTIBUF_Enable(1);

After the power is turned off and on...

a project does not start...

I am very vexed.

Please check it again carefully/

With Regards,

Vitaliy.

View solution in original post

7 REPLIES 7
Imen.D
ST Employee
Posted on May 30, 2018 at 10:01

Hello

Chernobay.Vitali.002

,

May be this not related to WM_MULTIBUF_Enable (1) function! But is due to your configuration.

We will check your issue internally and come back to you asap.

With Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee
Posted on May 30, 2018 at 10:10

Hi

Chernobay.Vitali.002

,

Please keep all posts in this discussion and do not duplicate the same question in other threads as

https://community.st.com/0D50X00009XkXi4SAF

With Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on May 30, 2018 at 12:02

Hello, Imen D

I made a standard project with the default F746Discovery board configuration from CubeMX.

I did not add anything to the project for Keil. I am the only press Build after a project generation from CubeMX.

�?�ou can easily check with a standard F746Discovery board.

Nawres GHARBI
ST Employee
Posted on May 31, 2018 at 10:19

Hi Vitaliy, 

after investigating your ioc I find some issues:

1- Screen height and width are wrong in layer and graphics config

2- LCD and DMA2D interrupts are set to 0 

Please find attached you ioc fixed

PS: if it doesn't work please add 'WM_Paint(pMsg->hWin);' in the user tag of  'case WM_INIT_DIALOG:' in DLG file

Posted on May 31, 2018 at 12:25

Hello,

GHARBI.Nawres

0690X0000060BSjQAM.png

On the

site

st.com

there is only the latest version 4.1

I really want to get a new version as soon as possible.

Many great thanks for the answer.

Posted on June 01, 2018 at 03:37

Hello,

GHARBI.Nawres

I launched your project.

I replaced the version of CubeMX in your file .ioc (4.26 -> 4.1)

The project is launched under the condition

//WM_MULTIBUF_Enable(1);

or

WM_MULTIBUF_Enable(0);

BUT! If I compile the project with the condition

WM_MULTIBUF_Enable(1);

After the power is turned off and on...

a project does not start...

I am very vexed.

Please check it again carefully/

With Regards,

Vitaliy.