BOOT0=1
BOOT1=0
, it will enter the built-in ISP program, which can basically meet the needs of program upgrades.
However, how to enter this mode is a problem. Some people on the Internet use the handshake signal of the serial port to control it, but this will exceed 3 lines (RX TX GND).
Yesterday, a method was tested. The host computer issued an instruction. After the STM32 user's own program was parsed, it used its own IO port to control a simple delay circuit to pull up BOOT0, and then the chip restarted to enter ISP. After the refresh is completed, jump into the user program to run, and the control is returned to the user program.
Set PB8 to ISP_DRV in the program, push-pull output; after a certain period of output, after the capacitor is fully charged, you can use NVIC_SystemReset() to restart (3.12 library). You can enter ISP mode.
In addition, you need to set the following vector table address in the program to enter the user program after checking the jump to user application after flash of the ISP program.
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
Tested several times and no abnormality was found.
Previous article:STM32 IAP implementation
Next article:The difference between STM32 large and small capacity chips
Recommended ReadingLatest update time:2024-11-16 13:48
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Project Submission
- Why is it said that the larger the ceramic capacitor package, the better the frequency characteristics?
- The smartwatch craze has left the survivors
- [TI recommended course] #Boost and buck-boost DCDC converters help wireless charging design#
- USB to TTL serial port debugging tool based on 2.4G wireless transmission
- When the epidemic in Shanghai is over, I plan to develop in other cities.
- [Technical Live Broadcast] Experts from MPS, Nexperia, and Tektronix gathered to discuss the key points of new energy vehicle power design
- Dogecoin suddenly became popular. Here is a tutorial on graphics card mining
- The difference between power module ripple and noise
- The rate at which the stm32 ADC interrupt occurs is only 12k/sec