CN114327516A - Circuit and method for modifying chip system memory to burn - Google Patents

Circuit and method for modifying chip system memory to burn Download PDF

Info

Publication number
CN114327516A
CN114327516A CN202111631843.8A CN202111631843A CN114327516A CN 114327516 A CN114327516 A CN 114327516A CN 202111631843 A CN202111631843 A CN 202111631843A CN 114327516 A CN114327516 A CN 114327516A
Authority
CN
China
Prior art keywords
flash
fpga
program
chip
system memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111631843.8A
Other languages
Chinese (zh)
Inventor
张旭
徐建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Hongxin Integrated Circuit Co ltd
Original Assignee
Suzhou Hongxin Integrated Circuit Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Hongxin Integrated Circuit Co ltd filed Critical Suzhou Hongxin Integrated Circuit Co ltd
Priority to CN202111631843.8A priority Critical patent/CN114327516A/en
Publication of CN114327516A publication Critical patent/CN114327516A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a circuit and a method for modifying a chip system memory to burn, which comprises the following steps: (1) compiling an FPGA engineering file; (2) burning the engineering file into the FPGA; (3) completing the circuit connection; (4) starting a burning program, and outputting a control instruction to the flash by the engineering file by means of the bistpad so as to modify the data of the system memory; (5) and detecting whether the program is burned successfully. The invention utilizes the best test pad of the flash in the chip to enter the best mode, the chip to be tested is connected through the fpga board, corresponding erasing instructions and contents are sent to the best serial interface, the contents of the system memory can be modified after the chip leaves the factory, the BootLoader program can be conveniently tested, and the debugging and the testing of the flash by the chip are convenient.

Description

