Skip to main content
lukabit
Associate
December 18, 2016
Solved

STemWin: program stays in GUI_Init function.

  • December 18, 2016
  • 2 replies
  • 1023 views
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
This topic has been closed for replies.
Best answer by Self.Glenn
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

2 replies

Self.Glenn
Self.GlennBest answer
Visitor II
December 18, 2016
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

lukabit
lukabitAuthor
Associate
December 20, 2016
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.