6336 views|7 replies

9

Posts

0

Resources
The OP
 

About GUI_Init stuck when emwin is ported to stm32f2 [Copy link]

The program compiled and passed the simulation, but it got stuck at GUI_Init. It also couldn't jump to the stuck place when it stopped. The solutions on the Internet all said that CRC was not enabled or there was not enough memory. CRC has been turned on in stm32cubeMX. I also tried to add RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE); to the program, but it prompted that the function was not defined. I defined it like this: void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) { assert_param(IS_RCC_AHB1_PERIPH(RCC_AHB1Periph)); //Parameter correction assert_param(IS_FUNCTIONAL_STATE(NewState)); //Parameter verification if (NewState != DISABLE) { RCC->AHB1ENR |= RCC_AHB1Periph; //Open the corresponding peripheral clock output port} else { RCC->AHB1ENR &= ~RCC_AHB1Periph; //Close the corresponding peripheral clock output port} } Still stuck. As for the memory problem, I also opened the external memory on cubeMX (there is also an external memory on the board), and also tried to comment out the unused functions, but it didn't work. Please help me


This post is from stm32/stm8

Latest reply

How did you solve this problem? You are using CubeMX, but why do you use the standard library? I also encountered the same GUI_INIT() stuck problem. Where did you use the standard library function? I also want to check mine.   Details Published on 2020-6-26 03:54
 

714

Posts

2

Resources
2
 
Then try to see if the GUI initialization can pass. If it can't pass, see if the transplanted initialization code is normal. If you suspect that the RAM is not enough, first set the SIZE in the h file to a smaller size to find out the specific problem and then see how to fix it.
This post is from stm32/stm8
 
Personal signatureHello astroturfers
 

374

Posts

3

Resources
3
 
The OP must load the CRC library file of ST.
This post is from stm32/stm8
 
 

9

Posts

0

Resources
4
 
wenyangzeng posted on 2019-3-12 09:38 The OP must load the CRC library file of ST.
Is this the library?
This post is from stm32/stm8

Comments

Yes  Details Published on 2019-3-12 10:43
 
 
 

374

Posts

3

Resources
5
 
Yes
This post is from stm32/stm8
 
 
 

1368

Posts

6

Resources
6
 
1) It is recommended to generate lib from the library source file and load it into the project, which can save a lot of compilation time. 2) Generally, making an interface consumes more memory, so you can remove the unused things first and try it out.
This post is from stm32/stm8
 
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 

9

Posts

0

Resources
7
 
To solve, I used the hal library but added the standard library function, and the problem was solved by replacing it with the hal library.
This post is from stm32/stm8
 
 
 

1

Posts

0

Resources
8
 
linlinlinxf posted on 2019-4-3 12:36 I used the hal library but added the standard library function. I changed it to the hal library and it was solved.

How did you solve this problem? You are using CubeMX, but why do you use the standard library? I also encountered the same GUI_INIT() stuck problem. Where did you use the standard library function? I also want to check mine.

This post is from stm32/stm8
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list