2018-05-29 04:15 PM
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 #multibufSolved! Go to Solution.
2018-05-31 08:37 PM
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.
2018-05-30 01:01 AM
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
2018-05-30 01:10 AM
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
2018-05-30 05:02 AM
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.
2018-05-31 01:19 AM
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
2018-05-31 03:36 AM
ioc attached
________________ Attachments : 746.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxY8&d=%2Fa%2F0X0000000azo%2FKB1gWkkzcXk8VP2Ma4o1Hi5psrvwaACg2zNArS3GWlw&asPdf=false2018-05-31 05:25 AM
Hello,
GHARBI.Nawres
On the
sitest.com
there is only the latest version 4.1I really want to get a new version as soon as possible.
Many great thanks for the answer.
2018-05-31 08:37 PM
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.