MCU chip test system and test method thereof

By designing the MCU chip test system and using communication protocol instructions to implement MCU chip self-test, it solves the problem of insufficient data processing and sharing capabilities in the existing system, improves test efficiency and accuracy, adapts to diversified test needs, and improves product quality. and market competitiveness.

CN118549790AInactive Publication Date: 2024-08-27XIAN XIGU MICROELECTRONICS

Patent Information

Application Number
CN202410561814.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing MCU chip testing systems lack real-time data processing and analysis capabilities, and data can only be stored locally, which limits data accessibility and sharing capabilities, making cross-team collaboration and remote analysis difficult.

Method used

An MCU chip test system is designed, including a loader module, a storage module, a file generation module and a central control module. It realizes the self-test of the MCU chip through communication protocol instructions, supports IO port high and low level tests, UART tests, etc., and prioritizes them. Test process to achieve fully automated testing process.

Benefits of technology

It improves testing efficiency and accuracy, reduces human resource requirements, supports diverse testing needs, improves product quality and market competitiveness, and significantly improves the accuracy and fault diagnosis capabilities of IO port testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549790A
    Figure CN118549790A
Patent Text Reader

Abstract

The invention belongs to the technical field of chip testing, and discloses an MCU chip testing system and method, and the system comprises a bearing module which bears a to-be-tested MCU chip and outputs an MCU chip configuration program; the storage module is used for storing the test program of each test item to the MCU chip configuration program; the file generation module is used for generating an executable file of an MCU configuration program and downloading the executable file into the MCU chip to be tested; the central control module is used for sending a communication protocol instruction pointing to each test item to the test module in sequence; and the test module is connected with the bearing module to control the MCU chip to be tested to execute the test program of the test item pointed by the communication protocol instruction, so that the test of the MCU chip to be tested is realized. According to the invention, the MCU test barrier is broken through, and the integration of complex configuration programs is realized through communication protocol instructions, so that the MCU can load complex multi-module comprehensive configuration programs at one time, and the self-test of the MCU is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of chip testing, and in particular relates to an MCU chip testing system and a testing method thereof. Background Art

[0002] Microcontroller Unit (MCU), also known as single chip microcomputer or single chip microcomputer, is a chip-level computer that appropriately reduces the frequency and specifications of the central processing unit (CPU), and integrates memory, counter, USB, A / D conversion, UART, PLC, DMA and other peripheral interfaces, and even LCD driver circuits on a single chip to form a chip-level computer, which can be used for different combination controls for different applications. MCU can be seen in mobile phones, PC peripherals, remote controls, automotive electronics, industrial stepper motors, and robot arm control. Therefore, it is very important to quickly and accurately measure the relevant parameters of the MCU chip and intuitively display the test results. Traditional MCU chip test systems usually store test data locally, which limits the accessibility and sharing capabilities of data and makes cross-team collaboration difficult. The lack of effective remote operation and monitoring functions requires the test process to be carried out on-site, limiting the flexibility of operation.

[0003] In summary, the problems existing in the prior art are:

[0004] (1) Existing systems often lack real-time data processing and analysis capabilities. Users cannot obtain test feedback immediately, which is not conducive to rapid iteration and problem solving.

[0005] (2) Test data is usually stored only locally, without support for cloud storage or remote access. This limits the accessibility and sharing capabilities of data, making cross-team collaboration and remote analysis difficult. Summary of the invention

[0006] In view of the problems existing in the prior art, the present invention provides an MCU chip testing system and a testing method thereof.

[0007] The present invention is implemented in this way: a MCU chip testing system, the system specifically comprising:

[0008] The carrier module is used to carry the MCU chip to be tested and output the MCU chip configuration program;

[0009] The storage module is connected to the carrier module and stores the test program of each test item into the MCU chip configuration program;

[0010] A file generation module, connected to the storage module and the carrier module, for generating an executable file of the MCU configuration program and downloading the executable file to the MCU chip to be tested;

[0011] A central control module, connected to the file generation module, for sending communication protocol instructions pointing to each test item to the test module in sequence;

