cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin port on Waveshare STM32F746 development board

fournier_g
Associate
Posted on March 02, 2017 at 20:43

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.

staticconst

GUI_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?

staticconst

GUI_WIDGET_CREATE_INFO

_aDialogCreate

[] = { {

FRAMEWIN_CreateIndirect

,

'Framewin'

,

ID_FRAMEWIN_0

, -1, 0, 1024, 600, 0, 0x0, 0 },

Regards.

1 REPLY 1
ARama.1
Associate II

Hi,

This might be outside ur issue. but i've also purchased same kit. but couldnt bring up display.

basically i couldnt use the sample code waveshare provided for 7inch display to be compatible with stm32 cube ide.

can u pls help me with sample code if any?

Anand.