WO2013104154A1 - Software downloading method and terminal - Google Patents

Software downloading method and terminal Download PDF

Info

Publication number
WO2013104154A1
WO2013104154A1 PCT/CN2012/073838 CN2012073838W WO2013104154A1 WO 2013104154 A1 WO2013104154 A1 WO 2013104154A1 CN 2012073838 W CN2012073838 W CN 2012073838W WO 2013104154 A1 WO2013104154 A1 WO 2013104154A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash memory
detect
normally
main control
control chip
Prior art date
Application number
PCT/CN2012/073838
Other languages
French (fr)
Chinese (zh)
Inventor
孙科军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013104154A1 publication Critical patent/WO2013104154A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Definitions

  • the present invention relates to software download technology, and in particular, to a software download method and a terminal. Background technique
  • the terminal is generally upgraded by using a downloading tool on the personal computer (PC) side.
  • PC personal computer
  • the PC side cannot perform direct repair.
  • the software repair of the terminal can be completed through the JTAG method, the JTAG method is adopted.
  • Special tools are required. These tools are expensive and can only be provided during research and development, or at a few after-sales service points. Therefore, there are few fixes for user upgrade failures.
  • the version downloading process due to a misoperation or a problem in the version itself, the download fails, and the download cannot be continued. At this time, only tools such as TRACE can be used for erasing and re-downloading, and the downloading efficiency is low and resources are caused. waste.
  • FIG. 1 is a schematic diagram of a process after a normal terminal is powered on. As shown in Figure 1, the process includes:
  • the master chip After booting up, the master chip jumps to the internal ROM and executes.
  • the internal ROM is initialized accordingly.
  • the main control chip detects the NAND FLASH through the NAND FLASH controller, including whether the NAND FLASH exists and the effective detection and whether the boot loader (BOOTLOADER) exists and is effective. Detection
  • the master chip loads the BOOTLOADER code in the NAND FLASH into the memory, and runs the BOOTLOADER code loaded into the memory.
  • the BOOT LOADER will eventually load the on-chip operating system and give control to the on-chip operating system. At this point, the entire terminal completes the boot process, and finally the operating system starts the upper application and provides the corresponding functions.
  • the main control chip When the detection fails (such as: no NAND FLASH, no BOOTLOADER in NAND FLASH, or BOOTLOADER format is incorrect), the main control chip will jump to the emergency mode for processing. At this time, if connected to the PC, an emergency download port will appear. You can continue to download the code by using the specific PC side software.
  • NAND FLASH exists and its BOOTLOADER format is correct, then NAND FLASH and BOOTLOADER will be able to pass the internal ROM detection, but if BOOTLOADER is just the format (code eigenvalue) is correct, the content is not correct, or BOOTLOADER is normal, the version of the operating system in NAND FLASH is incomplete or incorrect. In the end, the entire system can be detected by the internal ROM, but in fact the software on the board side does not work properly. In this case, the terminal side software will perform the normal startup process, but it will not work normally, and it will not be able to download and download the version under the normal process.
  • the main purpose of the present invention is to provide a software download method and a terminal, which can quickly perform repair after a software download failure, ensure smooth software downloading, improve software download efficiency, and are easy to operate.
  • a software download method including:
  • the main control chip cannot detect the flash memory, or the main control chip detects that the flash memory is invalid.
  • the main control chip does not detect the flash memory or detects that the flash memory is invalid, and then opens the emergency download port;
  • the master chip can normally detect the flash state and recognize the flash memory, and then continue the software download using the emergency download port.
  • the master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
  • the main control chip does not detect the flash memory, or causes the main control chip to detect the flash failure: by clicking the preset button, the main control chip does not detect the flash memory, or causes the main control chip to detect the flash memory failure.
  • the preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory.
  • a normally closed switch set on the connection line or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, Alternatively, control the normally closed switch set on the connection line of the CLK pin of the flash memory, or control the normally open switch of the RST pin and ground connected to the flash memory.
  • a terminal includes a detection control unit, a main control chip, and a flash memory; wherein
  • the detection control unit is configured to prevent the main control chip from detecting the flash memory when the software download failure of the terminal side fails or the downloaded software fails to work normally, or cause the main control chip to detect that the flash memory is invalid; the main control chip is set to When the terminal is started, the flash memory is detected, and when the flash memory is not detected or the flash memory is detected, the emergency download port is turned on; after the flash memory status is normally detected and the flash memory is recognized, the software download is continued by using the emergency download port;
  • the flash memory is configured to store downloaded software data.
  • the master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
  • the detection control unit causes the main control chip to detect the flash memory, or causes the main control chip to detect the flash failure as: the preset control button prevents the main control chip from detecting the flash memory, or causes the main control chip to detect the flash failure.
  • the detecting control unit prevents the main control chip from detecting the flash memory through the preset key, or causes the main control chip to detect that the flash memory is invalid:
  • the preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory.
  • a normally closed switch provided on the connection line, or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, or a normally closed switch that is set on a connection line of the CLK pin of the flash memory, or Controls the normally open switch of the RST pin and ground connected to the flash memory.
  • the software downloading method and the terminal when the terminal side software download fails or the downloaded software fails to work normally, the main control chip does not detect the flash memory, or causes the main control chip to detect the flash memory failure; after the terminal restarts, The master chip does not detect the flash memory or detects a flash failure.
  • the emergency download port is enabled; the main control chip can normally detect the flash status and recognize the flash memory, and then the software download is continued by using the emergency download port.
  • FIG. 1 is a schematic flowchart of a conventional terminal after a normal startup
  • FIG. 2 is a schematic flowchart of a software downloading method according to an embodiment of the present invention.
  • FIG. 3 is a specific flowchart of an embodiment of a method according to the present invention.
  • FIG. 4 is a schematic diagram of a hardware design principle according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another hardware design principle for implementing the present invention.
  • FIG. 6 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • FIG. 7 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • FIG. 8 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • the present invention considers that a specific scenario is generated by hardware design.
  • the software download fails or the downloaded software cannot work normally, when the ROM code that is solidified in the main control chip is detected, it is considered The flash memory is invalid, or the flash memory is not detected.
  • the flash memory will not be able to pass the detection of the code in the ROM, thereby causing the terminal to enter the emergency download mode, providing an emergency port for downloading, to continue the software download, thus, neither Re-download using tools like TRACE, and you don't need to fix it by JTAG.
  • NAND FLASH The following is an example of NAND FLASH.
  • the present invention is not limited to the case where NAND FLASH is stored, and can be applied to other flash memories for storage.
  • FIG. 2 is a schematic flowchart of a software downloading method according to an embodiment of the present invention, as shown in FIG. 2, Methods include:
  • Step 201 The software download on the terminal side fails or the downloaded software does not work normally.
  • Step 202 The main control chip does not detect the NAND FLASH, or causes the main control chip to detect that the NAND FLASH is invalid.
  • the causing the main control chip to detect the NAND FLASH, or causing the main control chip to detect the NAND FLASH failure may be: by pressing the preset button, the main control chip cannot detect the NAND FLASH, or the main control chip detects NAND FLASH is invalid.
  • Step 203 The terminal restarts, the main control chip does not detect the NAND FLASH or detects that the NAND FLASH is invalid, and then the emergency download port is enabled.
  • the master chip detects that the state of the NAND FLASH is busy during the set time, the NAND FLASH is considered to be invalid.
  • Step 204 Enable the master chip to normally detect the NAND FLASH state and identify the NAND FLASH.
  • enabling the master chip to detect the NAND FLASH state and identify the NAND FLASH can be: Release the preset button so that the master chip can normally detect the NAND FLASH state and recognize the NAND FLASH 0.
  • Step 205 Continue the software download by using the emergency download port.
  • FIG. 1 A specific flow chart of an embodiment of the method of the present invention is shown in FIG.
  • FIG. 4 is a schematic diagram of a hardware design principle according to an embodiment of the present invention. As shown in FIG. 4, based on the Qualcomm MDM8200A platform, in hardware design, it can be in NAND FLASH.
  • the EBI2_BUSY0_N pin is connected with the ground button Bl-BUTTON (fixed button). This button is a ground-to-ground normally open switch.
  • VCC_GENP is the pull-up power supply
  • the resistor R is used to provide the pull-up for the EBI2_BUSY0_N of the NAND FLASH. It can be seen that when the NAND FLASH is idle, a high level signal is input to the main control chip for detecting the current state of the NAND FLASH.
  • the EBI2_BUSY0_N pin of the NAND FLASH is normally connected to the master. Therefore, in the normal operation mode, this circuit does not affect the function of the terminal.
  • the repair button is pressed, the EBI2_BUSY0_N pin of the NAND FLASH is forced to a low level.
  • the master detects that the NAND FLASH is always not ready and is always busy. Therefore, the master chip is in a certain state. After the time, it will be considered that NAND FLASH has failed, and the performance of the main control chip does not detect NAND FLASH.
  • the repair button is generally placed in a relatively hidden place, and it is not easy to be accidentally pressed under normal working conditions, and can only be touched when the upgrade cannot be performed by the normal method.
  • the flow of the present invention may be specifically as follows:
  • the main control chip will jump to the internal ROM and execute. After the internal ROM is initialized, the NAND FLASH and its BOOTLOADER are detected. However, since the button Bl-BUTTON is pressed, the state of the NAND FLASH fed back to the main control chip will always be busy before the button is released. When the main control chip detects NAND FLASH, it is found that NAND FLASH is always busy. After a period of time, the detection process will fail. It is considered that NAND FLASH has expired, and thus enters the emergency download process, and an emergency download port will appear.
  • FIG. 5 is a schematic diagram of another hardware design principle for implementing the present invention.
  • a normally closed switch is connected in a connection line between a power pin of a NAND FLASH and an actual power source.
  • a normally closed switch is connected. Therefore, the power supply can normally supply power to the NAND FLASH, and does not affect the function of the NAND FLASH.
  • the power pin of NAND FLASH is disconnected from the power supply, the main control chip will not find NAND FLASH, or find NAND. FLASH is abnormal.
  • the ROM code that is solidified in the chip will jump to the emergency download mode. After entering the emergency mode, release the button to make the NAND FLASH power on normally, thus achieving the download in the emergency mode.
  • FIG. 6 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • a normally closed switch is connected in a connection line of a CE_N pin of a NAND FLASH.
  • a normally closed switch is turned on. Therefore, it does not affect the function of NAND FLASH.
  • Its implementation principle is similar to that of Figure 5.
  • FIG. 7 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • a normally closed switch is connected in a connection line of a RE_N pin of a NAND FLASH.
  • a normally closed switch is turned on. Therefore, it does not affect the function of NAND FLASH.
  • the implementation principle is similar to that of Figure 5.
  • FIG. 8 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • a normally closed switch is connected in a connection line of the CLK pin of the NAND FLASH.
  • the normally closed switch is turned on. Therefore, it does not affect the function of NAND FLASH.
  • Its implementation principle and Figure 5 Similarly, when it is not possible to download normally, just press the corresponding button, turn on the normally closed switch, and then start the power-on action, then you can enter the emergency mode to download.
  • FIG. 9 is a schematic diagram of still another hardware design principle for implementing the present invention.
  • the RST pin of the NAND FLASH is connected to the ground through a normally open switch.
  • the normally open switch is disconnected, so it does not affect the function of NAND FLASH.
  • the download is not possible, just press the normally open switch and then turn on the power to enter the emergency mode for download.
  • the present invention further provides a terminal, which includes a detection control unit, a main control chip, and a flash memory;
  • the detection control unit is configured to prevent the main control chip from detecting the flash memory when the software download failure of the terminal side fails or the downloaded software fails to work normally, or cause the main control chip to detect that the flash memory is invalid; the main control chip is set to When the terminal is started, the flash memory is detected, and when the flash memory is not detected or the flash memory is detected, the emergency download port is turned on; after the flash memory status is normally detected and the flash memory is recognized, the software download is continued by using the emergency download port;
  • the flash memory is configured to store downloaded software data.
  • the master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
  • the detection control unit causes the main control chip to detect the flash memory, or causes the main control chip to detect the flash failure as: the preset control button prevents the main control chip from detecting the flash memory, or causes the main control chip to detect the flash failure.
  • the detecting control unit prevents the main control chip from detecting the flash memory through the preset key, or causes the main control chip to detect that the flash memory is invalid:
  • the preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory.
  • a normally closed switch set on the connection line or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, Alternatively, control the normally closed switch set on the connection line of the CLK pin of the flash memory, or control the normally open switch of the RST pin and ground connected to the flash memory.
  • the present invention can continue downloading by simply switching the switch or clicking a button after the software upgrade fails by using a low-cost hardware circuit. It does not require TRACE to re-download the version, nor does it need to be fixed by JTAG.

