ISP device and ISP port configuration method

Through the port resolution and monitoring module adapting to the ISP port of the MCU chip, the problem of ISP version not universal caused by inconsistent types and ports of MCU chip peripherals is solved, and the efficient management and applicability of ISP programs are achieved.

CN119127742AInactive Publication Date: 2024-12-13SHENZHEN HANGSHUN CHIP TECH DEV CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411614413.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2024-12-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Due to the inconsistent types of peripherals and ports, MCU chip manufacturers have the ISP version that is not universal and needs to be split into massive versions, which has high management and maintenance costs.

Method used

The port resolution module and the port monitoring module are used to adapt ISP ports. By acquiring and analyzing port record data, determining the port type and monitoring the startup frame, and starting the ISP communication module for application data reception and storage.

Benefits of technology

The communication adaptation of multiple ISP ports is realized, which facilitates the normalized management of ISP programs by MCU chips, greatly improving the applicability of ISP programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127742A_ABST
    Figure CN119127742A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an ISP device and an ISP port configuration method. The ISP device comprises a port analysis module, a port monitoring module and an ISP communication module which are connected in sequence, the port analysis module is used for obtaining port record data and analyzing the port record data to determine a port type and a plurality of ports corresponding to the port type, the port monitoring module is used for monitoring whether the plurality of ports receive starting frames or not, and the ISP communication module is used for sending the starting frames to the ISP device. If the starting frame is received, the ISP communication module is started through the target port receiving the starting frame, and the ISP communication module is used for receiving the application data through the target port and writing the application data into the memory. According to the scheme provided by the embodiment of the invention, the port analysis module and the port monitoring module are utilized, various ISP ports can be adapted to complete communication, the MCU chip can conveniently perform normalized management on the ISP program, and the applicability of the ISP program is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip communication technology, and in particular to an ISP device and an ISP port configuration method. Background Art

[0002] Microcontroller Unit (MCU), also known as single-chip microcomputer or single-chip microcomputer. With the development of the semiconductor industry, the demand for MCU is increasing, and MCU manufacturers have different series and models. In order to facilitate users, MCU chip manufacturers will provide In System Programming (ISP), which allows users to operate the main flash area through some fixed interfaces on the MCU.

[0003] In the prior art, the applicant found that MCU manufacturers generally have different product series. Even for the same chip series, the ISP version may not be universal due to different types of peripherals, or inconsistent numbers of ports contained in the same type of peripherals, or inconsistent pins of the corresponding ports of the same peripheral. This means that the ISP needs to be split into massive versions, and the version management and maintenance costs are very high. Summary of the invention

[0004] The embodiments of the present application provide an ISP device and an ISP port configuration method. By using a port parsing module and a port monitoring module, a variety of ISP ports can be adapted to complete communication, which facilitates the MCU chip to perform normalized management of the ISP program, thereby greatly improving the applicability of the ISP program.

[0005] The embodiment of the present application provides an ISP device, comprising a port resolution module, a port monitoring module and an ISP communication module connected in sequence; The port parsing module is used to obtain port record data and parse the port record data to determine the port type and multiple ports corresponding to the port type; The port monitoring module is used to monitor whether the multiple ports receive the startup frame respectively, and if received, start the ISP communication module through the target port that receives the startup frame; The ISP communication module is used to receive application data through the target port and write the application data into the memory.

[0006] In one embodiment, the port record data includes a start mark, port information, an end mark, and a checksum, and the checksum is calculated using a CRC32 redundancy check algorithm.

[0007] In one embodiment, the port resolution module includes a reading module and a resolution module; The reading module is used to read the start mark in the port record data, and verify the start mark according to the checksum, and if the verification passes, continue to read the port information between the start mark and the end mark; The parsing module is used to parse the port information to obtain parsed data, where the parsed data includes a port type and a plurality of ports corresponding to the port type.

[0008] In one embodiment, if the verification fails, a default port is used to perform subsequent operations.

[0009] In one embodiment, the parsed data further includes effective information length, number of port instances, number of port pins, port sequence number and occupied pin information.

[0010] In one embodiment, the port monitoring module includes a switching module, a judgment module and a startup module; The switching module is used to perform time-sharing switching on the multiple ports according to a preset order; The judging module is used to judge whether the switched port has received the start frame; The startup module is used to start the ISP communication module through the target port that receives the startup frame when the judgment module determines that the result is yes.

[0011] In one embodiment, the ISP communication module includes a receiving module and a storage module; The receiving module is used to receive application data through the target port and adopt a standard communication protocol, wherein the standard communication protocol includes a Ymodem communication protocol; The storage module is used to write the application data into the memory.

