A method for reading and writing test of storage chip flash by bypassing a custom system-on-chip chip
By using the JTAG interface in civil aviation aircraft electronic components for binary sequence code calculation and conversion, automatic read and write testing of flash chips is realized, which solves the difficulty and high cost of maintenance caused by customized system-on-chip chips, and provides low-cost, Efficient testing methods.
Patent Information
- Application Number
- CN202010716342.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-07-23
AI Technical Summary
In the maintenance process of electronic components of civil aviation aircraft, customizing the system-on-chip makes it difficult to conduct all-round resource testing of the board, resulting in unsatisfactory maintenance cycle, cost and quality. The existing detection scheme has the risk of manual operation, difficulty in capturing complex logic, and equipment Expensive and unfeasible problem.
Send the binary sequence code to the JTAG interface through the computer parallel port, use the characteristic parameters of the JTAG interface to calculate the instruction length, data length and transmission speed, and convert it into a binary sequence code for read and write operations on the flash chip, bypassing the complex control logic of the system-on-chip chip. Implement automated testing of flash chips.
With the support of ordinary computers and digital oscilloscopes, a low-cost, high-reliability, wide applicability and high-efficiency flash chip read and write test is realized. It is suitable for circuit board repairs of multiple manufacturers, shortening the maintenance cycle and reducing costs.
Smart Images

