stm32 MCU does not run after connecting to 5v power supply

cxzhou520 注册会员
2023-02-25 18:27

There could be a variety of reasons for this problem. Here are some common problems and solutions:

Power problem: Please check that the power supply you are using is working properly and that the connection is correct. You can use a voltmeter to check that the power supply is producing the correct voltage.
Chip damage: When burning code, if you use the wrong burning parameters or do not do it properly, it may cause chip damage. In this case, you need to replace the chip.
Peripheral connection problems: If you have connected other peripherals, check that the power supply for these peripherals is working properly and that they are connected correctly.
Program problems: Check that your program is correct. You can use the debugger or the serial port output to check that the program is running. If there is a problem with the program, you need to fix it.
Burning problems: Recheck your burning process to make sure that you are using the correct burning tools and burning parameters and that there are no errors in the burning process.
Note that before checking for these problems, make sure you have connected the chip correctly. If your chip is not connected correctly, it may not work properly. If you still cannot resolve the problem, consider seeking professional help.

doxy1015 注册会员
2023-02-25 18:27

Part of this answer refers to GPT, GPT_Pro better solve the problem
This situation is likely to be the power supply is insufficient, or the single chip microcomputer is damaged and can not work normally. First, you need to check whether the output voltage of the power supply is stable. If it is not stable, you can try to reconnect the power supply or use another power supply to replace it. Secondly, it is necessary to check the status of the single chip microcomputer. If the single chip microcomputer is damaged because of external interference or its own reasons, it will not work normally.

Generally speaking, you can use the following method to determine whether the single chip microcomputer is available:

  1. Use a special MCU test board. This kind of board can help us detect whether there is a fault single chip microcomputer;

  2. Connect the single chip microcomputer to the development board and use the debugger to set it up. During debugging, if the corresponding port cannot be read or written, the single chip is faulty.

  3. If the above methods do not help us find the problem, it is necessary to use an external device to test the single chip computer. Before this can first use some software to test the function of the single chip computer. In general, these test software can help us find problems with faulty ports, performance speed, etc.

In short, if the stm32 microcontroller does not run after connecting to the 5v power supply, we can find out the problem through the above method, so as to ensure that the stm32 microcontroller can work normally.
If the answer is helpful, please accept it.

cythere 注册会员
2023-02-25 18:27

Reference gpt
This problem may have a number of possible causes, here are some possible solutions:

1. Check the hardware connection: Make sure you have connected the power cable correctly and the power supply voltage is correct(i.e. 5V).

2, check the power supply: please ensure that your power supply has enough power to provide the required current for your STM32 microcontroller.

3, check the circuit board: please check whether your STM32 MCU circuit board is damaged or has other faults.

4. Check the code: Make sure your code has no errors and has compiled correctly.

5. Debugging: Use debugging tools and step-by-step debugging to determine the cause of the problem. By executing the code step by step and observing the behavior of the microcontroller, you may be able to determine the source of the problem.

If you are still unable to resolve the problem, it is recommended to seek help from the e-forum or other STM32 MCU community in order to understand the problem more deeply and get professional help.

flashgirl_xm 注册会员
2023-02-25 18:27

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > this may be due to burn the code has a problem, or there is something wrong with the circuit. It is recommended to check the burned code to make sure there is no problem with the code and check the circuit to make sure there is no problem with the circuit.

About the Author

Question Info

Publish Time
2023-02-25 18:27
Update Time
2023-02-25 18:27