AnsweredAssumed Answered

STemWin port on Waveshare STM32F746 development board

Question asked by fournier.gaetan on Mar 2, 2017

Hi,

I'm using the Waveshare Open746I-C Package B based on the STM32F746 development board with StemWin with 2 Meg SDRAM, on FreeRTOS, GT811 touch screen interface and 7 inches 1024x600 LCD.

After many hours of debugging everything works fine but I’m still facing a strange issue. Doing a simple two buttons GUI, the board goes directly into goes directly into my HardFault_Handler manager if the Framewin_CreateIndirect first coordinates are 0, 0.

staticconstGUI_WIDGET_CREATE_INFO_aDialogCreate[] = { { FRAMEWIN_CreateIndirect, "Framewin", ID_FRAMEWIN_0, 0, 0, 1024, 600, 0, 0x0, 0 }, { BUTTON_CreateIndirect, "Test 1", ID_BUTTON_0, 818, 390, 150, 67, 0, 0x0, 0 }, { BUTTON_CreateIndirect, "Test 2", ID_BUTTON_1, 818, 470, 150, 67, 0, 0x0, 0 }, // USER START (Optionally insert additional widgets) // USER END };

But if the Framewin starts another value like -1, 0 or 1, 0 than everything works fine, can someone with STemWin experience could tell me what I'm doing wrong?

staticconstGUI_WIDGET_CREATE_INFO_aDialogCreate[] = { { FRAMEWIN_CreateIndirect, "Framewin", ID_FRAMEWIN_0, -1, 0, 1024, 600, 0, 0x0, 0 },

Regards.

Outcomes