[0012] The test module is connected to the central control module and the carrier module, and controls the MCU chip to be tested to execute the test program of the test item pointed to by the communication protocol instruction through the connection carrier module according to the communication protocol instruction, so as to realize the test of the MCU chip to be tested.

[0013] Further, the test items include: IO port high and low level test; UART test; internal instruction set, register test; IIC test; initialization test, communication test, DDM report test, open / closed loop function test, lookup table test, BIAS / MD polarity test, LA LOS alarm function test (including OMA and ROP), Fault function test, low power consumption test, TXDIS function test, input and output polarity test, AutoDOC test, CDR test, analog test, password function test, RAM read and write test;

[0014] Among them, when the port configured in input mode is a non-multiplexed IO port, the test priority of the high and low level tests of the IO port is the highest, and the test priorities of the remaining test items are equal and lower than the test priority of the high and low level tests of the IO port;

[0015] When the port configured in input mode is a UART port, the UART test has the highest test priority, and the test priorities of the remaining test items are equal and lower than the test priority of the UART test.

[0016] Further, the specific method of the IO port high and low level test is as follows:

[0017] S1: The central control module sends a communication protocol instruction of a test program for high and low level tests of the IO port to the test module;

[0018] S2: The test module controls the MCU chip to be tested to execute the test program of the IO port high and low level test according to the communication protocol instructions of the test program pointing to the IO port high and low level test:

[0019] S3: The test module configures all IO ports of the MCU chip under test as output ports, and then controls all IO ports of the MCU chip under test to output high level, and after a fixed time, controls all IO ports to output low level;

[0020] S4: Execute the IO initialization; if it is observed within the specified time that the outputs of all IO ports of the MCU chip to be tested are switched from high level to low level, the IO port high and low level tests are passed.

[0021] Further, the UART test method is as follows:

[0022] S21: The central control module sends a communication protocol instruction pointing to the test program of the UART test to the test module;

[0023] S22: The test module controls the MCU chip to be tested to execute the test program of the UART test according to the communication protocol instruction pointing to the test program of the UART test:

[0024] S23: the test module configures the working mode of the UART as follows: the data received by the input port of the UART is sent out again through the output port of the UART;

[0025] S24: The central control module writes a UART protocol instruction to the input port of the UART in the test module, and the MCU chip to be tested repackages the data in the UART protocol instruction and sends it out through the output port of the UART;

[0026] S25: If the MCU chip under test observes that the output port of the UART outputs the data in the UART protocol instruction within the specified time, the UART test passes.

[0027] Further, the central control module sends communication protocol instructions to each test item in order from high to low priority of the test items, and after the test items with higher test priority are tested, the test items with lower test priority are tested until all test items are tested; if all test items are tested, the self-test of the MCU chip to be tested is passed; otherwise, the self-test of the MCU chip to be tested fails;

[0028] Among them, if the central control module observes that the MCU chip under test outputs the agreed observation signal of the test item within the specified time, the test item is tested.

[0029] Further, the test module, according to the communication protocol instruction, sequentially executes the test program of the test item pointed to by the communication protocol instruction to implement the test of the test module, specifically including:

[0030] S31: a test instruction parsing step, in which the test module receives and parses the test instruction to obtain the test instruction for the target function;

[0031] S32: a test electrical signal output step, in which the test module responds to the test instruction and controls the issuance of a corresponding test electrical signal required for the target function test;

[0032] S33: The MCU chip to be tested executes a corresponding program according to a corresponding test electrical signal;

[0033] S34: Analysis step, analyzing the collected electrical signals output by the tested MCU chip based on the target function test to obtain test results.

[0034] Further, the test program of the test item is used to respond to the communication protocol instruction pointing to the test program of the test item, execute the test operation of the test item, and control the MCU chip to be tested to output a corresponding observation signal after executing the test operation;

[0035] The test procedures for all test items are placed in a while loop.

[0036] Another object of the present invention is to provide an MCU chip testing method implementing the MCU chip testing system, the method comprising:

[0037] S41: Use the carrier module to carry the test module and output the MCU chip configuration program;

[0038] S42: using the storage module to store the test program of each test item into the MCU chip configuration program; using the file generation module to generate an executable file of the MCU configuration program, and downloading the executable file into the test module;

