作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

总线式ECU两级Bootloader的设计与实现

戚长城1a,杨延相1b,张平2,刘昌文1a   

  1. (1.天津大学a.内燃机燃烧学国家重点实验室; b.内燃机研究所,天津 300072;2.浙江大学动力机械与车辆工程研究所,杭州310027)
  • 收稿日期:2014-09-01 出版日期:2015-07-15 发布日期:2015-07-15
  • 作者简介:戚长城(1989-),男,硕士研究生,主研方向:电子控制技术;杨延相,教授、博士生导师;张平,博士后;刘昌文,教授、博士生导师。

Design and Implementation of Two-level Bootloader for Bus Electronic Control Unit

QI Changcheng  1a,YANG Yanxiang  1b,ZHANG Ping  2,LIU Changwen  1a   

  1. (1a.State Key Laboratory of Engine Combustion; 1b.Internal Combustion Engine Research Institution,Tianjin University,Tianjin 300072,China; 2.Power Machinery & Vehicular Engineering Institute,Zhejiang University,Hangzhou 310027,China)
  • Received:2014-09-01 Online:2015-07-15 Published:2015-07-15

摘要: 针对传统Bootloader技术应用于车用电子控制单元(ECU)在线编程中的固有缺陷,采用国际标准控制器局域网络标定协议,使用U盘携带目标下载代码,并基于控制器局域网络总线设计具备两级Bootloader功能的智能节点和车用ECU端的两级配套软件。以飞思卡尔的MC9S12G128单片机为系统平台,给出具体硬件原理以及对应的软件设计方案。通过对两级Bootloader的性能评估与测试结果表明,该智能节点作为车用ECU程序升级仪便捷、可行,解决了传统方案中存在的应用程序代码不安全、成本高和占用Flash存储空间较大等问题,具有较高的可靠性。

关键词: 电子控制单元, CAN总线, CAN标定协议, 两级Bootloader, 程序升级仪, 应用内编程, Flash内存

Abstract: Aiming at the defects of the traditional bootloader in programming vehicle Electronic Control Unit(ECU) on-line,a smart node with the capability of two-level bootloader and its supporting software on ECU are designed based on CAN bus and the international standard CAN Calibration Protocol(CCP),which use USB Disk to carry target software code.A special scheme and its software project are presented with MC9S12G128 of Freescale.Evaluation and test results show that the smart node is convenient,feasible and with high reliability as updating instrument.Moreover,defects of current software updating methods like the insecurity of application code,a high cost and requirement of more flash memory are avoided successfully and simultaneously.

Key words: Electronic Control Unit(ECU), CAN bus, CAN Calibration Protocol(CCP), two-level Bootloader, program updating instrument, In Application Programming (IAP, Flash memory

中图分类号: