Cortex-M0 MCU中断向量重定位的高效方法  

An Efficient Method of Interrupt Vector Relocation for Cortex-M0 MCU

在线阅读下载全文

作  者:俞庆 刘贯营 Yu Qing;Liu Guanying(Nanjing SUMEC Intelligence Technology Co.,Ltd.,Nanjing 210032,China)

机构地区:[1]南京苏美达智能技术有限公司,南京210032

出  处:《单片机与嵌入式系统应用》2023年第9期24-28,共5页Microcontrollers & Embedded Systems

摘  要:为了在不具备中断向量硬件重定位的普通Cortex-M0架构MCU上实现IAP功能,提出了一种中断向量重定位的通用方法。该方法不依赖于MCU的硬件特性,而是基于软件实现梯子函数,从而实现中断向量的重定位。文中深入研究了该方法并进行了改进,大幅减小了中断向量重定位过程中的时间开销,提升了中断响应速度。本文以STM32F030为对象,详细介绍了该方法的原理,给出了Keil环境下梯子函数的实现代码和分散加载文件的写法。目前,该方法已经在实际产品中得到检验和推广。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.

关 键 词:CORTEX-M0 IAP BOOTLOADER 中断重定位 STM32F030 

分 类 号:TP302[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象