8059 views|15 replies

1181

Posts

0

Resources
The OP
 

The program of the microcontroller is lost, what's going on? [Copy link]

 

A device was returned for repair in the project. During the investigation, it was found that the BOOT program was missing, the application program was normal, and the BOOT area stored garbled code. The chip was STM32F407.

The program is write-protected. The BOOT area is not allowed to be modified by design. The problem cannot be found in the program. BOOT is restricted in any case and cannot be modified.

So I can't find the problem, I suspect it's caused by the hardware environment.

Damaged equipment, on-site power supply has problems, unstable, suspected this is the problem, but can't find the theoretical basis and solution

Friends! Do you have any insights? Thanks!

This post is from stm32/stm8

Latest reply

Check the power supply. When I was working on a project before, the power supply was not good. There seemed to be a small peak when it was powered on. Sometimes the microcontroller light was on but it did not work. It had to be reset.   Details Published on 2023-8-21 23:06
 

7422

Posts

2

Resources
2
 

Unstable power supply can easily lead to chip erase protection. I am not sure about 407, but I have used some microcontrollers that have experienced voltage jitter leading to erase protection.

This post is from stm32/stm8

Comments

It is possible.  Details Published on 2021-11-16 09:25
 
Personal signature

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

 

2926

Posts

0

Resources
3
 

The situation mentioned on the second floor does exist. You can power on the board and then power it off instantly, and try switching it on and off frequently hundreds of times to see if it works.

This post is from stm32/stm8
 
 

1412

Posts

3

Resources
4
 
freebsder posted on 2021-11-15 15:55 Unstable power supply can easily lead to chip erase protection. 407 I'm not sure, I have used some microcontrollers that have voltage jitter leading to erase protection...

It is possible.

This post is from stm32/stm8
 
Personal signature

没有什么不可以,我就是我,不一样的烟火! 

 
 

49

Posts

0

Resources
5
 

There may be something wrong with the design, or the power supply may be causing the chip to not start when powered on.

This post is from stm32/stm8
 
 
 

6742

Posts

2

Resources
6
 

It seems difficult to find the cause, and it is very difficult to reproduce this situation. However, you can try the method on the third floor to see if it can be reproduced. If it can be reproduced, check the probability of reproduction (how many times of switching on and off can it be reproduced), then change the power circuit, and use that method to verify and see if it can be reproduced. However, this method is time-consuming and laborious. I think you should not test it unless it is necessary. Just have a basic idea in your mind.

This post is from stm32/stm8

Comments

I think it is also caused by the poor design of the power supply. I can only redesign the power supply and see if there is still a problem.  Details Published on 2021-11-17 10:06
 
 
 

49

Posts

0

Resources
7
 

The power is turned off the moment it is powered on, and the chip is probably dead after hundreds of on-off tests.

This post is from stm32/stm8
 
 
 

49

Posts

0

Resources
8
 

The PIC/MCU I used before also encountered this problem. After being stored for a period of time, the program inside was gone.

This post is from stm32/stm8

Comments

I also suspected that it was a problem with the chip design, but this is difficult to verify.  Details Published on 2021-11-17 10:07
 
 
 

1181

Posts

0

Resources
9
 
wangerxian posted on 2021-11-16 11:12 It feels very difficult to find the cause of this problem, and it is very difficult to reproduce this situation. However, you can try the method on the third floor to see if you can reproduce it. If you can reproduce it...

I think it is also caused by the poor design of the power supply. I can only redesign the power supply and see if there is still a problem.

This post is from stm32/stm8
 
 
 

1181

Posts

0

Resources
10
 
Jiang Changhuo published on 2021-11-16 11:22 The PIC/MCU used before also encountered this problem. After storing it for a period of time, the program inside was gone.

I also suspected that it was a problem with the chip design, but this is difficult to verify.

This post is from stm32/stm8
 
 
 

1181

Posts

0

Resources
11
 

I encountered this problem again in a new project. There are 2 boards in total. I read the program and found two situations. One is that the whole space becomes FF, and the other is that the whole program space is interspersed with error bytes. Do you have any better insights? I redesigned the power supply part of the board to see if it will appear later. However, it will take another year to get the result. . . .

This post is from stm32/stm8
 
 
 

1

Posts

0

Resources
12
 
zhangdaoyu posted on 2022-7-29 16:01 This problem was encountered again in the new project. There are 2 boards in total. I read the program and found two situations. One is that the entire space becomes FF, and the other...

Hi, did you get any result for this problem?

This post is from stm32/stm8

Comments

No result, most likely it's a power supply problem. There are no problems with the power supply after the problem is solved, but the quantity is relatively small, and the revised version has not been shipped in large quantities yet.  Details Published on 2023-8-9 17:26
 
 
 

104

Posts

0

Resources
13
 

This question makes my scalp numb just thinking about it! I don’t know how to check it!

This post is from stm32/stm8

Comments

It is most likely a power supply problem. The redesigned power supply has not yet started mass production, so the result is still unknown.  Details Published on 2023-8-9 17:27
 
 
 

1181

Posts

0

Resources
14
 
cyun0223 posted on 2023-8-8 19:30 Hello, do you have any results on this issue?

No result, most likely it's a power supply problem. There are no problems with the power supply after the problem is solved, but the quantity is relatively small, and the revised version has not been shipped in large quantities yet.

This post is from stm32/stm8
 
 
 

1181

Posts

0

Resources
15
 
inkinessray posted on 2023-8-9 12:14 This kind of question makes my scalp numb just thinking about it! I don’t know how to check it!

It is most likely a power supply problem. The redesigned power supply has not yet started mass production, so the result is still unknown.

This post is from stm32/stm8
 
 
 

26

Posts

0

Resources
16
 

Check the power supply. When I was working on a project before, the power supply was not good. There seemed to be a small peak when it was powered on. Sometimes the microcontroller light was on but it did not work. It had to be reset.

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