Circuit and method for modifying chip system memory to burn
Technical Field
The invention relates to a circuit and a method for modifying a chip system memory to burn, belonging to the technical field of chip testing.
Background
flash is a kind of memory chip, and the data in it can be modified by a specific program. Flash generally means a Flash Memory in the field of electronics and semiconductors, that is, a Flash Memory in general. The flash memory is also called as flash memory, combines the advantages of ROM and RAM, not only has the performance of Electrically Erasable Programmable (EEPROM), but also can quickly read data (the advantage of NVRAM), so that the data can not be lost due to power failure.
flash has 3 boot modes, one of which is booted by means of BootLoader in a system memory. The system memory contains a BootLoader program that can be used to reprogram the flash memory using the USART1 serial interface. The system memory is typically only capable of writing content at the time of chip manufacture and the user is not able to modify the content. In order to test the written BootLoader program and facilitate debugging and testing of the flash, the content of a system memory needs to be modified after the chip leaves a factory.
At this time, a circuit and a method for modifying a system-on-chip memory for burning are provided, and a bist circuit of the flash is intended to solve the problems of testing the physical fault and the yield of a flash area. A factory enters a test mode through a test PAD, different signals are sent according to a list signal sequence to enter different test modes so as to test whether a flash storage area is damaged or not, a bad area address is recorded, and a redundant sector is used for replacement. According to the principle, when the chip is tested after leaving the factory, the bist test pad is used for entering a bist mode, the chip is connected through the FPGA board, corresponding erasing instructions and contents are sent to a bist serial interface, the contents in a system memory can be changed, and the BootLoader test is carried out.
Disclosure of Invention
The invention aims to provide a circuit and a method for modifying a chip system memory for burning, aiming at modifying the content in the system memory and facilitating the subsequent BootLoader test.
In order to achieve the purpose, the invention provides the following technical scheme: the utility model provides a modify chip system memory and carry out circuit of burning record, including FPGA, MCU surveys the board, the chip that awaits measuring, downloader and host computer, the chip that awaits measuring is installed on MCU surveys the board, make flash be connected with MCU survey the corresponding pin of board, FPGA and MCU survey board power pin access power, FPGA and MCU survey board GND pin ground connection, downloader one end passes through serial ports with FPGA, the downloader other end is connected with the host computer, FPGA surveys the board with MCU and is connected, make FPGA's TDI, TCK, TDO, STROBE pin and flash's TDI, TCK, TDO, STROBE pin corresponds the connection, flash's TESTING pin is the high level.
The invention also discloses a method for modifying the chip system memory for burning, which adopts the circuit for modifying the chip system memory for burning and comprises the following steps:
(1) writing an FPGA engineering file required by burning;
(2) burning the engineering file into the FPGA;
(3) completing the circuit connection;
(4) pressing a reset key of the FPGA to start burning a program, communicating the FPGA and the flash through a bistpad, and outputting a control instruction to the flash by the engineering file through the bistpad so as to modify the data of a system memory;
(5) and (4) detecting whether the program is burnt successfully, if so, finishing the program burning, and if not, repeating the step (4) and then continuing to execute the program.
Further, the method for modifying the chip system memory for burning includes: the FPGA engineering file written in the step (1) follows a flash IP bist protocol, and the content in the engineering file comprises: the high level of the flash interface signal ERASE is used for erasing the original system memory in the flash, the high level of the flash interface signal PROG is used for burning programs, and addresses and data are respectively written in the flash interface signal A and the flash interface signal DIN, so that the modification of the system memory is realized.
Further, the method for modifying the chip system memory for burning includes: the step (4) of outputting the control instruction to the flash by the engineering file of the FPGA by means of the bistpad so as to modify the data of the system memory specifically comprises the following steps: 1.1, outputting a password, and entering a test mode test _ mode; 1.2, outputting an erase instruction, and erasing the content of a system memory in the chip; 1.3, outputting program finger and prog address and data.
Further, the method for modifying the chip system memory for burning includes: the step (5) specifically comprises the following steps: 5.1, powering off the chip to be tested and then powering on again; 5.2, connecting the upper computer and the MCU test board by using a data line; 5.3, opening a serial port tool to connect a serial port; 5.4, reading the device information and the option bytes, checking whether the device information and the option bytes are correct, if so, executing the next step, and if not, returning to the step (4) to burn the program again; 5.5, downloading a program; 5.6 checking whether the MCU test board executes the corresponding function, if so, successfully detecting to indicate that the system memory is successfully modified, and if not, returning to the step (4) to re-burn the program.
Further, the method for modifying the chip system memory for burning includes: and 5.5, the downloading program is a horse race lamp or water lamp program.
The invention has the beneficial effects that: the invention enters the best mode by using the best test pad of the flash in the chip, is connected with the chip to be tested by the fpga board, sends corresponding erasing instructions and contents to the best serial interface, and can modify the contents of the system memory after the chip leaves the factory, thereby being convenient for testing the BootLoader program and debugging and testing the flash by the chip.
Drawings
FIG. 1 is a schematic diagram of a connection circuit between an FPGA and a flash pin according to the present invention;
FIG. 2 is a flowchart of program burning;
FIG. 3 is a flowchart of the project file outputting control instructions to the flash via the bistpad;
FIG. 4 is a diagram of the flash IP best protocol;
FIG. 5 is a flowchart illustrating the verification process after the program is burned.
Detailed Description
For further understanding of the contents, features and effects of the present invention, the following detailed description is given in conjunction with the accompanying drawings.
Referring to fig. 1 to 5, a circuit and a method for modifying a system-on-chip memory for burning will be described in detail with reference to the drawings.
As shown in figure 1, the circuit for modifying the system-in-chip memory to burn by means of the flash bist test mechanism comprises an FPGA, an MCU test board, a chip to be tested, a downloader and an upper computer, wherein the chip to be tested is installed on the MCU test board, so that the flash is connected with corresponding pins of the MCU test board, power pins of the FPGA and the MCU test board are connected with a power supply, GND pins of the FPGA and the MCU test board are grounded, one end of the downloader is connected with the FPGA through a serial port, the other end of the downloader is connected with the upper computer, the FPGA is connected with the MCU test board, so that TDI, TCK, TDO and STROBE pins of the FPGA are correspondingly connected with TDI, TCK, TDO and STROBE pins of the flash, and the TESTING pin of the flash is at a high level.
Specifically, TESTING is a test mode enable signal and enters test mode when it is high. TCK is the test clock, TDI is the test input, TDO is the test output, STROBE is the control signal whether the input signal is valid or not. The control signal STROBE is active low and if STROBE is low, the test stimulus signal at the serial input pin TDI will be input. When STROBE is set high, data in TDI will be ignored.
As shown in fig. 2, the present invention also discloses a method for modifying a circuit for burning in an on-chip system memory by means of a flash bist test mechanism, which comprises the following steps:
(1) writing an FPGA engineering file required by burning; (2) burning the engineering file into the FPGA; (3) completing the circuit connection; (4) pressing a reset key of the FPGA to start burning a program, communicating the FPGA and the flash through a bistpad, and outputting a control instruction to the flash by the engineering file through the bistpad so as to modify the data of a system memory; (5) and (4) detecting whether the program is burnt successfully, if so, finishing the program burning, and if not, repeating the step (4) and then continuing to execute the program. And (4) waiting for 20-40 seconds of response time after the program is burned in the step (4), and preferably waiting for 30 seconds.
The FPGA engineering file written in the step (1) follows a flash IP bist protocol, and the content in the engineering file comprises: the high level of the flash interface signal ERASE is used for erasing the original system memory in the flash, the high level of the flash interface signal PROG is used for burning programs, and addresses and data are respectively written in the flash interface signal A and the flash interface signal DIN, so that the modification of the system memory is realized.
As shown in fig. 3, the step (4) of outputting a control instruction to the flash by the engineering file of the FPGA through the bistpad to modify the system memory data specifically includes the following steps: 1.1, outputting a password, and entering a test mode test _ mode; 1.2, outputting an erase instruction, and erasing the content of a system memory in the chip; 1.3, outputting program finger and prog address and data. A response time is waited between step 1.2 and step 1.3.
The communication between the FPGA and the flash, the instruction sent by the serial interface follows the flash IP bist protocol, specifically referring to fig. 4, fig. 4 shows the input timing and the input sequence of the protocol serial input pin TDI, wherein the general test frequency of the test clock TCK may be set to 1MHz, 10MHz, or 20 MHz.
The method comprises the following steps that a test output pin TDI of the FPGA sends a serial input signal to a test input pin TDI of the flash in the following sequence: CEb, DEEPPD, OEb, WEb, PROG, PROG2, ERASE, CHIP, NVR, TMEN, CONFEN, VREAD0, VREAD1, BYTE, A, DIN, msa, msb, msc, msd, freq0, freq1, Tprog _ conf0, Tprog _ conf1, Terase _ conf0, Terase _ conf 1; the CEb to DIN are flash IP interface signals, including enable signals, program erase control, address and data signals, for controlling the flash operation. Signals msa, msb, msc, msd, freq0, and freq1 in the serial input data stream are used to define the test mode and operating frequency. The Tprog _ conf0, Tprog _ conf1 signals are used to set the word program time Tprog, Terase _ conf0, Terase _ conf1 signals are used to set the sector/block erase time Terase.
As shown in fig. 4, the step (5) specifically includes the following steps: 5.1, powering off the chip to be tested and then powering on again; 5.2, connecting the upper computer and the MCU test board by using a data line; 5.3, opening a serial port tool to connect a serial port; 5.4, reading the device information and the option bytes, checking whether the device information and the option bytes are correct, if so, executing the next step, and if not, returning to the step (4) to burn the program again; 5.5, downloading a program; 5.6 checking whether the MCU test board executes the corresponding function, if so, successfully detecting to indicate that the system memory is successfully modified, and if not, returning to the step (4) to re-burn the program. The step 5.5 downloading program is a horse race lamp or water lamp program, and whether the LED of the MCU test board can correspondingly emit light or extinguish according to the program is checked in the step 5.6.
It can be seen from the above description that the invention enters the best mode by using the best test pad of the flash in the chip, connects the chip to be tested through the fpga board, sends the corresponding erasing and writing instructions and contents to the best serial interface, and can modify the system memory contents after the chip leaves the factory, thereby facilitating the test of the BootLoader program and the debugging and testing of the flash by the chip.
The above are only typical examples of the present invention, and besides, the present invention may have other embodiments, and all the technical solutions formed by equivalent substitutions or equivalent changes are within the scope of the present invention as claimed.

