We often need to set STM32 to enter low power mode at a certain time. Many people cannot burn the program again when entering low power mode for debugging. The solution is:
1. Boot0 must be pulled high, boot1 (PB2) must be pulled low, and then the power must be restarted. The MCU will enter the ISP programming mode. At this time, the program can be downloaded through serial port 1.
2. Press and hold the reset button first, then click MDK download, and then release the reset. Some boards do not have a reset pin, so you can also lead out the NRST pin.
3. When downloading with an emulator, if the emulator is connected to a reset line, you can turn on the hard reset in the download settings. (The current problem is that boot0 can only be pulled high, but it should have nothing to do with the boot method)
Both HW RESER and SYSRESERREQ are acceptable.
When using ST-Link to download a program, it prompts "flash timeout. reset the target and try it again"
After ensuring that other environments are configured correctly, configure as follows.
Previous article:How to implement PWM waveform with adjustable frequency and duty cycle in STM32
Next article:STM32PB2 (BOOT1) usage precautions
Recommended ReadingLatest update time:2024-11-15 07:47
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- GPCE4064B cannot be programmed
- “a data verification error occurred, file load failed” feasible solution
- Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis
- Collection! 19 methods and techniques for converting 5V to 3.3V
- Embedded C code optimization
- ESP32-S2-Saola-1 Review—by dcexpert
- Thank you for being there, thank you for the colorful life in the year
- Does anyone know about ST's new MPU? The model is STM32MP157A
- Guihang Shares Huayang Electric Co., Ltd. recruits embedded software and hardware engineers
- Participate in offline forum activities and give a speech on the evolution of semiconductor 5G testing