cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin: program stays in GUI_Init function.

lukabit
Associate
Posted on December 18, 2016 at 13:12

Hi,

I'm creating the project using STemWin, and FreeRTOS on STM32F407IGT. My program is blocked in GUI_Init function. 0690X00000603WEQAY.jpg

I'm not sure how to check what is wrong, set up in wrong way(?).

The R2 and R3 registers are loaded, and next they are compared. These values are not equal, so that's why the program remains in the same place. When I set PC on 0x800695A address, the program runs correctly, LCD is initialized, and FreeRTOS runs. Could someone point me, what should I check to fix this?

I'm using FreeRTOS 8.2, and STemWin 5.32

#stm32f407 #freertos #stemwin
1 ACCEPTED SOLUTION

Accepted Solutions
Self.Glenn
Associate III
Posted on December 18, 2016 at 21:53

Hi,

Have you enabled:

RCC_AHBPeriphClockCmd(RCC_AHBPeriph_CRC, ENABLE);

The stemwin library uses it to make sure it is running on an stm32.

Glenn

View solution in original post

2 REPLIES 2
Self.Glenn
Associate III
Posted on December 18, 2016 at 21:53

Hi,

Have you enabled:

RCC_AHBPeriphClockCmd(RCC_AHBPeriph_CRC, ENABLE);

The stemwin library uses it to make sure it is running on an stm32.

Glenn

Posted on December 20, 2016 at 00:36

You're right. Thank you. When I have enabled clock for CRC module, the program runs correctly.