1. IAP interrupt vector table remapping
1.1、Coretext-M3与Coretext-M4:
SCB->VTOR = 0X08000000|0X20000;
__set_PRIMASK(0);
There is a vector table offset register VTOR (0xE000ED08) in the System Control Block. When the system generates an interrupt, the kernel uses the value of this register to find the address of the interrupt vector table and then execute the interrupt routine code.
The VTOR register of M3/M4 is also set to the default value of 0 at the beginning, but it is explicitly modified in the code after the program runs to the SystemInit() function.
1.2、Coretext-M0:
__enable_irq();
memcpy((void*)0x20000000, (void*)0x08000800, 0xB4);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM);
For M0, the address of the interrupt vector table is fixed at address 0x0000 0000
Previous article:Summary of multi-channel sampling debugging using HAL library ADC conversion DMA mode for STM32F
Next article:STM32F030C6 external interrupt problem
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
- Today at 10:00 AM, live broadcast with awards: ADI's technologies and products in China's energy internet applications
- Can ultra-wideband really help all industries resume work and production?
- How to perform on-site PIM testing on RF connectors?
- IAR IDE for MSP430, 8051, ARM and other platforms
- What does damping coefficient mean? What is the damping coefficient KD value?
- There is a chip shortage now. Are there any domestic chips that can replace this buck-boost chip from Lingte? LTC1517ES5-3.3, SOT...
- MSP430 MCU Development Record (7)
- EEWORLD University Hall ---- EMC pre-test environment construction
- Restraining the complexity of embedded system design
- Device Basics - The Impact of Capacitor Self-resonance Frequency on Selection