2577 views|9 replies

33

Posts

0

Resources
The OP
 

MCU restart freeze problem help [Copy link]

Now, there is a problem that occasionally occurs during the use of STM32F429, that is, the system freezes when restarting. This problem will occur whether it is pressing the RESET button, soft restarting the program, or power-off restarting. It does not occur every time, but occasionally. After it occurs, the program must be re-burned to return to normal. It is not clear whether the freeze is caused by the program not starting or because the program ran away. My BOOT0 and BOOT1 are both 0. Have the majority of netizens encountered this problem? What is the solution?
This post is from stm32/stm8

Latest reply

It is very likely that the Flash data was erased incorrectly.   Details Published on 2021-3-7 12:54
 

9702

Posts

24

Resources
2
 

What microcontroller is this? Is there any operation to erase or write FLASH in the program?

This post is from stm32/stm8

Comments

This situation occurs in both STM32F429VET6 and STM32F429IGT6. There are operations of erasing and writing FLASH in the program, but there are no operations of erasing and writing FLASH during RESET and power-off restart.  Details Published on 2021-3-6 15:38
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 

33

Posts

0

Resources
3
 
littleshrimp posted on 2021-3-6 15:22 What microcontroller is this? Is there any operation to erase or write FLASH in the program?

This situation occurs in both STM32F429VET6 and STM32F429IGT6. There are operations of erasing and writing FLASH in the program, but there are no operations of erasing and writing FLASH during RESET and power-off restart.

This post is from stm32/stm8

Comments

The FLASH data is likely to be erased. If the erase and write FLASH operations can run normally, try to temporarily block these codes to see if they work normally. You can also read the FLASH data after the problem occurs and compare the changes to the original data.  Details Published on 2021-3-6 15:50
 
 

10

Posts

0

Resources
4
 

MCU restart freeze problem help

This post is from stm32/stm8

Comments

Have you encountered this situation as well?  Details Published on 2021-3-6 15:42
 
 
 

33

Posts

0

Resources
5
 
zxopenlyt posted on 2021-3-6 15:39 MCU restart freeze problem help

Have you encountered this situation as well?

This post is from stm32/stm8
 
 
 

9702

Posts

24

Resources
6
 
zhangliyuan posted on 2021-3-6 15:38 This situation occurred on both STM32F429VET6 and STM32F429IGT6. The program contains operations of erasing and writing FLASH, but during RESET and power-off restart...

The FLASH data is likely to be erased

If the system can run normally without erasing and writing FLASH, try to temporarily block these codes and see if it works normally.

You can also read out the FLASH data after a problem occurs and compare it with the original data to see if there are any changes.

This post is from stm32/stm8

Comments

The FLASH data is erased. In this case, is it because the code operates the FLASH improperly or is it automatically erased? Why does this happen?  Details Published on 2021-3-6 21:11
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

2w

Posts

341

Resources
7
 
littleshrimp posted on 2021-3-6 15:50 It is very likely that the FLASH data has been erased. If the erase and write FLASH operations can be removed and the system can run normally, try to temporarily block these codes and try...

FLASH data is erased,

In this case, is it because the code operates the FLASH improperly or is it automatically erased? Why does this happen?

This post is from stm32/stm8

Comments

If it is confirmed that it has been erased, it is usually because of code logic problems or external factors that caused the program to run away and execute code that should not be executed.  Details Published on 2021-3-7 08:32
 
 
 

7422

Posts

2

Resources
8
 

After the computer crashes, use the debugger to export the flash bin and compare it with the original bin to see if the flash has really been tampered with.

This post is from stm32/stm8
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

9702

Posts

24

Resources
9
 
qwqwqw2088 posted on 2021-3-6 21:11 The FLASH data is erased. In this case, is it because the code operates the FLASH improperly or is it automatically erased? Why does this happen?

If it is confirmed that it has been erased, it is usually because of code logic problems or external factors that caused the program to run away and execute code that should not be executed.

This post is from stm32/stm8
 
 
 

1942

Posts

2

Resources
10
 

It is very likely that the Flash data was erased incorrectly.

This post is from stm32/stm8
 
 
 

Guess Your Favourite
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