Abstract

Disclosed is a software downloading method, comprising: making a flash memory undetectable by a master control chip or making the master control chip detect a failure of the flash memory when software downloading of a terminal fails or downloaded software cannot work normally; restarting the terminal, and opening an emergency downloading port when the master control chip cannot detect the flash memory or detects a failure of the flash memory; enabling the master control chip to detect a state of the flash memory normally and identify the flash memory, and continuing downloading software by using the emergency downloading port. Also disclosed is a terminal. By means of the present invention, software downloading can be quickly repaired after the software downloading fails, thereby ensuring smooth software downloading, improving software downloading efficiency, and facilitating the operation.

Description

一种软件下载方法及终端 技术领域  Software download method and terminal
本发明涉及软件下载技术, 尤其涉及一种软件下载方法及终端。 背景技术  The present invention relates to software download technology, and in particular, to a software download method and a terminal. Background technique
随着通信行业的不断推广, 移动终端产品得到了广泛的应用, 而且, 由于通信技术的飞速发展, 用户对产品功能的要求越来越高, 这就需要对 产品的软件进行不断的升级, 当软件版本发现有 BUG时, 一般通过软件升 级方法进行解决, 研发人员在进行版本测试验证时, 也一般通过软件升级 的方法进行版本调试和验证, 随着产品的增多, 软件升级频率也相应提高。 在升级过程中, 如果出现断电、 正常使用过程中出现文件损坏、 由于待验 证的软件版本本身存在问题等情况时, 会出现终端侧软件升级失败或者不 能正常运行的情况, 这样, 终端就不能正常工作, 也就没法再进行升级和 下载。 所以, 当前对升级的稳定性, 以及升级失败后的修复能力提出了更 高的要求。  With the continuous promotion of the communication industry, mobile terminal products have been widely used. Moreover, due to the rapid development of communication technology, users have higher and higher requirements for product functions, which requires continuous upgrade of the software of the product. When the software version finds a bug, it is generally solved by the software upgrade method. When the R&D personnel performs the version test verification, the version is debugged and verified by the software upgrade method. As the product increases, the software upgrade frequency also increases accordingly. During the upgrade process, if there is a power failure, a file corruption occurs during normal use, or there is a problem with the software version to be verified, etc., the terminal side software upgrade fails or fails to operate normally, so the terminal cannot If you work normally, you will not be able to upgrade and download. Therefore, the current stability requirements for upgrades and the ability to repair after upgrade failures are higher.
现有技术中, 一般采用个人电脑( PC )侧的下载工具对终端进行升级, 升级失败后, 无法通过 PC侧进行直接的修复, 虽然可以通过 JTAG方式完 成对终端的软件修复, 但是, JTAG方式需要使用专门的工具, 这种工具价 格昂贵, 只有在研发调试, 或者少数售后维修点才能够提供, 因此, 对于 用户升级失败的情况, 修复的很少。 并且, 在版本下载过程中, 由于误操 作或者是版本本身存在问题, 导致下载失败, 而且无法继续下载, 此时, 只能用 TRACE等工具进行擦除及重新下载, 下载效率低且会造成资源浪 费。  In the prior art, the terminal is generally upgraded by using a downloading tool on the personal computer (PC) side. After the upgrade fails, the PC side cannot perform direct repair. Although the software repair of the terminal can be completed through the JTAG method, the JTAG method is adopted. Special tools are required. These tools are expensive and can only be provided during research and development, or at a few after-sales service points. Therefore, there are few fixes for user upgrade failures. Moreover, in the version downloading process, due to a misoperation or a problem in the version itself, the download fails, and the download cannot be continued. At this time, only tools such as TRACE can be used for erasing and re-downloading, and the downloading efficiency is low and resources are caused. waste.
另外, 目前有些终端平台的主控芯片集成了 NAND 内存(FLASH ) 控制器, 主控芯片在启动时会运行一段固化在芯片中的 ROM代码, 以检测 并加载 NAND FLASH中的代码, 如果在此过程中发现问题, ROM中的代 码会进入紧急下载模式, 提供一个可供下载的紧急端口。 图 1 为现有一终 端正常开机后的流程示意图, 如图 1所示, 该流程包括: In addition, some terminal platforms currently have integrated NAND memory (FLASH). The controller, the main control chip will run a ROM code solidified in the chip at startup to detect and load the code in the NAND FLASH. If a problem is found in the process, the code in the ROM will enter the emergency download mode, providing a Emergency port available for download. Figure 1 is a schematic diagram of a process after a normal terminal is powered on. As shown in Figure 1, the process includes:
开机启动后 , 主控芯片跳转至内部的 ROM并执行。 内部的 ROM进行 相应的初始化, 完成初始化后,主控芯片通过 NAND FLASH控制器进行对 NAND FLASH的检测, 包括对 NAND FLASH是否存在和有效的检测及其 启动加载程序 (BOOTLOADER )是否存在和有效的检测;  After booting up, the master chip jumps to the internal ROM and executes. The internal ROM is initialized accordingly. After the initialization is completed, the main control chip detects the NAND FLASH through the NAND FLASH controller, including whether the NAND FLASH exists and the effective detection and whether the boot loader (BOOTLOADER) exists and is effective. Detection
当检测通过后 , 主控芯片加载 NAND FLASH中的 BOOTLOADER代 码到内存, 并运行加载到内存的 BOOTLOADER代码, BOOT LOADER最 后会加载片上的操作系统, 并把控制权交给片上的操作系统。 此时, 整个 终端就完成了启动过程, 最后操作系统启动上层应用, 提供相应的功能。  When the test passes, the master chip loads the BOOTLOADER code in the NAND FLASH into the memory, and runs the BOOTLOADER code loaded into the memory. The BOOT LOADER will eventually load the on-chip operating system and give control to the on-chip operating system. At this point, the entire terminal completes the boot process, and finally the operating system starts the upper application and provides the corresponding functions.
当检测失败 ( 如: 无 NAND FLASH 、 NAND FLASH 中无 BOOTLOADER, 或 BOOTLOADER格式不正确)后, 主控芯片会跳到紧 急模式下进行处理, 此时, 如果连接到 PC, 将出现紧急下载端口, 通过使 用特定的 PC侧软件, 可以继续下载代码。  When the detection fails (such as: no NAND FLASH, no BOOTLOADER in NAND FLASH, or BOOTLOADER format is incorrect), the main control chip will jump to the emergency mode for processing. At this time, if connected to the PC, an emergency download port will appear. You can continue to download the code by using the specific PC side software.
可以看出, 当 NAND FLASH存在且其 BOOTLOADER格式正确 , 这 时 , NAND FLASH及 BOOTLOADER将能通过内部 ROM的检测 , 但如果 BOOTLOADER 只是格式(代码的特征值)正确, 而内容并不正确, 或者 说, BOOTLOADER正常, NAND FLASH中操作系统的版本不全或者不正 确。 最终, 整个系统能通过内部的 ROM的检测, 但实际上板侧的软件却不 能正常工作。 在这种情况下, 终端侧软件将会进行正常的启动流程, 但实 际上却无法正常工作, 也就无法在正常的流程下进行下载和下载版本。 换 言之 , 固化在芯片中的 ROM代码检测时 , 一般只验证 NAND FLASH中是 否有代码, 或者只验证代码的特征值是否合法, 并不能验证整个代码是否 完备或者代码中是否存在错误及逻辑问题。 而当下载失败或版本本身存在 问题时, 存在于 NAND FLASH中的数据和代码可能不全, 也可能有错误, 但代码的特征值一般是合法的,这样, 固化在芯片中的 ROM代码进行检测 时, 很可能会通过检测, 然后运行 NAND FLASH并不完备的代码, 这样, 终端侧软件还是没法正常运行, 也就没法继续下载和下载。 发明内容 It can be seen that when NAND FLASH exists and its BOOTLOADER format is correct, then NAND FLASH and BOOTLOADER will be able to pass the internal ROM detection, but if BOOTLOADER is just the format (code eigenvalue) is correct, the content is not correct, or BOOTLOADER is normal, the version of the operating system in NAND FLASH is incomplete or incorrect. In the end, the entire system can be detected by the internal ROM, but in fact the software on the board side does not work properly. In this case, the terminal side software will perform the normal startup process, but it will not work normally, and it will not be able to download and download the version under the normal process. In other words, when the ROM code detected in the chip is detected, it is generally only verified whether there is a code in the NAND FLASH, or only the feature value of the code is verified to be legal, and the entire code cannot be verified. Complete or there are errors and logic problems in the code. When the download fails or the version itself has problems, the data and code existing in the NAND FLASH may be incomplete or may have errors, but the feature value of the code is generally legal, so that the ROM code in the chip is cured when it is detected. It is very likely that it will pass the test and then run the NAND FLASH incomplete code. As a result, the terminal side software still cannot run normally, and it will not be able to continue downloading and downloading. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种软件下载方法及终端, 能 够在软件下载失败后, 快速进行修复, 保障软件下载顺利进行, 提高软件 下载效率, 且操作简便。  In view of this, the main purpose of the present invention is to provide a software download method and a terminal, which can quickly perform repair after a software download failure, ensure smooth software downloading, improve software download efficiency, and are easy to operate.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
一种软件下载方法, 包括:  A software download method, including:
终端侧软件下载失败或下载的软件无法正常工作时, 使主控芯片检测 不到闪存, 或使主控芯片检测到闪存失效;  When the software download on the terminal side fails or the downloaded software fails to work normally, the main control chip cannot detect the flash memory, or the main control chip detects that the flash memory is invalid.
终端重启后, 主控芯片检测不到闪存或检测到闪存失效, 则开启紧急 下载端口;  After the terminal is restarted, the main control chip does not detect the flash memory or detects that the flash memory is invalid, and then opens the emergency download port;
使主控芯片能正常检测闪存状态并识别闪存, 之后采用所述紧急下载 端口继续进行软件下载。  The master chip can normally detect the flash state and recognize the flash memory, and then continue the software download using the emergency download port.
所述主控芯片检测到闪存失效为: 主控芯片检测到闪存在设定时间内 的状态为忙碌。  The master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
所述使主控芯片检测不到闪存, 或使主控芯片检测到闪存失效为: 通 过点按预设键使主控芯片检测不到闪存, 或使主控芯片检测到闪存失效。  The main control chip does not detect the flash memory, or causes the main control chip to detect the flash failure: by clicking the preset button, the main control chip does not detect the flash memory, or causes the main control chip to detect the flash memory failure.
所述预设键控制闪存的 EBI2_BUSY0_N引脚上设置的对地常开开关, 或者, 控制闪存的电源引脚与实际电源的连接线上设置的常闭开关, 或者, 控制在闪存的 CE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 RE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 CLK引脚的连接线上设置的常闭开关, 或者, 控制连接闪存的 RST引脚与地的常开开关。 The preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory. a normally closed switch set on the connection line, or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, Alternatively, control the normally closed switch set on the connection line of the CLK pin of the flash memory, or control the normally open switch of the RST pin and ground connected to the flash memory.
一种终端, 其包括检测控制单元、 主控芯片和闪存; 其中,  A terminal includes a detection control unit, a main control chip, and a flash memory; wherein
所述检测控制单元, 设置为在终端侧软件下载失败或下载的软件无法 正常工作时, 使主控芯片检测不到闪存, 或使主控芯片检测到闪存失效; 所述主控芯片, 设置为在终端启动时, 对闪存进行检测, 在检测不到 闪存或检测到闪存失效时, 开启紧急下载端口; 之后, 能正常检测闪存状 态并识别闪存时, 采用所述紧急下载端口继续进行软件下载;  The detection control unit is configured to prevent the main control chip from detecting the flash memory when the software download failure of the terminal side fails or the downloaded software fails to work normally, or cause the main control chip to detect that the flash memory is invalid; the main control chip is set to When the terminal is started, the flash memory is detected, and when the flash memory is not detected or the flash memory is detected, the emergency download port is turned on; after the flash memory status is normally detected and the flash memory is recognized, the software download is continued by using the emergency download port;
所述闪存, 设置为存储下载的软件数据。  The flash memory is configured to store downloaded software data.
所述主控芯片检测到闪存失效为: 主控芯片检测到闪存在设定时间内 的状态为忙碌。  The master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
所述检测控制单元使主控芯片检测不到闪存, 或使主控芯片检测到闪 存失效为: 通过预设键使主控芯片检测不到闪存, 或使主控芯片检测到闪 存失效。  The detection control unit causes the main control chip to detect the flash memory, or causes the main control chip to detect the flash failure as: the preset control button prevents the main control chip from detecting the flash memory, or causes the main control chip to detect the flash failure.
所述检测控制单元通过预设键使主控芯片检测不到闪存, 或使主控芯 片检测到闪存失效为:  The detecting control unit prevents the main control chip from detecting the flash memory through the preset key, or causes the main control chip to detect that the flash memory is invalid:
所述预设键控制闪存的 EBI2_BUSY0_N引脚上设置的对地常开开关, 或者, 控制闪存的电源引脚与实际电源的连接线上设置的常闭开关, 或者, 控制在闪存的 CE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 RE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 CLK引脚的连接线上设置的常闭开关, 或者, 控制连接闪存的 RST引脚与地的常开开关。  The preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory. a normally closed switch provided on the connection line, or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, or a normally closed switch that is set on a connection line of the CLK pin of the flash memory, or Controls the normally open switch of the RST pin and ground connected to the flash memory.
本发明实施例所述的软件下载方法及终端, 终端侧软件下载失败或下 载的软件无法正常工作时, 使主控芯片检测不到闪存, 或使主控芯片检测 到闪存失效; 终端重启后, 主控芯片检测不到闪存或检测到闪存失效, 则 开启紧急下载端口; 使主控芯片能正常检测闪存状态并识别闪存, 之后采 用所述紧急下载端口继续进行软件下载。 通过本发明实施例, 能够在软件 下载失败后, 快速进行修复, 保障软件下载顺利进行, 提高软件下载效率, 且操作简便。 附图说明 The software downloading method and the terminal according to the embodiment of the present invention, when the terminal side software download fails or the downloaded software fails to work normally, the main control chip does not detect the flash memory, or causes the main control chip to detect the flash memory failure; after the terminal restarts, The master chip does not detect the flash memory or detects a flash failure. The emergency download port is enabled; the main control chip can normally detect the flash status and recognize the flash memory, and then the software download is continued by using the emergency download port. Through the embodiment of the present invention, after the software download fails, the repair can be quickly performed, the software download is ensured smoothly, the software downloading efficiency is improved, and the operation is simple. DRAWINGS
图 1为现有一终端正常开机后的流程示意图;  FIG. 1 is a schematic flowchart of a conventional terminal after a normal startup;
图 2为本发明实施例一种软件下载方法流程示意图;  2 is a schematic flowchart of a software downloading method according to an embodiment of the present invention;
图 3为本发明方法实施例的具体流程图;  3 is a specific flowchart of an embodiment of a method according to the present invention;
图 4为本发明实施例一种硬件设计原理示意图;  4 is a schematic diagram of a hardware design principle according to an embodiment of the present invention;
图 5为实现本发明的另一种硬件设计原理示意图;  FIG. 5 is a schematic diagram of another hardware design principle for implementing the present invention; FIG.
图 6为实现本发明的再一种硬件设计原理示意图;  6 is a schematic diagram of still another hardware design principle for implementing the present invention;
图 7为实现本发明的再一种硬件设计原理示意图;  7 is a schematic diagram of still another hardware design principle for implementing the present invention;
图 8为实现本发明的再一种硬件设计原理示意图;  8 is a schematic diagram of still another hardware design principle for implementing the present invention;
图 9为实现本发明的再一种硬件设计原理示意图;。 具体实施方式  9 is a schematic diagram of still another hardware design principle for implementing the present invention; detailed description
为了解决背景技术所述的问题, 本发明考虑通过硬件设计来产生一种 特定场景, 软件下载失败或下载的软件无法正常工作的情况下, 使固化在 主控芯片中的 ROM代码检测时,认为闪存无效,或者检测不到闪存,这样, 闪存将无法通过 ROM中的代码的检测, 进而使终端进入紧急下载模式,提 供一个可供下载的紧急端口, 以继续进行软件下载, 这样, 既不需使用 TRACE等工具重新下载, 也不需要通过 JTAG方式进行修复。  In order to solve the problem described in the background art, the present invention considers that a specific scenario is generated by hardware design. When the software download fails or the downloaded software cannot work normally, when the ROM code that is solidified in the main control chip is detected, it is considered The flash memory is invalid, or the flash memory is not detected. In this way, the flash memory will not be able to pass the detection of the code in the ROM, thereby causing the terminal to enter the emergency download mode, providing an emergency port for downloading, to continue the software download, thus, neither Re-download using tools like TRACE, and you don't need to fix it by JTAG.
下面以 NAND FLASH为例进行说明, 但是, 本发明并不限于 NAND FLASH进行存储的情况, 还可以应用于其他闪存进行存储的情况。  The following is an example of NAND FLASH. However, the present invention is not limited to the case where NAND FLASH is stored, and can be applied to other flash memories for storage.
图 2为本发明实施例一种软件下载方法流程示意图, 如图 2所示, 该 方法包括: 2 is a schematic flowchart of a software downloading method according to an embodiment of the present invention, as shown in FIG. 2, Methods include:
步驟 201: 终端侧软件下载失败或下载的软件无法正常工作。  Step 201: The software download on the terminal side fails or the downloaded software does not work normally.
步驟 202: 使主控芯片检测不到 NAND FLASH, 或使主控芯片检测到 NAND FLASH失效。  Step 202: The main control chip does not detect the NAND FLASH, or causes the main control chip to detect that the NAND FLASH is invalid.
这里, 所述使主控芯片检测不到 NAND FLASH, 或使主控芯片检测到 NAND FLASH 失效可以为: 通过点按预设键使主控芯片检测不到 NAND FLASH , 或使主控芯片检测到 NAND FLASH失效。  Here, the causing the main control chip to detect the NAND FLASH, or causing the main control chip to detect the NAND FLASH failure may be: by pressing the preset button, the main control chip cannot detect the NAND FLASH, or the main control chip detects NAND FLASH is invalid.
步驟 203:终端重启,主控芯片检测不到 NAND FLASH或检测到 NAND FLASH失效, 则开启紧急下载端口。  Step 203: The terminal restarts, the main control chip does not detect the NAND FLASH or detects that the NAND FLASH is invalid, and then the emergency download port is enabled.
这里, 如果主控芯片检测到 NAND FLASH在设定时间内的状态为忙 碌 , 则认为 NAND FLASH失效。  Here, if the master chip detects that the state of the NAND FLASH is busy during the set time, the NAND FLASH is considered to be invalid.
步驟 204: 使主控芯片能正常检测 NAND FLASH状态并识别 NAND FLASH。  Step 204: Enable the master chip to normally detect the NAND FLASH state and identify the NAND FLASH.
这里, 使主控芯片能正常检测 NAND FLASH 状态并识别 NAND FLASH可以为: 松开预设键使主控芯片能正常检测 NAND FLASH状态并 识别 NAND FLASH 0 Here, enabling the master chip to detect the NAND FLASH state and identify the NAND FLASH can be: Release the preset button so that the master chip can normally detect the NAND FLASH state and recognize the NAND FLASH 0.
步驟 205: 采用所述紧急下载端口继续进行软件下载。  Step 205: Continue the software download by using the emergency download port.
本发明方法实施例的具体流程图如图 3所示。  A specific flow chart of an embodiment of the method of the present invention is shown in FIG.
为了实现上面描述的功能, 可以使用低成本的电子元器件构成上述功 能的硬件。 目的是, 当下载失败后无法继续下载时, 通过简单的控制 (如 点按按键), 让固化在芯片中的 ROM代码检测不到 NAND FLASH或者检 测到 NAND FLASH无效。 所用硬件装置举实施例说明如下,但不限于下文 的说明及附图。  In order to realize the functions described above, hardware of the above functions can be constructed using low-cost electronic components. The purpose is to prevent the NAND FLASH from being detected in the ROM code of the chip or to detect that the NAND FLASH is invalid by simple control (such as clicking the button) when the download cannot be continued. The hardware device used will be described below, but is not limited to the following description and the accompanying drawings.
图 4为本发明实施例一种硬件设计原理示意图, 如图 4所示, 基于高 通 MDM8200A 平台, 在硬件设计中, 可以在 NAND FLASH 的 EBI2_BUSY0_N引脚上加上对地按键 Bl-BUTTON (修复键), 此按键是一 个对地常开开关, 图中 VCC_GENP 为上拉电源, 配合电阻 R 为 NAND FLASH的 EBI2_BUSY0_N提供上拉。可以看出,当 NAND FLASH空闲时, 高电平信号被输入到主控芯片, 用于检测 NAND FLASH的当前状态。 4 is a schematic diagram of a hardware design principle according to an embodiment of the present invention. As shown in FIG. 4, based on the Qualcomm MDM8200A platform, in hardware design, it can be in NAND FLASH. The EBI2_BUSY0_N pin is connected with the ground button Bl-BUTTON (fixed button). This button is a ground-to-ground normally open switch. In the figure, VCC_GENP is the pull-up power supply, and the resistor R is used to provide the pull-up for the EBI2_BUSY0_N of the NAND FLASH. It can be seen that when the NAND FLASH is idle, a high level signal is input to the main control chip for detecting the current state of the NAND FLASH.
当修复键没有被按下时, NAND FLASH的 EBI2_BUSY0_N引脚与主 控为正常的连接, 因此, 在正常工作模式下, 此电路并不影响终端的功能。 当修复键被按下时, NAND FLASH的 EBI2_BUSY0_N引脚被强制为低电 平, 此时, 主控检测到的永远是 NAND FLASH没有准备好, 一直处于忙的 状态, 因此, 主控芯片在一定时间后会认为 NAND FLASH已失效, 表现为 主控芯片检测不到 NAND FLASH。  When the repair button is not pressed, the EBI2_BUSY0_N pin of the NAND FLASH is normally connected to the master. Therefore, in the normal operation mode, this circuit does not affect the function of the terminal. When the repair button is pressed, the EBI2_BUSY0_N pin of the NAND FLASH is forced to a low level. At this time, the master detects that the NAND FLASH is always not ready and is always busy. Therefore, the master chip is in a certain state. After the time, it will be considered that NAND FLASH has failed, and the performance of the main control chip does not detect NAND FLASH.
需要说明的是, 在设计上, 修复键一般安放在比较隐蔽的地方, 在正 常工作情况下不易被误按下, 而只有在无法用正常的方法进行升级时, 点 按才能触及。  It should be noted that, in design, the repair button is generally placed in a relatively hidden place, and it is not easy to be accidentally pressed under normal working conditions, and can only be touched when the upgrade cannot be performed by the normal method.
基于图 4所示的结构, 本发明的流程可以具体为:  Based on the structure shown in FIG. 4, the flow of the present invention may be specifically as follows:
1 ) 首先按下设计的按键 Bl -BUTTON , 此时, NAND FLASH 的 EBI2_BUSY0_N被强制下拉到地, 因此, 不管 NAND FLASH内部是否是 忙状态, 其对主控芯片的输出表现一直为忙。  1) First press the designed button Bl -BUTTON. At this time, the EBI2_BUSY0_N of the NAND FLASH is forcibly pulled down to the ground. Therefore, regardless of whether the NAND FLASH is busy or not, its output to the master chip is always busy.
2 ) 然后再进行开机启动, 主控芯片会跳转至内部的 ROM并执行。 内 部的 ROM进行相应的初始化后 ,会对 NAND FLASH及其 BOOTLOADER 进行检测,但由于按键 Bl -BUTTON被按下, NAND FLASH反馈给主控芯片 的状态在按键放开前一直会是忙,因此,当主控芯片检测 NAND FLASH时, 发现 NAND FLASH一直是忙,一段时间后,检测过程就会失败,认为 NAND FLASH已经失效, 从而进入紧急下载流程, 会出现紧急下载端口。  2) Then start up again, the main control chip will jump to the internal ROM and execute. After the internal ROM is initialized, the NAND FLASH and its BOOTLOADER are detected. However, since the button Bl-BUTTON is pressed, the state of the NAND FLASH fed back to the main control chip will always be busy before the button is released. When the main control chip detects NAND FLASH, it is found that NAND FLASH is always busy. After a period of time, the detection process will fail. It is considered that NAND FLASH has expired, and thus enters the emergency download process, and an emergency download port will appear.
3 ) 紧急下载端口出现后, 为了能够把代码下载到 NAND FLASH, 此 时, 应该松开按键, 让主控芯片能正常检测 NAND FLASH 状态并识别 NAND FLASH。 3) After the emergency download port appears, in order to download the code to NAND FLASH, the button should be released, so that the main control chip can detect the NAND FLASH status and recognize it. NAND FLASH.
4 ) 最后, 开启 PC侧的下载软件, 选择相应的紧急下载端口, 继续进 行版本下载和升级。 升级成功后, 再重启, 就可以按正常启动流程进行开 机启动。  4) Finally, open the download software on the PC side, select the corresponding emergency download port, and continue to download and upgrade the version. After the upgrade is successful, restart it and start up according to the normal startup process.
图 5 是实现本发明的另一种硬件设计原理示意图, 如图 5 所示, 在 NAND FLASH的电源引脚与实际电源的连接线中串一个常闭开关, 一般情 况下, 常闭开关是接通的, 因此电源能正常为 NAND FLASH供电, 不影响 NAND FLASH的功能。 当不能正常下载时, 只需按下相应按键, 打开常闭 开关, 再进行开机动作, 这时, NAND FLASH的电源引脚与电源断开, 主 控芯片会找不到 NAND FLASH , 或发现 NAND FLASH异常, 此时, 固化 在芯片中的 ROM代码会跳到紧急下载模式,进入紧急模式后,再松开按键, 使 NAND FLASH正常上电, 从而实现在紧急模式下的下载。  FIG. 5 is a schematic diagram of another hardware design principle for implementing the present invention. As shown in FIG. 5, a normally closed switch is connected in a connection line between a power pin of a NAND FLASH and an actual power source. Generally, a normally closed switch is connected. Therefore, the power supply can normally supply power to the NAND FLASH, and does not affect the function of the NAND FLASH. When it can't be downloaded normally, just press the corresponding button to turn on the normally closed switch and then turn on the power. At this time, the power pin of NAND FLASH is disconnected from the power supply, the main control chip will not find NAND FLASH, or find NAND. FLASH is abnormal. At this time, the ROM code that is solidified in the chip will jump to the emergency download mode. After entering the emergency mode, release the button to make the NAND FLASH power on normally, thus achieving the download in the emergency mode.
图 6是实现本发明的再一种硬件设计原理示意图, 如图 6 所示, 在 NAND FLASH的 CE_N引脚的连接线中串一个常闭开关, 一般情况下, 常 闭开关是接通的, 因此, 不影响 NAND FLASH的功能, 其实现原理和图 5 相似, 当不能正常下载时, 只需按下相应按键, 打开常闭开关, 再进行开 机动作, 便可进入紧急模式进行下载。  6 is a schematic diagram of still another hardware design principle for implementing the present invention. As shown in FIG. 6, a normally closed switch is connected in a connection line of a CE_N pin of a NAND FLASH. In general, a normally closed switch is turned on. Therefore, it does not affect the function of NAND FLASH. Its implementation principle is similar to that of Figure 5. When it cannot be downloaded normally, just press the corresponding button, turn on the normally closed switch, and then start the power-on action, then you can enter the emergency mode to download.
图 7 是实现本发明的再一种硬件设计原理示意图, 如图 7 所示, 在 NAND FLASH的 RE_N引脚的连接线中串一个常闭开关, 一般情况下, 常 闭开关是接通的, 因此, 不影响 NAND FLASH的功能。 其实现原理和图 5 相似, 当不能正常下载时, 只需按下相应按键, 打开常闭开关, 再进行开 机动作, 便可进入紧急模式进行下载。  7 is a schematic diagram of still another hardware design principle for implementing the present invention. As shown in FIG. 7, a normally closed switch is connected in a connection line of a RE_N pin of a NAND FLASH. Generally, a normally closed switch is turned on. Therefore, it does not affect the function of NAND FLASH. The implementation principle is similar to that of Figure 5. When the download is not possible, just press the corresponding button, turn on the normally closed switch, and then start the operation, then you can enter the emergency mode to download.
图 8 是实现本发明的再一种硬件设计原理示意图, 如图 8 所示, 在 NAND FLASH的 CLK引脚的连接线中串一个常闭开关, 一般情况下, 常 闭开关是接通的, 因此, 不影响 NAND FLASH的功能。 其实现原理和图 5 相似, 当不能正常下载时, 只需按下相应按键, 打开常闭开关, 再进行开 机动作, 便可进入紧急模式进行下载。 8 is a schematic diagram of still another hardware design principle for implementing the present invention. As shown in FIG. 8, a normally closed switch is connected in a connection line of the CLK pin of the NAND FLASH. Generally, the normally closed switch is turned on. Therefore, it does not affect the function of NAND FLASH. Its implementation principle and Figure 5 Similarly, when it is not possible to download normally, just press the corresponding button, turn on the normally closed switch, and then start the power-on action, then you can enter the emergency mode to download.
图 9是实现本发明的再一种硬件设计原理示意图, 如图 9所示, 通过 一个常开开关, 把 NAND FLASH的 RST引脚与地相连。 一般情况下, 常 开开关是断开的, 因此不影响 NAND FLASH的功能。 当不能正常下载时, 只需按下常开开关, 再进行开机动作, 便可进入紧急模式进行下载。  FIG. 9 is a schematic diagram of still another hardware design principle for implementing the present invention. As shown in FIG. 9, the RST pin of the NAND FLASH is connected to the ground through a normally open switch. Under normal circumstances, the normally open switch is disconnected, so it does not affect the function of NAND FLASH. When the download is not possible, just press the normally open switch and then turn on the power to enter the emergency mode for download.
本发明还相应地提出一种终端, 该终端包括检测控制单元、 主控芯片 和闪存; 其中,  The present invention further provides a terminal, which includes a detection control unit, a main control chip, and a flash memory;
所述检测控制单元, 设置为在终端侧软件下载失败或下载的软件无法 正常工作时, 使主控芯片检测不到闪存, 或使主控芯片检测到闪存失效; 所述主控芯片, 设置为在终端启动时, 对闪存进行检测, 在检测不到 闪存或检测到闪存失效时, 开启紧急下载端口; 之后, 能正常检测闪存状 态并识别闪存时, 采用所述紧急下载端口继续进行软件下载;  The detection control unit is configured to prevent the main control chip from detecting the flash memory when the software download failure of the terminal side fails or the downloaded software fails to work normally, or cause the main control chip to detect that the flash memory is invalid; the main control chip is set to When the terminal is started, the flash memory is detected, and when the flash memory is not detected or the flash memory is detected, the emergency download port is turned on; after the flash memory status is normally detected and the flash memory is recognized, the software download is continued by using the emergency download port;
所述闪存, 设置为存储下载的软件数据。  The flash memory is configured to store downloaded software data.
所述主控芯片检测到闪存失效为: 主控芯片检测到闪存在设定时间内 的状态为忙碌。  The master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
所述检测控制单元使主控芯片检测不到闪存, 或使主控芯片检测到闪 存失效为: 通过预设键使主控芯片检测不到闪存, 或使主控芯片检测到闪 存失效。  The detection control unit causes the main control chip to detect the flash memory, or causes the main control chip to detect the flash failure as: the preset control button prevents the main control chip from detecting the flash memory, or causes the main control chip to detect the flash failure.
所述检测控制单元通过预设键使主控芯片检测不到闪存, 或使主控芯 片检测到闪存失效为:  The detecting control unit prevents the main control chip from detecting the flash memory through the preset key, or causes the main control chip to detect that the flash memory is invalid:
所述预设键控制闪存的 EBI2_BUSY0_N引脚上设置的对地常开开关, 或者, 控制闪存的电源引脚与实际电源的连接线上设置的常闭开关, 或者, 控制在闪存的 CE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 RE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 CLK引脚的连接线上设置的常闭开关, 或者, 控制连接闪存的 RST引脚与地的常开开关。 The preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory. a normally closed switch set on the connection line, or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, Alternatively, control the normally closed switch set on the connection line of the CLK pin of the flash memory, or control the normally open switch of the RST pin and ground connected to the flash memory.
可以看出, 本发明通过使用低成本的硬件电路, 可以在软件升级失败 后, 通过简单切换开关或点按键, 能继续下载。 而不需 TRACE重新下载版 本, 也不需要通过 JTAG方式进行修复。  It can be seen that the present invention can continue downloading by simply switching the switch or clicking a button after the software upgrade fails by using a low-cost hardware circuit. It does not require TRACE to re-download the version, nor does it need to be fixed by JTAG.
以上所述仅为本发明的具体实施方式而已, 并非用于限定本发明的范 围。  The above description is only the specific embodiments of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种软件下载方法, 其中, 该方法包括:  A software download method, wherein the method comprises:
终端侧软件下载失败或下载的软件无法正常工作时, 使主控芯片检测 不到闪存, 或使主控芯片检测到闪存失效;  When the software download on the terminal side fails or the downloaded software fails to work normally, the main control chip cannot detect the flash memory, or the main control chip detects that the flash memory is invalid.
终端重启后, 主控芯片检测不到闪存或检测到闪存失效, 则开启紧急 下载端口;  After the terminal is restarted, the main control chip does not detect the flash memory or detects that the flash memory is invalid, and then opens the emergency download port;
使主控芯片能正常检测闪存状态并识别闪存, 之后采用所述紧急下载 端口继续进行软件下载。  The master chip can normally detect the flash state and recognize the flash memory, and then continue the software download using the emergency download port.
2、 根据权利要求 1所述的软件下载方法, 其中, 所述主控芯片检测到 闪存失效为: 主控芯片检测到闪存在设定时间内的状态为忙碌。  2. The software downloading method according to claim 1, wherein the master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
3、 根据权利要求 1或 2所述的方法, 其中, 所述使主控芯片检测不到 闪存, 或使主控芯片检测到闪存失效为: 通过点按预设键使主控芯片检测 不到闪存, 或使主控芯片检测到闪存失效。  The method according to claim 1 or 2, wherein the master chip does not detect the flash memory, or causes the master chip to detect that the flash memory is invalid: by clicking the preset button, the master chip cannot detect Flash, or cause the master chip to detect a flash failure.
4、 根据权利要求 3 所述的方法, 其中, 所述预设键控制闪存的 EBI2_BUSY0_N引脚上设置的对地常开开关,  4. The method according to claim 3, wherein the preset key controls a normally-on switch to the ground set on an EBI2_BUSY0_N pin of the flash memory,
或者, 控制闪存的电源引脚与实际电源的连接线上设置的常闭开关, 或者, 控制在闪存的 CE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 RE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 CLK引脚的连接线上设置的常闭开关, 或者, 控制连接闪存的 RST引脚与地的常开开关。  Or, a normally-closed switch that controls the connection between the power pin of the flash memory and the actual power supply, or a normally-closed switch that is set on the connection line of the CE_N pin of the flash memory, or that is controlled by the RE_N pin of the flash memory. The normally closed switch set on the connection line, or the normally closed switch set on the connection line of the CLK pin of the flash memory, or the normally open switch of the RST pin and the ground connected to the flash memory.
5、 一种终端, 其中, 该终端包括检测控制单元、 主控芯片和闪存; 其 中,  5. A terminal, wherein the terminal comprises a detection control unit, a main control chip, and a flash memory;
所述检测控制单元, 设置为在终端侧软件下载失败或下载的软件无法 正常工作时, 使主控芯片检测不到闪存, 或使主控芯片检测到闪存失效; 所述主控芯片, 设置为在终端启动时, 对闪存进行检测, 在检测不到 闪存或检测到闪存失效时, 开启紧急下载端口; 之后, 能正常检测闪存状 态并识别闪存时, 采用所述紧急下载端口继续进行软件下载; The detection control unit is configured to prevent the main control chip from detecting the flash memory when the software download failure of the terminal side fails or the downloaded software fails to work normally, or cause the main control chip to detect that the flash memory is invalid; the main control chip is set to When the terminal is started, the flash memory is detected and cannot be detected. When the flash memory or the flash memory is detected to be invalid, the emergency download port is turned on; after the flash status is normally detected and the flash memory is recognized, the emergency download port is used to continue the software download;
所述闪存, 设置为存储下载的软件数据。  The flash memory is configured to store downloaded software data.
6、 根据权利要求 5所述的终端, 其中, 所述主控芯片检测到闪存失效 为: 主控芯片检测到闪存在设定时间内的状态为忙碌。  The terminal according to claim 5, wherein the master chip detects that the flash memory is invalid: the master chip detects that the state of the flash memory is busy during the set time.
7、 根据权利要求 5或 6所述的终端, 其中, 所述检测控制单元使主控 芯片检测不到闪存, 或使主控芯片检测到闪存失效为: 通过预设键使主控 芯片检测不到闪存, 或使主控芯片检测到闪存失效。  The terminal according to claim 5 or 6, wherein the detection control unit causes the main control chip to detect no flash memory, or causes the main control chip to detect that the flash memory is invalid: by the preset key, the main control chip detects no Go to the flash memory, or let the master chip detect the flash failure.
8、 根据权利要求 7所述的终端, 其中, 所述检测控制单元通过预设键 使主控芯片检测不到闪存, 或使主控芯片检测到闪存失效为:  8. The terminal according to claim 7, wherein the detection control unit causes the main control chip to detect the flash memory by using the preset key, or causes the main control chip to detect that the flash memory is invalid:
所述预设键控制闪存的 EBI2_BUSY0_N引脚上设置的对地常开开关, 或者, 控制闪存的电源引脚与实际电源的连接线上设置的常闭开关, 或者, 控制在闪存的 CE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 RE_N引脚的连接线上设置的常闭开关, 或者, 控制在闪存的 CLK引脚的连接线上设置的常闭开关, 或者, 控制连接闪存的 RST引脚与地的常开开关。  The preset key controls a normally-on switch to be set on the EBI2_BUSY0_N pin of the flash memory, or a normally-closed switch that controls a connection between a power pin of the flash memory and the actual power source, or a CE_N pin that is controlled in the flash memory. a normally closed switch provided on the connection line, or a normally closed switch that is set on a connection line of the RE_N pin of the flash memory, or a normally closed switch that is set on a connection line of the CLK pin of the flash memory, or Controls the normally open switch of the RST pin and ground connected to the flash memory.
PCT/CN2012/073838 2012-01-10 2012-04-11 Software downloading method and terminal WO2013104154A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210006014.5 2012-01-10
CN201210006014.5A CN102609325B (en) 2012-01-10 2012-01-10 A kind of method for downloading software and terminal