[0012] In one embodiment, the port type includes at least one of the following: USB, UART, SPI, I²C, RS-485, CAN.

[0013] In one embodiment, the port resolution module is further configured to initialize the multiple ports in sequence after determining the multiple ports.

[0014] The embodiment of the present application also provides an ISP port configuration method, including: Acquire port record data, and parse the port record data to determine a port type and a plurality of ports corresponding to the port type; respectively monitoring whether the plurality of ports receive a startup frame; If received, the application data is received through the target port that receives the startup frame, and the application data is written into the memory.

[0015] The embodiment of the present application provides an ISP device and an ISP port configuration method. The ISP device includes a port parsing module, a port monitoring module and an ISP communication module connected in sequence. The port parsing module is used to obtain port record data and parse the port record data to determine the port type and multiple ports corresponding to the port type. The port monitoring module is used to monitor whether the multiple ports receive a startup frame respectively. If received, the ISP communication module is started through the target port that receives the startup frame. The ISP communication module is used to receive application data through the target port and write the application data into a memory. The solution provided by the embodiment of the present application utilizes the port parsing module and the port monitoring module to adapt multiple ISP ports to complete communication, which is convenient for the MCU chip to perform normalized management of the ISP program, greatly improving the applicability of the ISP program. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 A schematic diagram of the structure of an ISP device provided in an embodiment of the present application.

[0018] Figure 2 Another structural diagram of an ISP device provided in an embodiment of the present application.

[0019] Figure 3 A flowchart of an ISP port configuration method provided in an embodiment of the present application.

[0020] Figure 4 A schematic diagram of the computer device structure provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0022] It should be noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the existence of other identical elements in the process, method, article or device that includes the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment. The embodiment of the present application provides an ISP device and an ISP port configuration method. Specifically, the ISP port configuration method of the embodiment of the present application can be executed by a computer device or a server, wherein the computer device can be a terminal. The terminal can be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), a smart home and other devices, and the terminal can also include a client, which can be a media playback client or an instant messaging client, etc.

[0023] See also Figure 1 The ISP device may specifically include a port resolution module 101, a port monitoring module 102, and an ISP communication module 103, wherein the port resolution module 101, the port monitoring module 102, and the ISP communication module 103 are connected in sequence, and the port resolution module 101 obtains the port record data, and parses the port record data to determine the port type and the multiple ports corresponding to the port type. The port resolution module 101 is specifically used to determine the validity of the port record data, extract the port information in the port record data, and then further parse the port information to obtain the port type and the multiple ports corresponding to the port type.

[0024] Further, the port monitoring module 102 is used to monitor whether the multiple ports receive the startup frame respectively, and if received, the ISP communication module is started through the target port that receives the startup frame. The ISP communication module 103 is used to receive application data through the target port and write the application data into the memory.

[0025] In one embodiment, the port record data includes a start mark, port information, an end mark, and a checksum, as shown in Table 1:

[0026] Table 1 For example, the start tag length can be 4 bytes, with the content "RECD", and the end tag length can be 4 bytes, with the content "REND". The checksum can be calculated using the CRC32 (Cyclic Redundancy Check 32-bit) redundancy check algorithm, where CRC32 is a common checksum algorithm widely used in network communications, file verification and other fields. CRC32 uses an algorithm based on binary polynomials to treat the input data as a large integer and performs a modulo division operation through a fixed generating polynomial. The remainder obtained is the CRC checksum. This process effectively compresses the data into a fixed-length value that can be used to verify the integrity of the data.

[0027] Port information is recorded between the start tag and the end tag. The recorded content of the port information may be information of indefinite length. The information format and corresponding length may be as shown in Table 2:

[0028] Table 2 Among them, the Type field can be defined as: serial number 1 represents UART (Universal Asynchronous Receiver / Transmitter) interface, serial number 2 represents USB (Universal Serial Bus) interface, and serial number 3 represents CAN (Controller Area Network) interface. The LEN field indicates the length of valid information recorded thereafter, the T_Cnt field indicates how many instances of this type of communication port are available, the P_Cnt field indicates how many communication pins this type of communication port has, the Tn field indicates the serial number of the communication port, and the Pn field indicates the pins occupied by the communication port. Furthermore, the above port types can also include SPI (Serial Peripheral Interface) interface, I²C (Inter - Integrated Circuit) interface, RS-485 (Recommended Standard 485) interface, etc.