Claims (6)

1. A circuit for modifying a system-on-chip memory for burning, comprising: including FPGA, MCU surveys the board, the chip that awaits measuring, downloader and host computer, the chip that awaits measuring is installed on MCU surveys the board, make flash be connected with MCU survey the corresponding pin of board, FPGA and MCU survey board power pin and insert the power, FPGA and MCU survey board GND pin ground connection, downloader one end passes through serial ports with FPGA, the downloader other end is connected with the host computer, FPGA surveys the board with MCU and is connected, make FPGA's TDI, TCK, TDO, STROBE pin and flash's TDI, TCK, TDO, STROBE pin corresponds the connection, flash's TESTING pin is the high level.
2. A method for modifying a system-on-chip memory for programming, wherein the circuit for modifying a system-on-chip memory for programming as claimed in claim 1 comprises the steps of:
(1) writing an FPGA engineering file required by burning; (2) burning the engineering file into the FPGA; (3) completing the circuit connection; (4) pressing a reset key of the FPGA to start burning a program, communicating the FPGA and the flash through a bistpad, and outputting a control instruction to the flash by the engineering file through the bistpad so as to modify the data of a system memory; (5) and (4) detecting whether the program is burnt successfully, if so, finishing the program burning, and if not, repeating the step (4) and then continuing to execute the program.
3. The method of claim 2, wherein the method further comprises: the FPGA engineering file written in the step (1) follows a flash IP bist protocol, and the content in the engineering file comprises: the high level of the flash interface signal ERASE is used for erasing the original system memory in the flash, the high level of the flash interface signal PROG is used for burning programs, and addresses and data are respectively written in the flash interface signal A and the flash interface signal DIN, so that the modification of the system memory is realized.
4. The method of claim 2, wherein the method further comprises: the step (4) of outputting the control instruction to the flash by the engineering file of the FPGA by means of the bistpad so as to modify the data of the system memory specifically comprises the following steps: 1.1, outputting a password, and entering a test mode test _ mode; 1.2, outputting an erase instruction, and erasing the content of a system memory in the chip; 1.3, outputting program finger and prog address and data.
5. The method of claim 2, wherein the method further comprises: the step (5) specifically comprises the following steps: 5.1, powering off the chip to be tested and then powering on again; 5.2, connecting the upper computer and the MCU test board by using a data line; 5.3, opening a serial port tool to connect a serial port; 5.4, reading the device information and the option bytes, checking whether the device information and the option bytes are correct, if so, executing the next step, and if not, returning to the step (4) to burn the program again; 5.5, downloading a program; 5.6 checking whether the MCU test board executes the corresponding function, if so, successfully detecting to indicate that the system memory is successfully modified, and if not, returning to the step (4) to re-burn the program.
6. The method of claim 5, wherein the method further comprises: and 5.5, the downloading program is a horse race lamp or water lamp program.
CN202111631843.8A 2021-12-29 2021-12-29 Circuit and method for modifying chip system memory to burn Pending CN114327516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111631843.8A CN114327516A (en) 2021-12-29 2021-12-29 Circuit and method for modifying chip system memory to burn

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111631843.8A CN114327516A (en) 2021-12-29 2021-12-29 Circuit and method for modifying chip system memory to burn