[0039] S43: using the central control module to sequentially send communication protocol instructions pointing to each test item to the test module; using the test module to sequentially execute the test programs of the test items pointed to by the communication protocol instructions according to the communication protocol instructions, so as to implement the test of the test module.

[0040] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the MCU chip testing method.

[0041] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the MCU chip testing method.

[0042] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0043] First, the present invention breaks through the MCU testing barrier and realizes the integration of complex configuration programs through communication protocol instructions, so that the MCU can load a complex multi-module integrated configuration program at one time to realize MCU self-test.

[0044] During the MCU self-test process, the MCU minimum working system is also built, so that the MCU chip to be tested works in a real application environment, and the powerful computing, control and judgment capabilities of the MCU are fully utilized to perform self-test inside the MCU, which can better stimulate the failure mode of the chip. Compared with previous MCU tests, for complex controllers, the MCU self-test method described in this embodiment can greatly reduce the difficulty of writing test PATTERNs. Most judgments are performed inside the MCU, and ATE only needs to schedule internal resources of the MCU and make simple judgments on the responses.

[0045] The present invention is an open testing method. As long as the communication protocol capacity is large enough, the test items can be added at will according to the test requirements until the fault coverage requirement is met.

[0046] Second, the positive technical effects and significant technical advances of the present invention also include:

[0047] Improve test efficiency: The automated process greatly shortens the test time, especially in high-volume production and testing environments.

[0048] Reduce human resource requirements: Reduce reliance on professional and technical personnel and alleviate the burden on human resources.

[0049] Improve test accuracy and reliability: Automated and standardized testing processes reduce human errors and improve the reliability of test results.

[0050] Adapting to diverse testing needs: By including multiple test items and functions, the present invention can adapt to diverse testing needs and provide more comprehensive test coverage.

[0051] Improve product quality and market competitiveness: A more accurate and efficient testing process means higher product quality, thus enhancing the competitiveness of the final product in the market.

[0052] Third, the technical solution provided by the present invention has brought significant technical progress in the high and low level testing of the IO ports of the microcontroller unit (MCU) chip, which is mainly reflected in the following aspects:

[0053] 1) Enhanced test accuracy:

[0054] Through automated testing procedures, it ensures that each IO port can be accurately detected, thereby improving the reliability and accuracy of the entire testing process.

[0055] 2) Fast test execution:

[0056] Due to the automation of the test process, the execution time of the test is greatly shortened, and the high and low level tests of all IO ports can be completed in a shorter time.

[0057] 3) Comprehensive port detection:

[0058] The test includes all IO ports on the MCU chip to ensure that nothing is missed, thus providing comprehensive test coverage.

[0059] 4) Improvement of fault diagnosis:

[0060] If the test fails, it can quickly and accurately diagnose which specific IO port has the problem, facilitating targeted repairs or replacements and improving maintenance efficiency.

[0061] 5) Reduce human errors:

[0062] Automated testing reduces the need for manual operation, thereby reducing testing failures due to human errors.

[0063] 6) Improve production efficiency:

[0064] For the mass production of MCU chips, a fast and accurate testing process can significantly improve the efficiency of the production line.

[0065] 7) Save testing costs:

[0066] Automated testing reduces the reliance on professional operators and helps reduce the cost of the entire testing process in the long run.

[0067] Through this efficient, accurate and comprehensive testing method, the stability and performance of MCU chips in actual applications can be ensured, which is particularly suitable for high-standard electronic product manufacturing and quality control. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 This is a structural diagram of an MCU chip test system provided by an embodiment of the present invention;

[0069] Figure 2 It is a flow chart of a method for testing high and low levels of an IO port provided by an embodiment of the present invention;

[0070] Figure 3 It is a flow chart of the UART testing method provided by an embodiment of the present invention;

[0071] Figure 4The test module provided by the embodiment of the present invention sequentially executes the test program of the test item pointed to by the communication protocol instruction according to the communication protocol instruction, thereby realizing the test method flow chart of the test module;

[0072] Figure 5 It is a flow chart of the MCU chip testing method provided by an embodiment of the present invention;

[0073] Figure 6 It is a circuit diagram of a central control module provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0075] In view of the problems existing in the prior art, the technical solution adopted by the present invention is:

[0076] Automated testing process: By introducing a carrier module, a storage module, a file generation module and a central control module, the present invention realizes full automation from test preparation to execution, significantly reduces manual intervention, and solves the problems of low efficiency and high error rate in traditional manual testing processes.

[0077] Standardization and consistency: The central control module can ensure the consistency and repeatability of the test process. Each MCU chip to be tested is tested according to the same standard and sequence, avoiding inconsistencies and deviations in manual testing.

[0078] Priority and test coverage: By determining the priorities of different test items, the present invention ensures priority testing of key functions. At the same time, it provides a variety of test items including IO port and UART tests to ensure comprehensive testing of the MCU chip.

[0079] Error reduction and accuracy: Automated testing processes reduce errors due to human fatigue or mistakes and improve test accuracy.

[0080] Two specific application examples of the embodiment of the present invention are:

[0081] Example 1: Automotive Electronic Control Unit Test

[0082] The MCU chip testing system of the present invention is applied to the testing of automobile electronic control units (ECUs). Automobile ECUs are important components of automobile electronic systems and play a key role in the performance and safety of automobiles.

[0083] Carrier module: First, place the automotive ECU MCU chip to be tested in the carrier module. The carrier module is responsible for correctly positioning the chip and providing the necessary power supply and interfaces.

[0084] Storage module: The storage module automatically loads the test program for the automotive ECU into the MCU chip configuration program.

[0085] File generation and download: The file generation module creates the executable file of the MCU configuration program and automatically downloads it to the MCU chip to be tested.

[0086] Central control module: The central control module sends communication protocol instructions to the test module according to the preset test sequence to start the test process.

[0087] Test module: The test module controls the MCU chip to execute various test programs, such as IO port test, UART test, etc., according to the received instructions, to ensure that all functions of the ECU are verified according to the specifications of the automobile manufacturer.

[0088] Example 2: Smart Home Device MCU Test

[0089] The MCU chip testing system of the present invention is applied to the MCU chip testing in smart home devices. Smart home devices have high requirements on the reliability and performance of MCU, because they often need to process complex data and control a variety of home devices.

[0090] Carrier module: The MCU chip in the smart home device is placed in the carrier module in preparation for testing.

[0091] Storage module: The storage module stores the relevant test programs into the MCU chip configuration program according to the specific requirements of the smart home device.

[0092] File generation and download: The file generation module generates executable files suitable for the MCU of smart home devices and downloads them to the chip.

[0093] Central Control Module: The central control module directs the test process and sends test instructions in order of priority.

[0094] Test module: The test module performs specific test operations, such as communication test, IO port test, low power consumption test, etc., to ensure that the MCU chip can meet the operation requirements of smart home devices.

[0095] like Figure 1 As shown, an embodiment of the present invention provides an MCU chip testing system, which specifically includes:

[0096] The carrier module is used to carry the MCU chip to be tested and output the MCU chip configuration program;

[0097] The storage module is connected to the carrier module and stores the test program of each test item into the MCU chip configuration program;

[0098] A file generation module, connected to the storage module and the carrier module, for generating an executable file of the MCU configuration program and downloading the executable file to the MCU chip to be tested;

[0099] A central control module, connected to the file generation module, for sending communication protocol instructions pointing to each test item to the test module in sequence;

[0100] The test module is connected to the central control module and the carrier module, and controls the MCU chip to be tested to execute the test program of the test item pointed to by the communication protocol instruction through the connection carrier module according to the communication protocol instruction, so as to realize the test of the MCU chip to be tested.

[0101] The test items include: IO port high and low level test; UART test; internal instruction set, register test; IIC test; initialization test, communication test, DDM report test, open / closed loop function test, lookup table test, BIAS / MD polarity test, LA LOS alarm function test (including OMA and ROP), Fault function test, low power consumption test, TXDIS function test, input and output polarity test, AutoDOC test, CDR test, analog test, password function test, RAM read and write test;

[0102] Among them, when the port configured in input mode is a non-multiplexed IO port, the test priority of the high and low level tests of the IO port is the highest, and the test priorities of the remaining test items are equal and lower than the test priority of the high and low level tests of the IO port;