Publications (1)

Publication Number Publication Date
WO2013104154A1 true WO2013104154A1 (en) 2013-07-18

Family

ID=46526717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073838 WO2013104154A1 (en) 2012-01-10 2012-04-11 Software downloading method and terminal

Country Status (2)

Country Link
CN (1) CN102609325B (en)
WO (1) WO2013104154A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181506B (en) * 2020-09-29 2024-04-19 美唐科技(江苏)有限公司 Software downloading system based on double 1860 system terminals and downloading method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1097426A (en) * 1996-09-19 1998-04-14 Hitachi Ltd System file updating method in communication control unit
CN101086701A (en) * 2006-06-07 2007-12-12 普天信息技术研究院 Method for upgrading operation system for memory card
CN101334736A (en) * 2007-06-28 2008-12-31 索尼爱立信移动通信日本株式会社 Oftware updating method and portable terminal devic

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7454606B2 (en) * 2005-05-26 2008-11-18 Incharge Technology, Inc. Maintenance device for remotely accessing and repairing failed computer systems
CN101419844B (en) * 2008-11-18 2011-03-30 清华大学深圳研究生院 Flash memory simulating device and main control module evaluation method for the flash

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1097426A (en) * 1996-09-19 1998-04-14 Hitachi Ltd System file updating method in communication control unit
CN101086701A (en) * 2006-06-07 2007-12-12 普天信息技术研究院 Method for upgrading operation system for memory card
CN101334736A (en) * 2007-06-28 2008-12-31 索尼爱立信移动通信日本株式会社 Oftware updating method and portable terminal devic

