中国半导体行业协会封装分会会刊

中国电子学会电子制造与封装技术分会会刊

导航

电子与封装 ›› 2021, Vol. 21 ›› Issue (12): 120501 . doi: 10.16257/j.cnki.1681-1070.2021.1202

• 产品、应用与市场 • 上一篇    下一篇

基于CKS32F103CBT6的IAP固件升级的设计*

常浩;王彬;王云飞   

  1. 中科芯集成电路有限公司,江苏 无锡 214072
  • 收稿日期:2021-05-08 出版日期:2021-12-28 发布日期:2021-06-24
  • 作者简介:常浩(1987—),男,江苏靖江人,硕士,工程师,2013年毕业于江南大学,现从事MCU应用与验证工作。

The Design of IAP FirmwareUpdate Based on CKS32F103CBT6

CHANG Hao, WANG Bin, WANG Yunfei   

  1. China KeySystem & Integrated Circuit CO., Ltd., Wuxi 214072, China
  • Received:2021-05-08 Online:2021-12-28 Published:2021-06-24

摘要: 设计了一种基于在应用编程(In Application Programming, IAP)技术的ARM微控制器CKS32F103CBT6的固件升级方案,该方案系统研究了IAP技术。IAP引导程序实现了片内Flash的分区、串口Ymodem协议的通信和固件升级指令的响应,同时提出了断点续传、数据加密、存储校验的设计思想。测试结果表明,方案可以很好地实现固件的在线升级,提高了升级的可靠性、安全性,避免了升级过程中的误码、中断干扰等问题。由于外部干扰导致固件升级失败时,程序可恢复原来的运行状态,具备一定的纠错能力,在实际应用中具有一定的推广价值。

关键词: 固件升级, 串口Ymodem, 断点续传

Abstract: A scheme of IAP (in application programming) firmware update based on ARM controller CKS32F103CBT6 was designed, which systematically studied IAP technology. The bootloader program realized internal flash area division, serial Ymodem protocol communication and firmware update requests. Simultaneously, the design concepts of breakpoint resume, database encryption and storage verification were proposed. Experimental results showed that improving the reliability and security greatly and avoiding the error code and interference in the update process, this sheme could be used to realize firmware update. The program could resume the old status when the firmware update was failure, which had error correction capability and certain practical value and popularization value.

Key words: firmwareupdate, serialYmodem, breakpointresume

中图分类号: