Search

CN-121979549-A - Bridging type double-guide program updating method and system for automobile radio frequency processing chip

CN121979549ACN 121979549 ACN121979549 ACN 121979549ACN-121979549-A

Abstract

The invention discloses a bridging type double-boot program updating method of an automobile radio frequency processing chip, which comprises the following steps of respectively controlling a main processor and the automobile radio frequency processing chip to run boot programs of the main processor and the automobile radio frequency processing chip in response to an updating instruction aiming at the automobile radio frequency processing chip, receiving firmware updating data through the boot programs of the main processor, establishing a communication session between the main processor and the automobile radio frequency processing chip through a communication bus between the boot programs of the main processor and the automobile radio frequency processing chip, transmitting the firmware updating data from the main processor to the automobile radio frequency processing chip, writing the received firmware updating data into an application program storage area of the automobile radio frequency processing chip through the boot programs of the automobile radio frequency processing chip, completely omitting a special downloading device and a disassembly process, completing updating through an existing diagnosis interface (such as a CAN) and an existing communication bus, avoiding a complex disassembly process, and greatly reducing maintenance cost after-sales in a vehicle use period.

Inventors

  • CHEN ZEJIAN
  • CHEN YONG
  • FENG XIAOXING
  • GE BIAO

Assignees

  • 芜湖埃泰克汽车电子股份有限公司

Dates

Publication Date
20260505
Application Date
20251226

Claims (10)

  1. 1. The program updating method for bridging double-guide of the automobile radio frequency processing chip is characterized by comprising the following steps of: step 1, respectively controlling a main processor and an automobile radio frequency processing chip to run a guide program of the main processor and the automobile radio frequency processing chip in response to an update instruction aiming at the automobile radio frequency processing chip; step 2, receiving firmware update data through a bootstrap program of a main processor; step 3, the main processor and the automobile radio frequency processing chip establish a communication session between the two side guide programs through a communication bus, and transmit the firmware update data from the main processor to the automobile radio frequency processing chip; And 4, writing the received firmware update data into an application program storage area of the automobile radio frequency processing chip through a guide program of the automobile radio frequency processing chip.
  2. 2. The method for updating a bridging dual boot program of an automotive radio frequency processing chip of claim 1, wherein said boot program comprises session management, data block transfer, and session authentication commands.
  3. 3. The method for updating a bridging dual boot program of an automotive radio frequency processing chip of claim 2, wherein said session verification command comprises a target address, a data length, a data content, and a Cyclic Redundancy Check (CRC) code of a data block.
  4. 4. The method for updating a program of a bridging dual-boot of an automotive radio frequency processing chip according to claim 1,2 or 3, wherein in step 3, a communication session established by a communication bus uses a communication protocol of a command-response mechanism, and the communication protocol uses an automatic retransmission mechanism, and resends a current data block after receiving a negative acknowledgement from a receiver.
  5. 5. The method for updating a program of a bridging dual boot of an automotive radio frequency processing chip as set forth in claim 4, wherein the command set of the communication protocol comprises: A session initialization command is sent by a main processor and used for establishing an upgrade session, and after the automobile radio frequency processing chip replies confirmation, the automobile radio frequency processing chip enters a programming state; the data block transmission command is circularly sent by the main processor and used for transmitting firmware data, wherein the transmitted firmware data comprises a target address, a data length, data content and a block check code, the automobile radio frequency processing chip performs real-time check on each packet, and if the packet passes the real-time check, the acknowledgement is replied, and if the packet fails the negative acknowledgement is replied; And the session verification command is sent by the main processor after all data are sent and used for triggering final integrity verification, and the automobile radio frequency processing chip sets a starting mark according to the result after the verification is completed.
  6. 6. The method for updating a program of a bridging dual boot of an automotive radio frequency processing chip as set forth in claim 5, wherein in said step 3, the method for a communication session includes: step S1, session establishment and authentication, wherein a main processor receives an update instruction through a diagnosis interface, and after verification, an upgrade mode is started; Step S2, switching a Boot program, performing soft reset by a main processor, entering an upgrading mode by a main Boot area after the soft reset, and notifying an automobile radio frequency processing chip to jump to an NCK2912_boot area through a communication bus; Step 3, initializing a protocol, sending an INIT_PRG command to an NCK2912_boot region by a main Boot region, replying confirmation to the NCK2912_boot region, and establishing a session; Step S4, reliable DATA transmission, wherein a master Boot encapsulates firmware DATA into a CMD_DATA command packet, the CMD_DATA command packet is sent through the communication bus, and an NCK2912_boot area performs real-time verification and replies acknowledgement or negative acknowledgement to trigger necessary retransmission; Step S5, stream programming, wherein the NCK2912_Boot area writes the checked data block into a corresponding address; Step 6, final verification and activation, wherein a master Boot area sends a CMD_ACTIVATE command, an NCK2912_boot area performs final integrity verification, and if the final integrity verification passes, the parameters of the automobile radio frequency processing chip are set to be valid; And S7, recovering the system, wherein the main Boot region heavy automobile radio frequency processing chip is normally started and triggers the system to reset, and after the system is normally started, running the updated application program.
  7. 7. The method for updating the bridging dual-boot program of the automobile radio frequency processing chip according to claim 1 or 6, wherein in the step 4, the step of writing firmware update data into the application program storage area adopts a streaming burning mode.
  8. 8. The system is provided with a main processor connected with the automobile radio frequency processing chip, and is characterized in that: the main processor includes: the guiding module is used for controlling the main processor to run a guiding program of the main processor after receiving the updating instruction; the receiving module is used for receiving the firmware update data through a bootstrap program of the bootstrap module; The communication module is used for establishing a communication session with the automobile radio frequency processing chip according to a preset customized guiding communication protocol; The automobile radio frequency processing chip comprises: The guiding module is used for controlling the automobile radio frequency processing chip to run a guiding program of the automobile radio frequency processing chip after receiving the updating instruction; the communication module is used for establishing a communication session with the main processor according to a preset customized guiding communication protocol; And the program storage area is used for storing an automobile radio frequency processing core program and writing the received firmware update data.
  9. 9. The system for updating a program of a bridging dual boot of an automotive rf processing chip of claim 8, wherein: the flash memory of the main processor is divided into a main Boot area, a main App area and an NVM parameter area; the automobile radio frequency processing chip is an NK2912 chip of Enzhpu, and the memory of the automobile radio frequency processing chip is divided into an NCK2912_Boot area, an NCK2912_App area and an internal EEPROM.
  10. 10. The system for updating the program of the bridging dual Boot of the automotive radio frequency processing chip of claim 8 or 9, wherein the upgrade session between the host processor and the automotive radio frequency processing chip is based on a matching communication protocol between the host Boot area of the host processor and the NCK2912_boot area of the automotive radio frequency processing chip.

Description

Bridging type double-guide program updating method and system for automobile radio frequency processing chip Technical Field The invention relates to the technical field of automobile electronics, in particular to a firmware updating technology of an embedded system. Background In an Electronic Control Unit (ECU) of an automobile, a structure of a "main processor+radio frequency transceiver chip" is often adopted. The NCK2912 chip of the enczhps is dedicated to processing radio frequency signals, and is connected to the main processor through a communication bus (such as an SPI bus). For example, the authorized bulletin number is CN210109880U, the authorized bulletin day is 21 days in year 2020, the patent name is a publication of "a vehicle-mounted automatic diagnosis System based on cloud computing", the disclosed system comprises an STM32F103CBT6 singlechip chip and an electronic control chip ECU, the electronic control chip ECU generates a CAN line instruction and a K line instruction, the K line instruction is sequentially sent to a first input end of the STM32F103CBT6 singlechip chip through a 74HC02 nor gate chip and an LM393 comparator, the CAN line is connected with a second input end of the STM32F103CBT6 singlechip chip through a data transceiver bus of a TJA1050 transceiver chip, and two output ports of the STM32F103CBT6 singlechip chip are respectively connected with a GPS circuit and an M35GSM circuit to send and receive GPS signals and GPRS signals Similar main processor + rf transceiver chip architecture suffers from the following significant drawbacks: 1. The convenient upgrade interface is lacking in that although the NCK2912 chip is provided with a debugging interface for engineering development, in the vehicle-mounted controller, the debugging interface is not usually led out to an external connector in the mass production stage due to cost and design considerations. Thus, there is no convenient physical interface available for field firmware updates for controllers that have been deployed in an in-vehicle environment or that have been completely assembled with a housing. 2. The update mechanism of the application program is missing, when the chip leaves the factory, the firmware burning of the chip completely depends on a special debugging tool, and a Bootloader (Bootloader) for receiving and updating the application program is lacking in the chip, so that the update data from the main processor cannot be received and processed by the self through a communication bus. 3. The updating process is complex and the cost is high, and the only upgrading mode is to use a special downloading device to perform physical burning through a debugging interface of a chip in a production or maintenance workshop. If the controller is in a vehicle-mounted environment or is assembled, a complicated process of 'disassembling the vehicle- > disassembling the controller- > uncovering- > burning- > reassembling' needs to be executed, so that the maintenance cost is increased sharply, and remote or non-invasive online updating cannot be realized. Therefore, an innovative solution is urgently needed in the art to overcome the technical obstacle brought by the NCK2912 chip in the aspect of 'no convenient upgrade interface and no application program update mechanism'. Disclosure of Invention The invention aims to solve the technical problem of realizing a method and a system for updating firmware of an automobile radio frequency processing chip in an assembled state without a special downloader and physical disassembly. In order to achieve the purpose, the technical scheme adopted by the invention is that the program updating method for bridging double-boot of the automobile radio frequency processing chip comprises the following steps: step 1, respectively controlling a main processor and an automobile radio frequency processing chip to run a guide program of the main processor and the automobile radio frequency processing chip in response to an update instruction aiming at the automobile radio frequency processing chip; step 2, receiving firmware update data through a bootstrap program of a main processor; step 3, the main processor and the automobile radio frequency processing chip establish a communication session between the two side guide programs through a communication bus, and transmit the firmware update data from the main processor to the automobile radio frequency processing chip; And 4, writing the received firmware update data into an application program storage area of the automobile radio frequency processing chip through a guide program of the automobile radio frequency processing chip. The bootstrap includes session management, data block transfer, and session validation commands. The session verification command comprises a target address, a data length, data content and a cyclic redundancy check code of the data block. In the step 3, the communication session established by the communication bu