[0103] When the port configured in input mode is a UART port, the UART test has the highest test priority, and the test priorities of the remaining test items are equal and lower than the test priority of the UART test.

[0104] The present invention provides a test system for a microcontroller unit (MCU) chip, the working principle of which can be decomposed into the following key modules and steps:

[0105] Carrier module:

[0106] Function: This module is used to physically carry the MCU chip to be tested. It provides the necessary interfaces to connect the MCU chip, and to power and program it.

[0107] Configuration program output: The carrier module is responsible for outputting the configuration program of the MCU chip and preparing the chip for the test process.

[0108] Storage Module:

[0109] Connection: Connected to the carrier module.

[0110] Function: Store the test programs of each test item into the configuration program of the MCU chip. These test programs cover all the predetermined test items.

[0111] File generation module:

[0112] Connection: Connected to the storage module and the carrier module.

[0113] Function: Responsible for generating executable files of MCU configuration programs and downloading these files to the MCU chip to be tested. This step is the preparation before testing to ensure that the MCU chip is loaded with all necessary test programs.

[0114] Central control module:

[0115] Connection: Connect with the file generation module.

[0116] Function: Send instructions to the test modules in sequence according to the predetermined test process. These communication protocol instructions point to different test items and control the progress of the entire test process.

[0117] Test Module:

[0118] Connection: Connect with the central control module and the carrier module.

[0119] Function: According to the communication protocol instructions issued by the central control module, the MCU chip to be tested is controlled by the connected carrier module to execute the corresponding test program. This module is responsible for actually executing various tests and collecting test results.

[0120] Test items and priorities:

[0121] Test items: including a series of functional and performance tests, such as IO port test, UART test, internal instruction set and register test, etc.

[0122] Priority rules: Depending on the different configurations of the MCU chip, the priority of the test items will be different. For example, when the MCU port is configured as a non-multiplexed IO port, the high and low level tests of the IO port have the highest priority. When the port is configured as a UART port, the UART test has the highest priority.

[0123] Through the above working principle, the test system of the embodiment of the present invention can efficiently and accurately perform comprehensive performance and function tests on the MCU chip to ensure that it meets the design and application requirements. This system is particularly suitable for quality control and fault diagnosis of complex electronic products.

[0124] like Figure 2As shown, the specific method of the IO port high and low level test is as follows:

[0125] S1: The central control module sends a communication protocol instruction of a test program for high and low level tests of the IO port to the test module;

[0126] S2: The test module controls the MCU chip to be tested to execute the test program of the IO port high and low level test according to the communication protocol instructions of the test program pointing to the IO port high and low level test:

[0127] S3: The test module configures all IO ports of the MCU chip under test as output ports, and then controls all IO ports of the MCU chip under test to output high level, and after a fixed time, controls all IO ports to output low level;

[0128] S4: Execute the IO initialization; if it is observed within the specified time that the outputs of all IO ports of the MCU chip to be tested are switched from high level to low level, the IO port high and low level tests are passed.

[0129] The detailed working principle of the IO port high and low level test is as follows:

[0130] S1: Send test command

[0131] The central control module is responsible for coordinating the entire test process. It sends specific communication protocol instructions to the test module, which are specifically for IO port high and low level tests.

[0132] The communication protocol instructions of the test program are a series of coded instructions used to instruct the test module to perform specific test operations.

[0133] S2: Control MCU to execute test

[0134] After receiving the instruction from the central control module, the test module starts to control the MCU chip to be tested to perform high and low level tests of the IO port according to a predetermined program.

[0135] Executing the test program means that the test module activates the corresponding test sequence in the MCU chip and starts the IO port test.

[0136] S3: IO port test

[0137] Configure as output port: The test module first configures all IO ports on the MCU chip as output ports. This is to detect whether each port can output signals normally.

[0138] Output high level: Then, the test module controls the MCU chip to make all IO ports output high level (usually logic level "1").

[0139] Switch to low level: After a fixed time, the test module controls the MCU chip to make all IO ports output low level (usually logic level "0").

[0140] S4: Test result judgment

