1. Purpose
Since the number of times the STM32 FLASH can be erased and written is limited, in order to protect our FLASH and extend the use time of the MCU, we can debug on the SRAM. SRAM is a temporary register, and the content inside will be lost after power failure. It has the same function as the memory stick on our PC. If the STM32 FLASH is set to read protection so that the program cannot be burned, the FLASH read protection can be removed by starting the program from SRAM.
2. Development Environment
1. Applicable chips: All STM32F4 chips
2. Firmware library: STM32F4xx_DSP_StdPeriph_Lib_V1.8.0
3,IDE:MDK517
3. Set Qptions for Target
Please set it according to the space required by your chip and program.
Add precompiled macro VECT_TAB_SRAM.
Add the initialization file path: C:\Keil_v5\ARM\Pack\Keil\STM32F4xx_DFP\2.11.0\MDK\Boards\Keil\MCBSTM32F400\Blinky\Debug_RAM.ini
(the installation path of MDK is different here)
Add the initialization file path: C:\Keil_v5\ARM\Pack\Keil\STM32F4xx_DFP\2.11.0\MDK\Boards\Keil\MCBSTM32F400\Blinky\Debug_RAM.ini
(the installation path of MDK is different here)
Previous article:STM32F4 (Using SysTick to accurately measure the program running time)
Next article:STM32F4(CAN)
- 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
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- 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
- RTW Code Generation and DSP Development
- TI Action Camera and Handheld Gimbal Solutions
- PCB industry status
- 【Showing goods】The second wave
- EEWORLD University ---- HVI Series: Mastering the Art and Fundamentals of High Voltage Gate Driver Design
- TI's new MCU is coming: 10 times the computing power of previous flash-based MCUs, are you excited?
- How to enable TMU of 28377d.
- "【TGF4042 Signal Generator】" Potential Compensation Test
- Gain insight into difficult-to-measure signals with ADI’s precision
- Current carrying capacity of PCB traces and vias