In order to implement the IAP function on the common Cortex-M0 MCU which does not support interrupt vector hardware relocation
a general method of interrupt vector relocation is proposed.This method does not depend on the hardware characteristics of MCU
but it is based on the ladder function implemented by software
and then realizes the relocation of interrupt vector with the ladder function.In this paper
the method is deeply studied and improved
which greatly reduces the time cost in the process of interrupt vector relocation and improves the interrupt response speed.Taking STM32F030 as the object
the paper introduces the principle of this method in detail
and gives the implementation code of ladder function and the writing method of scatter-loading file under Keil environment.At present
the method has been tested and promoted in products.