1. Function and purpose
There are two pins BOOT0 and BOOT1 on each STM32 chip. The level status of these two pins when the chip is reset determines which area the program starts from after the chip is reset.
BOOT1=x BOOT0=0 // Boot from user flash memory, this is the normal working mode.
BOOT1=0 BOOT0=1 // Boot from system memory. The program function started in this mode is set by the manufacturer.
BOOT1=1 BOOT0=1 // Boot from built-in SRAM. This mode can be used for debugging.
2. Usage
Normally, the BOOT0 and BOOT1 jumpers are both set to 0 (ground). However, in the case of ISP download, BOOT0=1, BOOT1=0. After the download is complete, the BOOT0 jumper is set back to 0, that is, BOOT0=0, BOOT1=0.
3. Notes
Generally, the built-in SRAM is not used for booting (BOOT1=1BOOT0=1), because the data in the SRAM will be lost after the power is off. In most cases, SRAM is only used for debugging, and it can also be used for other purposes. For example, to do local fault diagnosis, write a small program to load it into the SRAM to diagnose other circuits on the board, or use this method to read and write the Flash or EEPROM on the board. This method can also be used to remove the read and write protection of the internal Flash. Of course, when the read and write protection is removed, the content of the Flash is automatically cleared to prevent malicious software from copying.
Previous article:STM32 system clock setting, using external active crystal oscillator related configuration issues
Next article:The pins of stm32 have two uses
- Popular Resources
- Popular amplifiers
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
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- A brief discussion on new Wi-Fi 7 technologies
- 8. "Wanli" Raspberry Pi car - socket learning (local communication)
- Want to buy used AES-ULTRA96-G
- Can I use a mobile IoT card to connect to the telecom AEP platform?
- [N32L43X Review] 6. USART to implement ModbusRTU slave
- If you were an electronic engineer setting up a stall, what would you sell?
- CC2541 Bluetooth ADC
- More images of the sensor suite
- Modelsim 10.5b
- Problems with optocoupler measurements