[0029] In one embodiment, please continue to refer to Figure 2The port parsing module 101 may include a reading module 1011 and a parsing module 1012, wherein the reading module 1011 may be used to read the start tag in the port record data, and verify the start tag according to the checksum. If the check passes, the port information between the start tag and the end tag continues to be read. The parsing module 1012 is used to parse the port information to obtain parsed data, and the parsed data includes a port type and multiple ports corresponding to the port type.

[0030] Further, the port parsing module 101 is also used to initialize the multiple ports in sequence after determining the multiple ports. Among them, the port parsing module 101 can initialize the multiple ports determined one by one in a certain order. The order can be determined according to the type of the port, the priority of the port in the system, or a pre-set rule. The initialization process for each port specifically involves setting the baud rate of the port (for the UART port), configuring the endpoint and transmission mode of the USB (for the USB port), etc., which will not be further described in this embodiment.

[0031] In one embodiment, the above-mentioned checksum is a mechanism for verifying the integrity and accuracy of data, and is used here to ensure the correctness of the start tag. If the check passes, it means that the start tag is correct and meets the expected format and content. At this time, the reading module will continue to read the port information between the start tag and the end tag, such as obtaining the record content between "RECD" and "REND". If the check fails, it means that there may be an error in the start tag. At this time, the system will not try to read the port information that may be wrong, but will use the default port to perform subsequent operations. The default port is a pre-set backup plan. When the normal port resolution process cannot be carried out due to a start tag error, using the default port can ensure that the system can continue to run to a certain extent.

[0032] In one embodiment, the above-mentioned parsed data may further include effective information length, number of port instances, number of port pins, port sequence number, occupied pin information, etc.

[0033] In one embodiment, the port monitoring module 101 may include a switching module 1021, a judgment module 1022 and a startup module 1023. The switching module 1021 is used to perform time-sharing switching on the multiple ports in a preset order. The judgment module 1022 is used to judge whether the switched port has received the startup frame. The startup module 1023 is used to start the ISP communication module through the target port that receives the startup frame when the judgment module 1022 judges as yes.

[0034] Specifically, the switching module 1021 performs time-sharing switching on multiple ports in a preset order, and switches from one port to another in sequence according to the pre-set rules and order. For example, if the current MCU supports three types of ports: UART, USB, and CAN, and the preset order is UART first, then USB, and finally CAN, then the switching module will first connect the system to the UART port for related operations, and then switch to the USB port after a preset time period, and then switch to the CAN port. This time-sharing switching method can ensure that the system can monitor and process each port without missing any port. In addition, the above-mentioned startup frame is a specific data frame, which indicates that the current port can start operations related to ISP communication.

[0035] In one embodiment, the ISP communication module 103 includes a receiving module 1031 and a storage module 1032. The receiving module 1031 is used to receive application data through a target port and using a standard communication protocol, the standard communication protocol including a Ymodem communication protocol, and the storage module 1032 is used to write the application data into a memory. The Ymodem communication protocol is a commonly used file transfer protocol, which specifies the data transmission format, verification method, and control information during the transmission process. The receiving module 1031 will receive the application data according to the requirements of the Ymodem communication protocol. For example, it will identify the start flag, data block format, and checksum information specified in the protocol, so as to accurately receive and parse the data from the external device.

[0036] For example, in one embodiment, the port parsing module obtains three physical ports, namely, UART, USB and CAN, after parsing, and the UART data structure and corresponding meaning are shown in Table 3:

[0037] Table 3 By analyzing the records in the above table, it can be known that in this embodiment, the current MUC can support three situations: UART 1 (A10, A11) port, UART 3 (B8, B11) port and UART 3 (C11, C12) port.

[0038] The USB data structure and its corresponding meaning are shown in Table 4:

[0039] Table 4 By analyzing the records in the above table, it can be seen that in this embodiment, the current MUC can support two situations: USB1 (D3, D4) port and USB2 (E7, E8) port. Furthermore, the CAN data structure and its corresponding meaning are shown in Table 5:

[0040] Table 5 By analyzing the records in the above table, it can be known that in this embodiment, the current MUC can support one case of CAN1 (F7, F8) port.

[0041] Therefore, by parsing the above port records, three types of ports (UART, USB and CAN) and their corresponding ports can be obtained, and each port is initialized in sequence, and the task of this stage is completed. Further, the port monitoring module monitors the above UART 1 (A10, A11) port, UART 3 (B8, B11) port, UART 3 (C11, C12) port, USB1 (D3, D4) port, USB2 (E7, E8) and CAN1 (F7, F8) port to see if the startup frame is received. If received, the ISP communication module is started through the target port that receives the startup frame, and the application data is received through the ISP communication module, and the application data is written into the memory.