[0141] IO initialization: Before switching the level, perform necessary IO port initialization to ensure the accuracy of the test.

[0142] Observe level switching: The test module monitors the level status of each IO port. If all ports can switch smoothly from high level to low level, it indicates that the IO port functions normally.

[0143] Test result: If the output of all IO ports switches from high level to low level as expected within the specified time, the test passes; if any port fails to switch in this way, the test fails.

[0144] This IO port high and low level test method can effectively verify whether the IO port function of the MCU chip is normal, especially the output capacity and level switching capability of the port, which is crucial to ensure the stability and reliability of the MCU chip in practical applications.

[0145] like Figure 3 As shown, the UART test method is as follows:

[0146] S21: The central control module sends a communication protocol instruction pointing to the test program of the UART test to the test module;

[0147] S22: The test module controls the MCU chip to be tested to execute the test program of the UART test according to the communication protocol instruction pointing to the test program of the UART test:

[0148] S23: the test module configures the working mode of the UART as follows: the data received by the input port of the UART is sent out again through the output port of the UART;

[0149] S24: The central control module writes a UART protocol instruction to the input port of the UART in the test module, and the MCU chip to be tested repackages the data in the UART protocol instruction and sends it out through the output port of the UART;

[0150] S25: If the MCU chip under test observes that the output port of the UART outputs the data in the UART protocol instruction within the specified time, the UART test passes.

[0151] The central control module sends communication protocol instructions to each test item in order from high to low priority of the test items. After a test item with a higher test priority passes, the test item with a lower test priority is executed until all test items are tested. If all test items pass, the self-test of the MCU chip to be tested passes; otherwise, the self-test of the MCU chip to be tested fails.

[0152] Among them, if the central control module observes that the MCU chip under test outputs the agreed observation signal of the test item within the specified time, the test item is tested.

[0153] The detailed working principle of the UART test method is as follows:

[0154] S21: Send UART test command

[0155] The central control module sends communication protocol instructions to the test module that point to a specific test program for UART (Universal Asynchronous Receiver / Transmitter) testing.

[0156] These instructions are used to instruct the test module to start executing tests for the UART interface.

[0157] S22: Execute UART test program

[0158] After receiving the instruction from the central control module, the test module controls the MCU chip to be tested to start executing the UART test program.

[0159] The test program contains specific instructions to check the functionality and performance of the UART interface.

[0160] S23: Configure UART working mode

[0161] The test module configures the UART interface of the MCU chip under test into loopback mode, that is, the data received by the UART will be resent through the UART.

[0162] This configuration allows the test module to send and receive the same data via UART to verify the normal operation of the UART interface.

[0163] S24: Central control module sends data

[0164] The central control module sends UART protocol instructions to the UART input port of the test module.

[0165] The MCU chip under test receives these instructions, repackages the data in the instructions, and sends them out through the UART output port.

[0166] S25: Test result judgment

[0167] The test module monitors the UART output port to confirm whether the data in the UART protocol instruction that is the same as the input is output within the specified time.

[0168] If the correct output data is observed, it indicates that the UART interface works properly and the test passes. Otherwise, the test fails.

[0169] Test process control:

[0170] Test priority: The central control module sends communication protocol instructions to each test item in turn according to the set test item priority order.

[0171] If a test item passes, the central control module will continue to execute the next test item with lower priority until all test items are completed.

[0172] The final judgment of the test result is based on whether the agreed observation signal output by the MCU chip under test is observed within the specified time.

[0173] This UART test method provides an effective and accurate means of evaluating the UART interface function of the MCU chip, which is suitable for production quality control and fault diagnosis of MCU chips. Through the automated test process, the test efficiency and accuracy can be greatly improved.

[0174] like Figure 4 As shown, the test module, according to the communication protocol instruction, sequentially executes the test program of the test item pointed to by the communication protocol instruction to implement the test of the test module, which specifically includes:

[0175] S31: a test instruction parsing step, in which the test module receives and parses the test instruction to obtain the test instruction for the target function;

[0176] S32: a test electrical signal output step, in which the test module responds to the test instruction and controls the issuance of a corresponding test electrical signal required for the target function test;

[0177] S33: The MCU chip to be tested executes a corresponding program according to a corresponding test electrical signal;