Also Published As

Publication number Publication date
CN102609325B (en) 2015-12-16
CN102609325A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN101281469B (en) Embedded type system and start-up load application method
EP2506114B1 (en) Method and device for intelligent terminal reset
TWI710952B (en) Firmware update method and computer system
US8578182B2 (en) Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same
US7900091B2 (en) Method for recovering basic input output system and computer device thereof
WO2017219861A1 (en) Method and device for controlling system start-up mode
TWI498822B (en) Electronic device for bios updatable and bios updating method thereof
CN101923480B (en) Method and device for starting terminal equipment
CN106648768B (en) Method and system for upgrading equipment
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
US11704198B2 (en) Method and apparatus for providing recovery from a computing device boot up error
CN104951328A (en) Embedded equipment and starting method thereof
CN111488589A (en) Safe and trusted boot and firmware upgrade system and method based on hardware write protection
CN103514014A (en) Method for designing boot system of embedded terminal equipment
TWI526934B (en) Method, apparatus, and computer program product for booting an information handling system
CN113127264A (en) Data storage device repairing method
CN104102505A (en) Computer power-on method
WO2013104154A1 (en) Software downloading method and terminal
US20070162735A1 (en) Control chip for a computer boot procedure and related method
US9619355B2 (en) Booting verification method of computer and electronic device
JP5342801B2 (en) Power supply control circuit, computer having the same, and power supply control method
CN109117196B (en) Dual-BIOS starting and BIOS version comparison processing system
CN115061737A (en) Password verification processing method, device and system based on double BIOS chips
TWI575459B (en) Terminal device and system upgrading method thereof
CN113032026A (en) Firmware management method, device, equipment and medium for server mainboard

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: 12864836

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: 12864836

Country of ref document: EP

Kind code of ref document: A1