[0042] As can be seen from the above, the ISP device provided by the embodiment of the present application includes a port parsing module, a port monitoring module and an ISP communication module connected in sequence, the port parsing module is used to obtain port record data, and parse the port record data to determine the port type and multiple ports corresponding to the port type, the port monitoring module is used to monitor whether the multiple ports receive the startup frame respectively, if received, the ISP communication module is started through the target port that receives the startup frame, and the ISP communication module is used to receive application data through the target port and write the application data into the memory. The solution provided by the embodiment of the present application utilizes the port parsing module and the port monitoring module, which can adapt a variety of ISP ports to complete communication, facilitate the MCU chip to normalize the management of the ISP program, and greatly improve the applicability of the ISP program.

[0043] See also Figure 3 , is a flow chart of the ISP port configuration method provided in the embodiment of the present application. The specific flow of the method may be as follows: Step 201: Acquire port record data, and parse the port record data to determine a port type and a plurality of ports corresponding to the port type.

[0044] Specifically, the port record data is a detailed description of the ports supported by the current MCU, which can be stored in a certain area of ​​the chip in a specific format or provided by an external device. For example, these data may contain configuration information of different ports, port type identification, and related parameter settings. Furthermore, the validity of the port record data can be verified first, and then the port information can be further parsed after the verification is passed, so as to obtain the port type and multiple ports corresponding to the port type. For example, the above port types can include UART interface, USB interface, CAN interface, SPI interface, I²C interface, RS-485 interface, etc.

[0045] Step 202: monitor multiple ports respectively to see whether they have received a startup frame.

[0046] Among them, after determining the port type and the corresponding multiple ports, these ports need to be monitored. The purpose of monitoring is to check whether these ports receive the startup frame. The startup frame is a special signal or data frame, which indicates that a port can start receiving application data for related operations. For example, the system will monitor each port separately to ensure that no port that may receive the startup frame is missed. This monitoring can be achieved by detecting specific pin signals on the port, specific data patterns on the data line, or other related detection mechanisms.

[0047] Step 203: If received, the application data is received through the target port that receives the start frame, and the application data is written into the memory.

[0048] For example, if a port receives a startup frame, then this port is determined as the target port. Next, the system will receive the application data through the target port that received the startup frame. The process of receiving application data will follow the corresponding communication protocol, such as the Ymodem communication protocol mentioned above. While receiving the application data, the system will write the received application data into the memory. The memory is a place for storing data, which can be a storage area inside the chip, such as flash memory.

[0049] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0050] As can be seen from the above, the ISP port configuration method provided in the embodiment of the present application can obtain port record data and parse the port record data to determine the port type and multiple ports corresponding to the port type, respectively monitor whether the multiple ports receive the startup frame, and if received, receive the application data through the target port that receives the startup frame, and write the application data into the memory. The solution provided in the embodiment of the present application can adapt to multiple ISP ports to complete communication by parsing and monitoring the port record data, which is convenient for the MCU chip to perform normalized management of the ISP program, greatly improving the applicability of the ISP program.

[0051] An embodiment of the present application further provides a computer device, including a memory and a processor, wherein the processor may include an MCU, an ISP program is set on the MCU, and the processor is used to execute the process in the ISP port configuration method provided in this embodiment by calling the computer program stored in the memory.

[0052] For example, the computer device mentioned above may be a terminal device with corresponding functions such as a mobile phone, a tablet computer, a personal computer, a cloud computer, etc. Figure 4 , Figure 4 A schematic diagram of the structure of a computer provided in an embodiment of the present application.

[0053] The computer device 400 may include components such as a memory 401 and a processor 402. Those skilled in the art will appreciate that Figure 4 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0054] The memory 401 may be used to store applications and data. The applications stored in the memory 401 include executable codes. The applications may be composed of various functional modules. The processor 402 executes various functional applications and data processing by running the applications stored in the memory 401.

[0055] Processor 402 is the control center of the computer device. It uses various interfaces and lines to connect the various parts of the entire computer device. By running or executing applications stored in memory 401 and calling data stored in memory 401, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole.

[0056] In this embodiment, the processor 402 in the computer device will load the executable code corresponding to the process of one or more application programs into the memory 401 according to the following instructions, and the processor 402 will run the application program stored in the memory 401 to execute: Acquire port record data, and parse the port record data to determine a port type and a plurality of ports corresponding to the port type; respectively monitoring whether the plurality of ports receive a startup frame; If received, the application data is received through the target port that receives the startup frame, and the application data is written into the memory.