[0178] S34: Analysis step, analyzing the collected electrical signals output by the tested MCU chip based on the target function test to obtain test results.

[0179] The test program of the test item is used to respond to the communication protocol instruction pointing to the test program of the test item, execute the test operation of the test item, and control the MCU chip to be tested to output a corresponding observation signal after executing the test operation;

[0180] The test procedures for all test items are placed in a while loop.

[0181] like Figure 5 As shown, an embodiment of the present invention provides an MCU chip testing method implementing the MCU chip testing system, the method comprising:

[0182] S41: Use the carrier module to carry the test module and output the MCU chip configuration program;

[0183] S42: using the storage module to store the test program of each test item into the MCU chip configuration program; using the file generation module to generate an executable file of the MCU configuration program, and downloading the executable file into the test module;

[0184] S43: using the central control module to sequentially send communication protocol instructions pointing to each test item to the test module; using the test module to sequentially execute the test programs of the test items pointed to by the communication protocol instructions according to the communication protocol instructions, so as to implement the test of the test module.

[0185] An embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of the MCU chip testing method.

[0186] An embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the MCU chip testing method.

[0187] like Figure 6 As shown, the central control module is configured with:

[0188] Constant current source, IO driver (module), signal generator and current mirror.

[0189] The constant current source is realized by 2N3906 transistor and peripheral discrete components, controlled by K1 switch, and transferred to RSSI or IROP pin of optical transceiver driver chip through Socket module;

[0190] The IO drive is realized by a 2N3904 transistor and an isolation circuit, and the drive current is greater than 10mA;

[0191] The signal generator includes: an oscillator and a differential amplifier. The output signal of the oscillator is connected to the input end of the differential amplifier through an impedance matching network. The differential amplifier outputs a square wave signal and then performs impedance matching, and is connected to the LA and LDD input ends of the optical transceiver driver chip under test through the adapter module.

[0192] The current mirror is realized by a 2N3906 and 2N3904 transistor array.

[0193] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0194] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A MCU chip testing system, characterized in that: The system specifically includes: The carrier module is used to carry the MCU chip to be tested and output the MCU chip configuration program; The storage module is connected to the carrier module to store the test program of each test item in the MCU chip configuration program, and upload the test data to the cloud to realize data storage, backup, sharing and cross-team collaboration; The file generation module is connected to the storage module and the carrier module, and is used to generate an executable file of the MCU configuration program and download the executable file to the MCU chip to be tested; it also integrates a remote test operation and monitoring system, so that the operator can remotely upload and download the test program through the network interface, monitor the test process in real time, and obtain the test results; A central control module, connected to the file generation module, is used to send communication protocol instructions pointing to each test item to the test module in sequence, and continuously optimize the test parameters and processes through a machine learning algorithm; The test module is connected to the central control module and the carrier module, and controls the MCU chip to be tested to execute the test program of the test item pointed to by the communication protocol instruction through the connection carrier module according to the communication protocol instruction, so as to realize the test of the MCU chip to be tested.

2. The MCU chip testing system as claimed in claim 1, characterized in that: The remote test operation and monitoring system allows users to remotely log in to the test system through the remote desktop protocol or Web service interface. The system provides an API interface that allows users to programmatically control the test process, including uploading and downloading test scripts, and starting and stopping tests; Using WebSocket technology, the system can achieve real-time data transmission. Users can view the test status and results in real time through the interface. The system uses data stream processing technology to process and analyze test data in real time, while providing data visualization functions to help users understand the test progress more intuitively.

3. The MCU chip testing system as claimed in claim 1, characterized in that: The test items include: IO port high and low level test; UART test; internal instruction set and register test; IIC test; initialization test, communication test, DDM report test, open / closed loop function test, lookup table test, BIAS / MD polarity test, LA LOS alarm function test, Fault function test, low power consumption test, TXDIS function test, input and output polarity test, AutoDOC test, CDR test, analog test, password function test, RAM read and write test; Among them, when the port configured in input mode is a non-multiplexed IO port, the test priority of the high and low level tests of the IO port is the highest, and the test priorities of the remaining test items are equal and lower than the test priority of the high and low level tests of the IO port; When the port configured in input mode is a UART port, the UART test has the highest test priority, and the test priorities of the remaining test items are equal and lower than the test priority of the UART test.

