1) User Flash = Flash built into the chip.
2) SRAM = RAM area built into the chip, which is the memory.
3) System Memory = A specific area inside the chip. A Bootloader is pre-installed in this area when the chip leaves the factory, which is usually called the ISP program.
The content of this area cannot be modified or erased after the chip leaves the factory, that is, it is a ROM area.
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. See the table below:
BOOT1=x BOOT0=0 Boot from user flash memory, which 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.
When the system is powered on, the CPU first determines which mode to start based on these two pins, then maps the starting address of the corresponding mode to address 0, and starts execution from address 0.
When the chip leaves the factory, ST burns a bootloader into ROM, which is system memory. The main task of this bootloader is to download the program to the built-in flash through uart1. The workflow is as follows:
The system memory boot mode must be exited after completing its task. This exit method is achieved through a hardware reset. During reset, the two pins BOOT[1:0] must be configured to enable the CPU to enter the appropriate mode after restarting.
It should be noted that the built-in SRAM is generally not used for booting (BOOT1=1 BOOT0=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 diagnosis of faults, 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 removing the read and write protection, the content of the Flash is also automatically cleared to prevent malicious software from copying.
Generally, the BOOT0 and BOOT1 jumpers are set to 0.
Previous article:STM32 Printf function implementation method
Next article:DMA working mode of USART6 of stm32F407
Recommended ReadingLatest update time:2024-11-17 06:30
- 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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- [Raspberry Pi Pico Review] Driver for the digital tube display module
- Problems with long pressing of infrared remote control
- CircuitPython in Space
- Schematic diagram of KeyStone DSP synchronous buck converter with VID function
- Experience sharing on porting ardupilot to ti platform
- CS8683 Mono 130W High Power Class D Amplifier IC Solution
- "Playing with the Board" + Replaying MicroPython on the STM32F7DISC (2)
- STM32F407VGTx FSMC and UART5 conflict issue?
- EEWORLD University Hall----Statistical Machine Learning
- 28335 serial communication method