[0057] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0058] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in the ISP port configuration method provided in the embodiment of the present application. For example, the instructions can execute the following steps: Acquire port record data, and parse the port record data to determine a port type and a plurality of ports corresponding to the port type; respectively monitoring whether the plurality of ports receive a startup frame; If received, the application data is received through the target port that receives the startup frame, and the application data is written into the memory.

[0059] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0060] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0061] Since the instructions stored in the storage medium can execute the steps in the ISP port configuration method provided in the embodiment of the present application, the beneficial effects that can be achieved by the ISP port configuration method provided in the embodiment of the present application can be achieved. Please refer to the previous embodiment for details and will not be repeated here.

[0062] In the embodiments of the computer device and the readable storage medium provided in the present application, all the technical features of the embodiments of the above-mentioned ISP port configuration method are included. The expansion and explanation content of the specification are the same as the adaptability of the embodiments of the above-mentioned ISP port configuration method, and will not be repeated here.

[0063] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the ISP device above, and will not be repeated here.

[0064] The ISP port configuration method provided in the embodiment of the present application belongs to the same concept as the ISP device in the above embodiment. The specific implementation process is detailed in the ISP device embodiment and will not be repeated here.

[0065] It should be noted that, for the ISP port configuration method described in the embodiment of the present application, ordinary technicians in this field can understand that the implementation of all or part of the process of the ISP port configuration method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the ISP port configuration method. Among them, the storage medium can be a disk, an optical disk, a read-only memory, a random access memory (Random Access Memory, RAM), etc.

[0066] An ISP device and an ISP port configuration method provided in an embodiment of the present application are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation method of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.

[0067] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structural or equivalent process transformations made using the contents of the specification and drawings of the present application, such as the mutual combination of technical features between the embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An ISP device, characterized in that: It includes a port analysis module, a port monitoring module and an ISP communication module which are connected in sequence; The port parsing module is used to obtain port record data and parse the port record data to determine the port type and multiple ports corresponding to the port type; The port monitoring module is used to monitor whether the multiple ports receive the startup frame respectively, and if received, start the ISP communication module through the target port that receives the startup frame; The ISP communication module is used to receive application data through the target port and write the application data into the memory.

2. An ISP device as claimed in claim 1, characterized in that: The port record data includes a start mark, port information, an end mark and a checksum, and the checksum is calculated using a CRC32 redundancy check algorithm.

3. An ISP device as claimed in claim 2, characterized in that: The port parsing module includes a reading module and a parsing module; The reading module is used to read the start mark in the port record data, and verify the start mark according to the checksum, and if the verification passes, continue to read the port information between the start mark and the end mark; The parsing module is used to parse the port information to obtain parsed data, where the parsed data includes a port type and a plurality of ports corresponding to the port type.

4. An ISP device as claimed in claim 3, characterized in that: If the verification fails, the default port is used to perform subsequent operations.

5. An ISP device as claimed in claim 3, characterized in that: The parsed data also includes effective information length, number of port instances, number of port pins, port sequence number and occupied pin information.

6. The ISP device according to claim 1, characterized in that: The port monitoring module includes a switching module, a judgment module and a starting module; The switching module is used to perform time-sharing switching on the multiple ports according to a preset order; The judging module is used to judge whether the switched port has received the start frame; The startup module is used to start the ISP communication module through the target port that receives the startup frame when the judgment module determines that the result is yes.

7. An ISP device as claimed in claim 1, characterized in that: The ISP communication module includes a receiving module and a storage module; The receiving module is used to receive application data through the target port and adopt a standard communication protocol, wherein the standard communication protocol includes a Ymodem communication protocol; The storage module is used to write the application data into the memory.

8. An ISP device according to any one of claims 1 to 7, characterized in that: The port type includes at least one of the following: USB, UART, SPI, I²C, RS-485, and CAN.

9. An ISP device according to any one of claims 1 to 7, characterized in that: The port parsing module is further configured to initialize the multiple ports in sequence after determining the multiple ports.

10. An ISP port configuration method, characterized in that: include: Acquire port record data, and parse the port record data to determine a port type and a plurality of ports corresponding to the port type; respectively monitoring whether the plurality of ports receive a startup frame; If received, the application data is received through the target port that receives the startup frame, and the application data is written into the memory.

Citation Information

Patent Citations

  • Universal serial bus in-system programmer of single chip microcomputer

    CN101526931A

  • Method and device for burning chip

    CN101692217A

  • Device and method for dynamically supporting multiple protocols in embedded system

    CN101944033A

  • Multi-channel automatic upgrade system and method based on ISP

    CN107562438A

  • Circuit and method for upgrading firmware, chip and electronic equipment

    CN114721683A