摘要
对于内带IAP功能的嵌入式微控制器LPC2119,提出了一种基于IAP和USB技术的嵌入式系统应用程序升级新方法.采用U盘作为程序代码存储设备,并将微控制器内部存储器SRAM和Flash进行有效的区间分配.微控制器通过外部扩展的USB接口将U盘中代码读入到微控制器片内SRAM中相应区间,再调用微控制器的IAP功能将SRAM中代码写入片内相应的Flash分区中,实现嵌入式应用程序在线升级.给出了该方法的详细实现技术和程序流程图,该方案使嵌入式应用程序升级相当简单,受环境影响小.
A new embedded software update solution based on IAP and USB was proposed for the microcontroller LPC2119 with IAP function. Embedded software code was copied from a USB flash disk into on-chip RAM of the microeontroller through an expanded USB interface, and then the code was written into the on-chip Flash by calling the IAP function of the microcontroller, thus online embedded software update was accomplished. The USB flash disk worked as a program code storage equipment. The on-chip Flash and the SRAM are divided into a number of storage segments. The realization technology and the flow-chart of this solution were introduced. This solution simplifies the embedded software update, and is little influenced by the environment.
出处
《湖南大学学报(自然科学版)》
EI
CAS
CSCD
北大核心
2009年第6期41-44,共4页
Journal of Hunan University:Natural Sciences
基金
国家科技部中小科技型企业创新基金资助项目(07C26224301761)
关键词
嵌入式应用程序
存储器分配
程序升级
在应用编程
embedded software
memory allocation
software update
IAP(in application programming)