Figure CN113971982B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of read-write testing, and in particular to a method for performing read-write testing of a storage chip flash by bypassing a customized system-on-chip chip. Background Art
[0002] With the development of semiconductor process technology, especially the maturity of ultra-deep submicron process technology, it has become possible to integrate different functional modules, memory, and peripheral circuits on a silicon chip. This complete system that integrates various functional modules on a chip is a system-on-chip chip SOC. System-on-chip chips have the characteristics of light weight, small size, low power consumption, and fast operation speed. Therefore, as the functions of current civil aircraft become more and more powerful, the required avionics systems are becoming more and more complex. However, due to factors such as fuel economy, the overall weight of the aircraft needs to be strictly controlled. Therefore, a large number of customized system-on-chip chips SOC are used in the design of the electronic part accessory circuits of the avionics system to reduce the size and number of circuit boards. In recent years, especially the avionics components of Thales and Honeywell, which are powerful, complex in design, and advanced in manufacturing technology, use a large number of system-on-chip chips customized by manufacturers, which increases the difficulty for domestic third-party MRO maintenance units to perform three-level board maintenance tests on components in ground mode. It is difficult to test the boards with all-round resources to quickly locate faults, resulting in unsatisfactory maintenance cycles, costs and quality. In the face of these high value-added, maintenance-profitable markets, most of which are monopolized by foreign original manufacturers, which is not conducive to the development and technology reserves of the domestic civil aviation maintenance industry.
[0003] When repairing the boards of electronic components of civil aircraft, it is often encountered that the system-on-chip chip controls a certain resource on the board, such as the program storage chip FLASH. According to the maintenance process, the flash chip must be hardware tested, and the program and data stored inside it must be verified. There are currently three popular detection schemes. One detection scheme is to first remove the flash chip from the circuit board to be tested by using an electric soldering iron and a hot air gun, and then use a common programmer to perform hardware detection and program data verification according to its model, and finally solder the chip back to the circuit board. This method is completely manual mode, with simple principles and low costs, but it has two disadvantages. On the one hand, it is easy to introduce secondary human faults when welding the flash chip, which makes it more difficult to troubleshoot the circuit board. On the other hand, during the fault diagnosis process, the program and data in the flash cannot be replaced at any time according to the maintenance plan, so as to observe, track and isolate the fault phenomenon. The second detection scheme is to first use a virtual logic analyzer to capture and analyze the control logic of the system-on-chip chip when reading and writing FLASH, and then use large-scale automated test equipment to program and simulate the captured control logic timing to read and write flash, so as to perform hardware, program and data detection and verification. However, the disadvantages of this solution are quite obvious. First, if the SoC chip is powerful and the control logic is complex, the difficulty and stability of capture will be greatly increased. Moreover, the accuracy of capturing the control logic timing will determine the success or failure of the entire detection solution. Second, this virtual logic analyzer capture solution must adjust the capture method according to the actual board to be tested. The control logic of different boards needs to be recaptured, which requires a lot of manpower and time. In addition, the virtual logic analyzer that meets the capture conditions is expensive, which is not conducive to large-scale promotion and utilization in maintenance workshops. The third is to perform ISP programming on the FLASH chip through the JTAG interface of the SoC chip. The disadvantage of this solution is that the corresponding programmer is required to realize ISP in-system programming. However, since the SoC chip is a specially customized chip of the OEM manufacturer, there is no model specification, data manual and other technical information, so it is impossible to obtain any programmer tools. Therefore, this solution is basically not feasible in actual operation.
[0004] Therefore, it is necessary to provide a method for performing read and write testing of a storage chip flash by bypassing a custom system-on-chip chip to solve the above technical problems. Summary of the invention
[0005] The present invention provides a method for reading and writing a storage chip flash without using a custom system-on-chip chip, which solves the problem that the current board maintenance is difficult to test, and it is difficult to test all-round resources of the board to quickly locate the fault, resulting in unsatisfactory maintenance cycle, cost and quality.
[0006] In order to solve the above technical problems, the present invention provides a method for performing a read and write test of a storage chip flash by bypassing a customized system-on-chip chip, comprising the following steps:
[0007] S1. First, send multiple sets of specific binary sequence codes to the data line TDI of the JTAG port through the parallel port of the computer. With the help of an oscilloscope, we can calculate the instruction length, data length and maximum transmission speed of the JTAG interface through the code stream observed on the data line TDO of the JTAG port;
[0008] S2. It is necessary to find out the operation commands of the target flash of the read and write test according to its data sheet, including erase, deprotect, write buffer, program and read commands, and convert them into binary serial codes according to the characteristic parameters of the JTAG interface and a certain format;
[0009] S3, convert the data and address written into the flash, write control timing, etc. into binary sequence code, so that when it is transmitted to the control bus of the flash chip through the JTAG port, the flash can recognize the correct operation;
[0010] S4, using the software running on the computer to send the binary sequence codes converted in step S2 and step S3 to the parallel port card in sequence, and then send them to the JTAG interface of the system-on-chip chip after the level conversion by the parallel port card, and further transmit them to the target flash chip;
[0011] S5, the computer software reads back the feedback signal TDO data line of the JTAG port through the parallel port card;
[0012] S6, the target address and control timing of the read flash chip need to be converted into a binary sequence code;
[0013] S7, using the software running on the computer to send the binary sequence codes converted in step S6 and step S2 to the parallel port card in sequence, and then send them to the JTAG interface of the system-on-chip chip after the level conversion by the parallel port card, and further transmit them to the target flash chip;
[0014] S8, the computer software reads back the feedback signal TDO data line of the JTAG port through the parallel port card;
[0015] S9. The computer software compares the data written into the flash memory and the data read out in binary format.
[0016] The S1 includes the following processes:
[0017] S101, connect the JTAG interface of the system-on-chip chip to the parallel port of the computer.
[0018] S102. Use the control software to send the binary sequence code 11111111 to the TDI data line of the JTAG interface.
[0019] S103, using the control software to send the binary sequence code 10100001010 to the TDI data line of the JTAG interface.
[0020] S104, using a digital oscilloscope DSO to observe the TDO data line of the JTAG interface, and deduce the instruction length of the JTAG interface.
[0021] S105 , using the control software to send the binary serial code 00000000 to the TDI data line of the JTAG interface.
[0022] S106 , using the control software to send the binary serial codes 0000101000 and 0000010000 alternately to the TDO data line of the JTAG interface in a cycle of 100 times.
[0023] S107. Use a digital oscilloscope DSO to observe the TDO data line of the JTAG interface and deduce the data length of the JTAG interface.
[0024] S108. Repeat steps S102-S107, and at the same time increase the clock line TCK speed of the JTAG interface to 20M, so as to calculate the maximum transmission speed of the JTAG interface.
[0025] Preferably, in step S5, it is determined whether the write operation of step S4 is successful. If unsuccessful, the process starts again from step S3. If successful, it indicates that the data has been written into the target flash, and then step S6 is executed.
[0026] Preferably, in step S8, it is determined whether the read operation of step S7 is successful. If unsuccessful, the operation is restarted from step S6. If successful, it indicates that the data of the target address of the flash chip has been saved to the local hard disk file of the computer, and then step S9 is executed.
[0027] Preferably, in step S9, if they are the same, it means that the flash read and write test is successful and the operation ends; if they are not the same, it means that the flash read and write test fails and it is necessary to start again from step S3.
[0028] Compared with the related art, the method for reading and writing a memory chip flash by bypassing a custom system-on-chip chip provided by the present invention has the following beneficial effects:
[0029] The present invention provides a method for performing a read and write test of a storage chip flash by bypassing a custom system-on-chip chip.
[0030] 1. The present invention has a wide range of applications. It does not require the understanding of the control logic of the system-on-chip chip with a complex working principle. It has nothing to do with the model, specification and manufacturer of the system-on-chip chip. Therefore, it can be applied to the circuit board maintenance test of multiple manufacturers, solving the problem of unsatisfactory maintenance cycle, cost and quality.
[0031] 2. The present invention has low cost and high reliability, and is conducive to promotion in maintenance production lines. It can be realized through the parallel port of an ordinary computer, an ordinary digital oscilloscope and four control lines (clock line TCK, data line TDI, data line TDO, mode line TMS) of the JTAG interface. Due to the use of relatively mature devices and standard protocols, its reliability is relatively high;
[0032] 3. The present invention has strong repeatability. The entire test method only needs to infer the characteristics of the JTAG interface, and the flash read and write test can be repeated in the actual maintenance test to meet the on-site maintenance needs of the production workshop;
[0033] 4. The present invention has high scalability. By using the present invention method, online read and write operations can be realized for a series of memory chips, such as flash, ram, eeprom, nvram and other types of chips. At the same time, it is also conducive to expanding to operate multiple chips in parallel at the same time, improving test efficiency and shortening circuit board maintenance cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A JTAG interface characteristic parameter deduction flow chart of a method for performing a read and write test of a storage chip flash bypassing a customized system-on-chip chip provided by the present invention;
[0035] Figure 2 for Figure 1 The overall flow chart of the method for performing read and write test of the memory chip flash bypassing the custom system-on-chip chip is shown;
[0036] Figure 3 for Figure 1 The hardware wiring diagram of the method for performing read and write testing of the storage chip flash bypassing the customized system-on-chip chip is shown. DETAILED DESCRIPTION
[0037] The present invention will be further described below in conjunction with the accompanying drawings and implementation modes.
[0038] Please refer to Figure 1 , Figure 2 and Figure 3 ,in Figure 1 A JTAG interface characteristic parameter calculation flow chart of a method for performing a read and write test of a storage chip flash bypassing a custom system-on-chip chip provided by the present invention, Figure 2 for Figure 1The overall flow chart of the method for performing read and write test of the storage chip flash bypassing the custom on-chip system chip is shown. Figure 3 for Figure 1 A method for reading and writing a memory chip flash by bypassing a custom system-on-chip chip is shown as a hardware wiring diagram of the method. A method for reading and writing a memory chip flash by bypassing a custom system-on-chip chip comprises the following steps:
[0039] S1. First, send multiple sets of specific binary sequence codes to the data line TDI of the JTAG port through the parallel port of the computer. With the help of an oscilloscope, we can calculate the instruction length, data length and maximum transmission speed of the JTAG interface through the code stream observed on the data line TDO of the JTAG port;
[0040] S2. It is necessary to find out the operation commands of the target flash of the read and write test according to its data sheet, including erase, deprotect, write buffer, program and read commands, and convert them into binary serial codes according to the characteristic parameters of the JTAG interface and a certain format;
[0041] S3, convert the data and address written into the flash, write control timing, etc. into binary sequence code, so that when it is transmitted to the control bus of the flash chip through the JTAG port, the flash can recognize the correct operation;
[0042] S4, using the software running on the computer to send the binary sequence codes converted in step S2 and step S3 to the parallel port card in sequence, and then send them to the JTAG interface of the system-on-chip chip after the level conversion by the parallel port card, and further transmit them to the target flash chip;
[0043] S5, the computer software reads back the feedback signal TDO data line of the JTAG port through the parallel port card;
[0044] S6, the target address and control timing of the read flash chip need to be converted into a binary sequence code;
[0045] S7, using the software running on the computer to send the binary sequence codes converted in step S6 and step S2 to the parallel port card in sequence, and then send them to the JTAG interface of the system-on-chip chip after the level conversion by the parallel port card, and further transmit them to the target flash chip;
[0046] S8, the computer software reads back the feedback signal TDO data line of the JTAG port through the parallel port card;
[0047] S9. The computer software compares the data written into the flash memory and the data read out in binary format.
[0048] The S1 includes the following processes:
[0049] S101, connect the JTAG interface of the system-on-chip chip to the parallel port of the computer.
[0050] S102. Use the control software to send the binary sequence code 11111111 to the TDI data line of the JTAG interface.
[0051] S103, using the control software to send the binary sequence code 10100001010 to the TDI data line of the JTAG interface.
[0052] S104, using a digital oscilloscope DSO to observe the TDO data line of the JTAG interface, and deduce the instruction length of the JTAG interface.
[0053] S105 , using the control software to send the binary serial code 00000000 to the TDI data line of the JTAG interface.
[0054] S106 , using the control software to send the binary serial codes 0000101000 and 0000010000 alternately to the TDO data line of the JTAG interface in a cycle of 100 times.
[0055] S107. Use a digital oscilloscope DSO to observe the TDO data line of the JTAG interface and deduce the data length of the JTAG interface.
[0056] S108. Repeat steps S102-S107, and at the same time increase the clock line TCK speed of the JTAG interface to 20M, so as to calculate the maximum transmission speed of the JTAG interface.
[0057] In step S5, it is determined whether the write operation of step S4 is successful. If not, the process starts again from step S3. If successful, it indicates that the data has been written into the target flash, and then step S6 is executed.
[0058] In step S8, it is determined whether the read operation of step S7 is successful. If not, the process starts again from step S6. If successful, it indicates that the data of the target address of the flash chip has been saved to the local hard disk file of the computer, and then step S9 is executed.
[0059] In step S9, if they are the same, it means that the flash read and write test is successful and the operation ends; if they are not the same, it means that the flash read and write test fails and it is necessary to start again from step S3.
[0060] The working principle of a method for reading and writing a memory chip flash bypassing a custom system-on-chip provided by the present invention is as follows:
[0061] First, send multiple groups of specific binary serial codes to the data line TDI of the JTAG port through the parallel port of the computer. With the help of an oscilloscope, we can deduce the instruction length, data length and maximum transmission speed of the JTAG interface through the code stream observed on the data line TDO of the JTAG port; then we convert the operation instructions (erase, program, read) corresponding to the specifications of the flash chip that needs to be read and written into the corresponding binary serial codes according to the characteristic parameters of the JTAG interface (register length, transmission speed), and finally load them into the parallel port card of the computer; the parallel port card will automatically match the level of the JTAG interface and move the serial codes into the pins of the system-on-chip chip in sequence, while automatically isolating the internal control logic circuit of the system-on-chip chip, and finally accurately transmit the binary serial codes to the control bus of the flash chip, realizing fully automatic read and write tests on the flash storage chip.
[0062] Compared with the related art, the method for reading and writing a memory chip flash by bypassing a custom system-on-chip chip provided by the present invention has the following beneficial effects:
[0063] The present invention has a wide range of applications. The present invention does not require understanding and mastering the control logic of a system-on-chip chip with a complex working principle. It has nothing to do with the model, specification and manufacturer of the system-on-chip chip. Therefore, it can be applied to circuit board repair and testing of multiple manufacturers, solving the problem of unsatisfactory repair cycle, cost and quality.
[0064] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for reading and writing test of storage chip flash by bypassing a custom system-on-chip chip. It is characterized in that The steps include: S1. First, send multiple sets of binary serial codes to the data line TDI of the JTAG interface through the parallel port of the computer. With the help of an oscilloscope, we can calculate the instruction length, data length and maximum transmission speed of the JTAG interface through the code stream observed on the data line TDO of the JTAG interface; The S1 specifically includes the following processes: S101, connecting the JTAG interface of the system-on-chip chip to the parallel port of the computer; S102, using the control software to send the binary sequence code 11111111 to the TDI data line of the JTAG interface; S103, using the control software to send the binary sequence code 10100001010 to the TDI data line of the JTAG interface; S104, using a digital oscilloscope DSO to observe the TDO data line of the JTAG interface, and deduce the instruction length of the JTAG interface; S105, using the control software to send the binary sequence code 00000000 to the TDI data line of the JTAG interface; S106, using the control software to send the binary sequence code 0000101000 and 0000010000 alternately to the TDO data line of the JTAG interface in a cycle of 100 times; S107, using a digital oscilloscope DSO to observe the TDO data line of the JTAG interface, and deduce the data length of the JTAG interface; S108, repeating steps S102-S107, while increasing the clock line TCK speed of the JTAG interface to 20M, so as to calculate the maximum transmission speed of the JTAG interface; S2. It is necessary to find out the operation commands of the target flash of the read and write test according to its data sheet, including erase, deprotect, write buffer, program and read commands, and convert them into binary serial codes according to the characteristic parameters of the JTAG interface and a certain format; S3, convert the data and address written into the flash, and the write control timing into a binary sequence code, so that when it is transmitted to the control bus of the flash chip through the JTAG interface, the flash can recognize the correct operation; S4, using the software running on the computer to send the binary sequence codes converted in step S2 and step S3 to the parallel port card in sequence, and then send them to the JTAG interface of the system-on-chip chip after the level conversion by the parallel port card, and further transmit them to the target flash chip; S5, the computer software reads back the feedback signal TDO data line of the JTAG interface through the parallel port card; S6, the target address and control timing of the read flash chip need to be converted into a binary sequence code; S7, using the software running on the computer to send the binary sequence codes converted in step S6 and step S2 to the parallel port card in sequence, and then send them to the JTAG interface of the system-on-chip chip after the level conversion by the parallel port card, and further transmit them to the target flash chip; S8, the computer software reads back the feedback signal TDO data line of the JTAG interface through the parallel port card; S9. The computer software compares the data written into the flash memory and the data read out in binary format.
2. According to claim 1, a method for performing read and write test of a storage chip flash by bypassing a custom system-on-chip chip, It is characterized in that In step S5, it is determined whether the write operation of step S4 is successful. If not, the process starts again from step S3. If successful, it indicates that the data has been written into the target flash, and then step S6 is executed.
3. According to claim 1, a method for performing read and write test of a storage chip flash by bypassing a custom system-on-chip chip, It is characterized in that In step S8, it is determined whether the read operation of step S7 is successful. If not, the read operation is restarted from step S6. If successful, it indicates that the data of the target address of the flash chip has been saved to the local hard disk file of the computer, and then step S9 is executed.
4. According to claim 1, a method for performing read and write test of a storage chip flash by bypassing a custom system-on-chip chip, It is characterized in that In step S9, if they are the same, it means that the flash read and write test is successful and the operation ends; if they are not the same, it means that the flash read and write test fails and it is necessary to start again from step S3.
Citation Information
Patent Citations
Regulating technology of built-in processor
CN101162438A
FLASH memory on-line programming method based on parallel port
CN101315812A
Regulation test system and method of on-chip system as well as on-chip system
CN101329385A
Flash chip detecting method based on boundary scan
CN101713814A
Built-in system test method of multiple static random access memory (SRAM) based on scanning test
CN101996687A