Publications (1)

Publication Number Publication Date
CN114327516A true CN114327516A (en) 2022-04-12

Family

ID=81015618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111631843.8A Pending CN114327516A (en) 2021-12-29 2021-12-29 Circuit and method for modifying chip system memory to burn

Country Status (1)

Country Link
CN (1) CN114327516A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220978A (en) * 2022-09-19 2022-10-21 瀚博半导体(上海)有限公司 Chip starting method and device including online debugging mode, chip and equipment
CN115767818A (en) * 2022-12-13 2023-03-07 深圳市美矽微半导体有限公司 Control method for LED lighting mode
CN117194346A (en) * 2023-11-06 2023-12-08 上海合见工业软件集团有限公司 Download file clearing method, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010050573A1 (en) * 1999-04-07 2001-12-13 Austin C. Dumbri Chip-on-chip testing using bist
US20030106004A1 (en) * 2001-12-04 2003-06-05 Intellitech Corporation Method and apparatus for embedded built-in self-test (BIST) of electronic circuits and systems
US20050204233A1 (en) * 2004-02-26 2005-09-15 Samsung Electronics Co., Ltd. System-on-chip (SOC) having built-in-self-test circuits and a self-test method of the SOC
TW200636266A (en) * 2005-01-24 2006-10-16 Spansion Llc Automated tests for built-in self test
US20100042879A1 (en) * 2008-08-14 2010-02-18 Ipgoal Microelectronics (Sichuan) Co., Ltd. Method of memory build-in self-test
CN101706746A (en) * 2009-11-11 2010-05-12 盛科网络(苏州)有限公司 Device and method for carrying out online debugging on memory interface circuit
US7761754B1 (en) * 2008-03-25 2010-07-20 Altera Corporation Techniques for testing memory circuits
CN201655336U (en) * 2010-03-24 2010-11-24 青岛海信电器股份有限公司 Serial flash debugging circuit based on FPGA and television set with same
CN102157205A (en) * 2011-05-10 2011-08-17 北京航空航天大学 Method for testing fault of multiposition memorizer inlaid in FPGA
CN102332308A (en) * 2009-11-11 2012-01-25 盛科网络(苏州)有限公司 Method for debugging memory interface circuit on line
CN102540050A (en) * 2010-12-20 2012-07-04 安凯(广州)微电子技术有限公司 Method and device for testing chip
CN103000230A (en) * 2011-09-09 2013-03-27 上海华虹Nec电子有限公司 Nonvolatile memory IP core test and verify exploitation system
CN104751896A (en) * 2015-04-17 2015-07-01 上海华虹宏力半导体制造有限公司 Built-in self-testing circuit
CN107301880A (en) * 2017-06-15 2017-10-27 西安微电子技术研究所 A kind of BIST Structure of piece upper embedded Flash
CN109283451A (en) * 2018-09-18 2019-01-29 电子科技大学 A kind of integrated circuit non-defective unit detection system and method
CN112542199A (en) * 2020-12-30 2021-03-23 深圳市芯天下技术有限公司 Method, circuit, storage medium and terminal for detecting flash storage error

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010050573A1 (en) * 1999-04-07 2001-12-13 Austin C. Dumbri Chip-on-chip testing using bist
US20030106004A1 (en) * 2001-12-04 2003-06-05 Intellitech Corporation Method and apparatus for embedded built-in self-test (BIST) of electronic circuits and systems
US20050204233A1 (en) * 2004-02-26 2005-09-15 Samsung Electronics Co., Ltd. System-on-chip (SOC) having built-in-self-test circuits and a self-test method of the SOC
TW200636266A (en) * 2005-01-24 2006-10-16 Spansion Llc Automated tests for built-in self test
US7761754B1 (en) * 2008-03-25 2010-07-20 Altera Corporation Techniques for testing memory circuits
US20100042879A1 (en) * 2008-08-14 2010-02-18 Ipgoal Microelectronics (Sichuan) Co., Ltd. Method of memory build-in self-test
CN101706746A (en) * 2009-11-11 2010-05-12 盛科网络(苏州)有限公司 Device and method for carrying out online debugging on memory interface circuit
CN102332308A (en) * 2009-11-11 2012-01-25 盛科网络(苏州)有限公司 Method for debugging memory interface circuit on line
CN201655336U (en) * 2010-03-24 2010-11-24 青岛海信电器股份有限公司 Serial flash debugging circuit based on FPGA and television set with same
CN102540050A (en) * 2010-12-20 2012-07-04 安凯(广州)微电子技术有限公司 Method and device for testing chip
CN102157205A (en) * 2011-05-10 2011-08-17 北京航空航天大学 Method for testing fault of multiposition memorizer inlaid in FPGA
CN103000230A (en) * 2011-09-09 2013-03-27 上海华虹Nec电子有限公司 Nonvolatile memory IP core test and verify exploitation system
CN104751896A (en) * 2015-04-17 2015-07-01 上海华虹宏力半导体制造有限公司 Built-in self-testing circuit
CN107301880A (en) * 2017-06-15 2017-10-27 西安微电子技术研究所 A kind of BIST Structure of piece upper embedded Flash
CN109283451A (en) * 2018-09-18 2019-01-29 电子科技大学 A kind of integrated circuit non-defective unit detection system and method
CN112542199A (en) * 2020-12-30 2021-03-23 深圳市芯天下技术有限公司 Method, circuit, storage medium and terminal for detecting flash storage error

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杜影;赵文彦;安佰岳;: "基于FPGA的板级BIST设计和实现策略", 计算机测量与控制, no. 03, 25 March 2008 (2008-03-25), pages 389 - 391 *
鉴海防, 王占和, 李印增, 张昭勇: "SoC嵌入式flash存储器的内建自测试设计", 微电子学与计算机, no. 04, 20 May 2005 (2005-05-20) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220978A (en) * 2022-09-19 2022-10-21 瀚博半导体(上海)有限公司 Chip starting method and device including online debugging mode, chip and equipment
CN115767818A (en) * 2022-12-13 2023-03-07 深圳市美矽微半导体有限公司 Control method for LED lighting mode
CN115767818B (en) * 2022-12-13 2023-11-17 深圳市美矽微半导体股份有限公司 Control method for LED lighting mode
CN117194346A (en) * 2023-11-06 2023-12-08 上海合见工业软件集团有限公司 Download file clearing method, electronic equipment and storage medium
CN117194346B (en) * 2023-11-06 2024-01-23 上海合见工业软件集团有限公司 Download file clearing method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN114327516A (en) Circuit and method for modifying chip system memory to burn
CN107885510B (en) Burning tool and burning method capable of simultaneously burning double DSPs
US7360137B2 (en) Flash programmer for programming NAND flash and NOR/NAND combined flash
US7017038B1 (en) Method and system to provide first boot to a CPU system
US5784611A (en) Device and process for in-system programming electrically erasable and programmable non-volatile memory
JP2016537619A (en) Programmable interface-based verification and debugging
US20120198292A1 (en) Test apparatus and test method
CN109411009B (en) Flash device erasing life test system device
US5819108A (en) Programming of software into programmable memory within a peripheral device
CN112034330A (en) Automatic QC method and device for SOC chip
US20240095366A1 (en) Secure boot apparatus and method
CN115312110A (en) Chip verification system and verification method thereof
CN111459744A (en) Firmware burning method and firmware debugging method of video processing chip
CN100530146C (en) BIOS on-line rewriting method
CN117219146A (en) Safety start-oriented on-chip efuse read-write control device and method
CN102478623B (en) Testing method of a unit to be tested
CN113377586A (en) Automatic server detection method and device and storage medium
CN111459730A (en) PCH (physical channel) end parameter adjusting method and system under Whitley platform
CN112182586B (en) MCU read-write protection test method, device and system
CN114692540A (en) FLASH application verification system based on FPGA
CN113312224A (en) MCU for testing OTP type and testing method thereof
CN112798942A (en) Chip batch test method and system
TWI417888B (en) An embedded chip system, a method for burning a wafer, and a computer program product
CN212364515U (en) Automatic QC device of SOC chip
TWI794996B (en) Apparatus and system for debugging solid state disk devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination