[go: up one dir, main page]

WO2017075852A1 - Procédé et système pour protéger un programme de travail d'une micro-unité de commande (mcu) - Google Patents

Procédé et système pour protéger un programme de travail d'une micro-unité de commande (mcu) Download PDF

Info

Publication number
WO2017075852A1
WO2017075852A1 PCT/CN2015/095517 CN2015095517W WO2017075852A1 WO 2017075852 A1 WO2017075852 A1 WO 2017075852A1 CN 2015095517 W CN2015095517 W CN 2015095517W WO 2017075852 A1 WO2017075852 A1 WO 2017075852A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
mcu
working
storage module
download
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/095517
Other languages
English (en)
Chinese (zh)
Inventor
陈海燕
王志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bangyan Technology Co Ltd
Original Assignee
Bangyan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bangyan Technology Co Ltd filed Critical Bangyan Technology Co Ltd
Publication of WO2017075852A1 publication Critical patent/WO2017075852A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of chip work program control, and in particular, to a method and system for protecting an MCU work program.
  • MCU Microcontroller Unit, Micro Control Unit.
  • Running memory refers to the memory when the MCU runs the program, also called RAM (referred to as the memory).
  • Flash Flash
  • Memory generally referred to as “Flash”
  • Flash is a type of memory device and is a kind of non-volatile memory.
  • an object of the present invention is to provide a method for protecting a working MCU that can facilitate the upgrading of a working program, is convenient to use, and reduces the occupation of an MCU bus resource.
  • another object of the present invention is to provide a protection MCU working program system which can facilitate the upgrading of the working program, is convenient to use, and reduces the occupation of the MCU bus resources.
  • a method for protecting an MCU working program comprising the steps of: S1, running a downloading program; S2, determining, by the downloading program, whether the working program should be run or should be upgraded, and if the working program is running, proceeding to step S3, if an upgrade is required
  • the program proceeds to step S4; S3, the download program moves the working program code from the external storage module to the corresponding address in the memory, and the MCU runs the working program after the completion of the movement; S4, the MCU receives the working program from the upper computer, and the download program works.
  • the program is written to the corresponding location in the external memory module, and then resets to repeat steps S1 and S2.
  • the download program and the work program are stored in different storage sectors of the same external storage module.
  • the external storage module is a FLASH memory.
  • the method for protecting the working program of the MCU further comprises the steps of: S01, first moving the BOOT code from the external storage module into the memory, and then running the BOOT code; S02, the BOOT code performing the action: moving the download program from the external storage module And / or work program to the corresponding address in the memory, after the completion of the move, perform step S1.
  • a system for protecting an MCU working program the system for implementing a method for protecting an MCU working program, the system comprising: an MCU, respectively connected to an external storage module and a memory, for running a downloading program and a working program; and an external storage module
  • the external storage module includes a first storage sector for storing a download program, a second storage sector for storing a work program, and a memory for The MCU's commands store download programs and/or work programs.
  • the first storage sector stores a BOOT code for guiding the MCU to move and run the download program and/or the work program.
  • the external storage module is a FLASH memory.
  • the invention firstly downloads the program by burning in the FLASH of the MCU, and after the MCU is powered on, the downloading program is run, and then the downloading program is used to upgrade the working program or to run the working program, so that the working program can be conveniently deleted after being deleted.
  • the implementation is upgraded and run.
  • a part of the sector storage program of the external storage module another part of the sector stores the working program, which saves the MCU interface bus resources, thereby saving cost; again, the invention has high security and convenient use.
  • the operation is stable and reliable, with good economic and social benefits.
  • the invention can be widely applied to various MCU work program management systems.
  • FIG. 1 is a schematic structural diagram of an embodiment of a system for protecting an MCU working program according to the present invention.
  • the method can be implemented as follows: in the FLASH memory of the MCU, the download program is first burned, the download program is run after the MCU is powered on, and then the download program is used to upgrade the work program or to run the work program. This way, when the work program is deleted, it can still be easily upgraded and run.
  • the implementation of the above method can be realized by externally connecting two pieces of FLASH memory, one piece of storage downloading program, and one piece of storing work program. After the download program runs, move the work program from another FLASH memory to the memory and run the work program. It can also be implemented with a piece of FLASH memory. When the MCU has more external chips, the interface resources will be tight. At this time, the advantage of FLASH is reflected.
  • part of the sector of the FLASH stores the download program
  • another part of the sector stores the work program.
  • the download program is moved from the address of the FLASH storing the download program to the memory, and after running.
  • the work program needs to be upgraded or the work program is moved from the address of the FLASH storing the work program to the memory.
  • the work program is deleted, it can be easily upgraded to protect the security of the work program.
  • the specific plan is as follows:
  • a system for protecting an MCU working program the system is used to implement a method for protecting an MCU working program, and the system includes:
  • the MCU is connected to the external storage module and the memory respectively for running the download program, the working program, and the moving of the BOOT code from the FLASH memory to the memory.
  • the external storage module adopts a FLASH memory
  • the FLASH memory includes a first storage sector for storing a download program, and the second storage sector for storing a working program, the first storage sector further storing a BOOT code for guiding the MCU to move and run a download program and/or a work program, the BOOT code being stored at a starting position of the first storage sector .
  • the memory is used to store the download program and/or the work program according to the command of the MCU, and is also a space for storing the program itself and running the program.
  • a method for protecting an MCU working program comprising the steps of: S1, running a downloading program; S2, determining, by the downloading program, whether the working program should be run or should be upgraded, and if the working program is running, proceeding to step S3, if an upgrade is required
  • the program proceeds to step S4; S3, the download program moves the working program code from the external storage module to the corresponding address in the memory, and the MCU runs the working program after the completion of the movement; S4, the MCU receives the working program from the upper computer, and the download program works.
  • the program is written to the corresponding location in the external memory module, and then resets to repeat steps S1 and S2.
  • the download program and the work program are stored in different storage sectors of the same external storage module.
  • the external storage module is a FLASH memory.
  • the method for protecting the working program of the MCU further comprises the steps of: S01, first moving the BOOT code from the external storage module into the memory, and then running the BOOT code; S02, the BOOT code performing the action: moving the download program from the external storage module And / or work program to the corresponding address in the memory, after the completion of the move, perform step S1.
  • the first 1K space of the FLASH memory (the starting position of the first storage sector) is used to store the BOOT code.
  • the BOOT code is included in the download program. When the MCU is powered on, the MCU moves 1K from the first address of the FLASH memory. The BOOT code is in the 1K space starting at the 0 address of the memory, and then the BOOT code is run.
  • the function of the BOOT code is to move the program after the BOOT code from the FLASH memory to the corresponding address in the memory, and start the download program after the completion of the move.
  • the downloading program starts to move the working program code from the working program storage location in the FLASH memory to the corresponding address in the memory, and after completing the moving, jumps to the entry function of the working program, and then the MCU runs all. Is the working procedure.
  • step 3 it is judged that the working program needs to be upgraded, and the working program is sent by the host computer to the MCU, and the downloading program writes the working program to the corresponding position in the FLASH.
  • the invention firstly downloads the program by burning in the FLASH of the MCU, and after the MCU is powered on, the downloading program is run, and then the downloading program is used to upgrade the working program or to run the working program, so that the working program can be conveniently deleted after being deleted.
  • the implementation is upgraded and run.
  • a part of the sector storage program of the external storage module another part of the sector stores the working program, which saves the MCU interface bus resources, thereby saving cost; again, the invention has high security and convenient use.
  • the operation is stable and reliable, with good economic and social benefits.
  • the invention can be widely applied to various MCU work program management systems.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Stored Programmes (AREA)

Abstract

L'invention concerne un procédé et un système pour protéger un programme de travail d'une micro-unité de commande (MCU). Le procédé comprend les étapes consistant : S1, à exécuter un programme de téléchargement ; S2, à faire déterminer, par le programme de téléchargement, si un programme de travail doit être exécuté ou a besoin d'être mis à niveau, si le programme de travail doit être exécuté, à exécuter l'étape S3, et si le programme de travail a besoin d'être mis à niveau, à exécuter l'étape S4. Le système comprend une MCU, un module de stockage externe et une mémoire. Premièrement, le programme de téléchargement est brûlé dans une mémoire flash de la MCU, la MCU exécute le programme de téléchargement après sa mise sous tension, puis le programme de téléchargement met à niveau le programme de travail ou est responsable de l'exécution du programme de travail, de telle sorte que le programme de travail peut toujours être facilement mis à niveau et exécuté après avoir été supprimé ; deuxièmement, le programme de téléchargement est stocké par une partie de secteur du module de stockage externe, et le programme de travail est stocké par l'autre partie de secteur, de telle sorte que des ressources de bus d'interface de MCU sont réduites, permettant ainsi de réduire les coûts. Le procédé et le système peuvent être largement appliqués à différents systèmes de gestion pour un programme de travail d'une MCU.
PCT/CN2015/095517 2015-11-05 2015-11-25 Procédé et système pour protéger un programme de travail d'une micro-unité de commande (mcu) Ceased WO2017075852A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510747324.6A CN105354061A (zh) 2015-11-05 2015-11-05 一种保护mcu工作程序的方法及系统
CN201510747324.6 2015-11-05

Publications (1)

Publication Number Publication Date
WO2017075852A1 true WO2017075852A1 (fr) 2017-05-11

Family

ID=55330035

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095517 Ceased WO2017075852A1 (fr) 2015-11-05 2015-11-25 Procédé et système pour protéger un programme de travail d'une micro-unité de commande (mcu)

Country Status (2)

Country Link
CN (1) CN105354061A (fr)
WO (1) WO2017075852A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897709A (zh) * 2018-05-25 2018-11-27 上海乘讯信息科技有限公司 一种程序接口下载系统
CN111459468A (zh) * 2020-04-09 2020-07-28 西安现代控制技术研究所 高可靠性串口通讯的dsp程序在线升级系统和方法
CN113741944A (zh) * 2021-08-16 2021-12-03 南京苏美达智能技术有限公司 一种具备升级功能的机器程序系统及升级方法与应用

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708592B (zh) * 2017-01-25 2021-12-03 北京鸿智电通科技有限公司 一种微控制器以及用于微控制器的代码烧录方法
CN110377303B (zh) * 2019-07-10 2022-11-04 杭州洲钜电子科技有限公司 基于备用存储区方式升级程序的方法及其设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543107A (zh) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 节点b单板软件下载及升级方法
CN1808385A (zh) * 2006-01-20 2006-07-26 北京朗通环球科技有限公司 一种嵌入式系统的引导系统
KR20080023841A (ko) * 2006-09-12 2008-03-17 카시와야마 토요히테 펌웨어 업그레이드와 손상된 펌웨어 자동 복구 시스템 및방법
CN102567054A (zh) * 2011-12-22 2012-07-11 深圳市大富科技股份有限公司 双塔放大器的控制方法及相应的装置
CN104486355A (zh) * 2014-12-30 2015-04-01 大连楼兰科技股份有限公司 防止代码被恶意篡改的方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100351797C (zh) * 2003-08-19 2007-11-28 华为技术有限公司 一种单片机在线升级方法和装置
CN102360304B (zh) * 2011-10-18 2014-04-02 华南理工大学 嵌入式微处理器系统及其固件更新方法
CN102662718B (zh) * 2012-05-03 2015-07-01 天津市英贝特航天科技有限公司 一种单片flash启动多用户程序模块
CN104102486A (zh) * 2014-07-17 2014-10-15 福建升腾资讯有限公司 一种基于外部存储模块实现mcu程序空间扩容的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543107A (zh) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 节点b单板软件下载及升级方法
CN1808385A (zh) * 2006-01-20 2006-07-26 北京朗通环球科技有限公司 一种嵌入式系统的引导系统
KR20080023841A (ko) * 2006-09-12 2008-03-17 카시와야마 토요히테 펌웨어 업그레이드와 손상된 펌웨어 자동 복구 시스템 및방법
CN102567054A (zh) * 2011-12-22 2012-07-11 深圳市大富科技股份有限公司 双塔放大器的控制方法及相应的装置
CN104486355A (zh) * 2014-12-30 2015-04-01 大连楼兰科技股份有限公司 防止代码被恶意篡改的方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897709A (zh) * 2018-05-25 2018-11-27 上海乘讯信息科技有限公司 一种程序接口下载系统
CN111459468A (zh) * 2020-04-09 2020-07-28 西安现代控制技术研究所 高可靠性串口通讯的dsp程序在线升级系统和方法
CN113741944A (zh) * 2021-08-16 2021-12-03 南京苏美达智能技术有限公司 一种具备升级功能的机器程序系统及升级方法与应用

Also Published As

Publication number Publication date
CN105354061A (zh) 2016-02-24

Similar Documents

Publication Publication Date Title
WO2017075852A1 (fr) Procédé et système pour protéger un programme de travail d'une micro-unité de commande (mcu)
US10209999B2 (en) Devices, updaters, methods for controlling a device, and methods for controlling an updater
CN102236621B (zh) 计算机接口信息配置系统及方法
US9152474B2 (en) Context aware synchronization using context and input parameter objects associated with a mutual exclusion lock
US9910664B2 (en) System and method of online firmware update for baseboard management controller (BMC) devices
US9298371B1 (en) System and method of reducing write cycles and increasing longevity of non-volatile memory in baseboard management controller (BMC)
CN108132890B (zh) 存储芯片的垃圾回收方法、装置、设备及存储介质
JP6136127B2 (ja) コントローラ、電子機器及びusbデバイスの制御方法
TW201407343A (zh) 測試系統及其測試方法
WO2013174169A1 (fr) Procédé de mise à niveau pour micrologiciel à écran capacitif d'un terminal mobile android
US8370618B1 (en) Multiple platform support in computer system firmware
CN104050006A (zh) 一种fpga的更新系统及其更新方法
WO2016188037A1 (fr) Procédé, système et terminal de fiabilisation par rodage de version, et support de stockage informatique
CN117369851A (zh) 一种zynq串口远程更新方法
US20140298319A1 (en) Method for installing operating system on electronic device
TWI464583B (zh) 取得觸發功能之指令的方法
US20210055937A1 (en) Using a single process to install a uefi-supported os or a non-uefi supported os on a hardware platform
CN105630530A (zh) 数字信号处理器多级启动方法及系统
KR20150072963A (ko) 다중시스템 및 이의 부팅 방법
WO2017173924A1 (fr) Procédé et dispositif permettant de commuter entre des systèmes de fichier
CN109032993A (zh) 一种双节点八路服务器的pcie板卡扩展卡及其控制方法
CN104572209A (zh) 一种Linux系统下的主板VR Firmware升级方法
CN106325817A (zh) 一种嵌入式系统自动升级方法
RU2454739C1 (ru) Способ программирования имс flash-памяти типа nand и устройство для его реализации
CN115114220A (zh) 一种多处理器核心嵌入式系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15907694

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15907694

Country of ref document: EP

Kind code of ref document: A1