Method for patching chip and chip

A patching and chip technology, applied in the computer field, can solve problems such as unfavorable chip memory layout space design, jump instructions cannot realize long address jump, etc., and achieve the effect of less resources

Pending Publication Date: 2020-10-30
SHENZHEN GOODIX TECH CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the program is patched based on the jump instruction, but the jump instruction cannot realize long address jump, so there are st

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for patching chip and chip
  • Method for patching chip and chip
  • Method for patching chip and chip

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solution in this application will be described below with reference to the accompanying drawings.

[0031] Under the current rapid development of science and technology, the development of integrated circuits is quite rapid, and the demand for microcontroller (MCU) chips is also developing rapidly due to the influence of the market. However, the MCU type chip has a characteristic, that is, when the chip is manufactured, it needs to store a piece of code (that is, a program) in the internal read-only memory (ROM) space, which is used to execute the power-on startup (boot) program or Other programs with specific functions. After the chip tape-out of these programs is completed, the on-chip programs cannot be modified again, which requires that the stored programs must not have any problems, otherwise the chips with problems will not be able to be used again.

[0032] In order to solve this high-risk problem, at present, the wrong function in the program can...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a method for patching a chip and the chip, and the method can achieve the transfer through an interrupt instruction, obtains the function address of a patch function, and achieves the replacement of a function needing to be replaced. According to the method, the address information of the patch function does not need to be carried in the instruction, so that the method is not limited by the jump address range, and long address jump can be realized. The chip comprises a first program. The method comprises the following steps: when a function which needsto be replaced in the first program is operated, according to the pre-stored corresponding relation between the address of the function needing to be replaced and an interrupt instruction, executingan interrupt service program, wherein the interrupt service program is a service program scheduled by the interrupt instruction corresponding to the function needing to be replaced, and the return address of the interrupt service program is the address of the patch function of the function needing to be replaced; and running the patch function according to the address of the patch function so as to patch the first program.

Description

technical field [0001] The embodiments of the present application relate to the technical field of computers, and more specifically, relate to a method for patching a chip and the chip. Background technique [0002] Patch technology can repair the errors in the program, so it has received more and more attention. [0003] At present, the program is patched based on the jump instruction, but the jump instruction cannot realize long address jump, so there are strict requirements on the storage location of the replacement function, which is not conducive to the layout space design of the chip for the memory. Contents of the invention [0004] The embodiment of the present application provides a method for patching a chip and the chip, which can realize long address jump, and is beneficial to the layout space design of the chip for the memory. [0005] In the first aspect, a method for patching a chip is provided, the chip includes a first program, and the method includes: wh...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/65
CPCG06F8/65G06F8/656G06F8/66G06F8/658G06F9/30101G06F9/3557G06F9/4812G06F9/268G06F9/328
Inventor 邹南
Owner SHENZHEN GOODIX TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products