4. The MCU chip testing system as claimed in claim 3, characterized in that: The specific method of the IO port high and low level test is as follows: S1: The central control module sends a communication protocol instruction of a test program for high and low level tests of the IO port to the test module; S2: The test module controls the MCU chip to be tested to execute the test program of the IO port high and low level test according to the communication protocol instructions of the test program pointing to the IO port high and low level test: S3: The test module configures all IO ports of the MCU chip under test as output ports, and then controls all IO ports of the MCU chip under test to output high level, and after a fixed time, controls all IO ports to output low level; S4: Execute the IO initialization; if it is observed that the outputs of all IO ports of the MCU chip to be tested are switched from high level to low level within the specified time, the IO port high and low level tests are passed; The UART test method is as follows: S21: The central control module sends a communication protocol instruction pointing to the test program of the UART test to the test module; S22: The test module controls the MCU chip to be tested to execute the test program of the UART test according to the communication protocol instruction pointing to the test program of the UART test: S23: the test module configures the working mode of the UART as follows: the data received by the input port of the UART is sent out again through the output port of the UART; S24: The central control module writes a UART protocol instruction to the input port of the UART in the test module, and the MCU chip to be tested repackages the data in the UART protocol instruction and sends it out through the output port of the UART; S25: If the MCU chip under test observes that the output port of the UART outputs the data in the UART protocol instruction within the specified time, the UART test passes.

5. The MCU chip testing system as claimed in claim 1, characterized in that: The central control module sends communication protocol instructions to each test item in order from high to low priority of the test items. After a test item with a higher test priority passes, the test item with a lower test priority is executed until all test items are tested. If all test items pass, the self-test of the MCU chip to be tested passes; otherwise, the self-test of the MCU chip to be tested fails. Among them, if the central control module observes that the MCU chip under test outputs the agreed observation signal of the test item within the specified time, the test item is tested.

6. The MCU chip testing system as claimed in claim 1, characterized in that: The test module, according to the communication protocol instruction, sequentially executes the test program of the test item pointed to by the communication protocol instruction to implement the test of the test module, specifically including: S31: a test instruction parsing step, in which the test module receives and parses the test instruction to obtain the test instruction for the target function; S32: a test electrical signal output step, in which the test module responds to the test instruction and controls the issuance of a corresponding test electrical signal required for the target function test; S33: The MCU chip to be tested executes a corresponding program according to a corresponding test electrical signal; S34: Analysis step, analyzing the collected electrical signals output by the tested MCU chip based on the target function test to obtain test results.

7. The MCU chip testing system as claimed in claim 1, characterized in that: The test program of the test item is used to respond to the communication protocol instruction pointing to the test program of the test item, execute the test operation of the test item, and control the MCU chip to be tested to output a corresponding observation signal after executing the test operation; The test procedures for all test items are placed in a while loop.

8. A method for testing an MCU chip according to any one of claims 1 to 7, characterized in that: The method includes: S41: Use the carrier module to carry the test module and output the MCU chip configuration program; S42: using the storage module to store the test program of each test item into the MCU chip configuration program; using the file generation module to generate an executable file of the MCU configuration program, and downloading the executable file into the test module; S43: using the central control module to sequentially send communication protocol instructions pointing to each test item to the test module; using the test module to sequentially execute the test programs of the test items pointed to by the communication protocol instructions according to the communication protocol instructions, so as to implement the test of the test module.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the MCU chip testing method as claimed in claim 8.

10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the MCU chip testing method according to claim 8.

Citation Information

Patent Citations

  • An automated test platform and a test method for a blade server

    CN109388530A

  • Method and system for realizing remote debugging of multiple FPGAs based on ZYNQ platform

    CN116610590A

  • Chip test system for 3D packaging

    CN116719684A

  • MCU self-test method

    CN117130837A

  • Automatic chip testing system and method

    US20220291283A1

Cited By

  • Ethernet PHY chip testing device and method

    CN119986327A

  • Method and device for testing aliasing chips

    CN120405390A