Vehicle gauge level EFLASH safety design method

By setting and managing protection addresses and types in car-grade EFLASH, the problem of unsafe FLASH operations is solved, ensuring the security of data when erasing, writing and reading, avoiding illegal operations, and satisfying the needs of vehicle-mounted MCUs. functional safety requirements.

CN118656314AInactive Publication Date: 2024-09-17WUXI MOTIONSILICON CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, FLASH operation is unsafe and is easily operated by illegal programs, causing data to be erased or written, which may cause unsafe consequences such as parking of smart driving vehicles.

Method used

Adopting the automotive grade EFLASH security design method, by setting and managing the protection address and type, and unlocking the protection settings, it ensures the security of data in the protected area when erasing, writing and reading, and prevents illegal operations.

Benefits of technology

It effectively avoids illegal operations, ensures the security and privacy of data, prevents data from being modified or lost, and meets the functional safety requirements of automotive MCUs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656314A
    Figure CN118656314A
Patent Text Reader

Abstract

The invention discloses a vehicle gauge level EFLASH security design method, which comprises the following steps: S1, initializing a FLASH driver, setting a work clock, and unlocking a FLASH controller; s2, setting a protected address; s3, calling a FLASH erasure driving interface, assigning an erasure address, if the address is protected, returning to erasure protection, otherwise, erasing data of the assigned address, and returning to successful erasure; s4, calling a FLASH write-in drive interface, specifying a write-in data address, returning write-in protection if the address is protected, otherwise, writing in specified address data, and returning write-in success; and S5, calling a FLASH reading drive interface, specifying a read data address, returning read protection if the address is protected, otherwise, reading specified address data, and returning read success. Compared with an existing FLASH controller which only supports the operations of erasing, writing and reading of FLASH by independently setting address protection management on the FLASH memory, the FLASH controller is natural and safe, and can meet the functional safety requirements of a vehicle-mounted MCU (Microprogrammed Control Unit).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted control technology, and in particular to an automotive-grade EFLASH security design method. Background Art

[0002] The FLASH operation of the existing solution adopts the traditional FLASH management technology, and the FLASH management module is designed in a common way. The management module only supports erasing, writing and reading of FLASH.

[0003] This type of FLASH operation requires corresponding address data to be operated. As long as the FLASH driver is always in the application, it may be operated by illegal programs to erase or write the FLASH data, causing unsafe factors to the FLASH data. In severe cases, it may cause the smart driving vehicle to stop and various unsafe consequences may occur.

[0004] The present invention aims to solve the problem of unsafe FLASH operation and prevent illegal programs from using FLASH programs to perform unsafe operations on FLASH data. Therefore, an automotive-grade EFLASH security design method is proposed to solve the above problem. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the shortcomings of the prior art, the present invention provides an automotive-grade EFLASH security design method. This method separately sets up address protection management for the FLASH memory. Compared with the existing FLASH controller that only supports erase, write, and read operations on the FLASH, this method is naturally more secure and can meet the functional safety requirements of the on-board MCU. At the same time, protection management is also set for the protected related controls. When setting and reading the protection address and protection type, the protection settings need to be unlocked, which further ensures the safety and reliability of the operation and meets the functional safety requirements.

[0007] (II) Technical solution

[0008] To achieve the above object, the present invention provides the following technical solution: a vehicle-grade EFLASH security design method, comprising the following steps:

[0009] S1: Call the FLASH driver, initialize the FLASH driver, set the working clock, and unlock the FLASH controller;

[0010] S2: FLASH protection setting, set the protected address;

[0011] S3: Call the FLASH erase driver interface, specify the erase address, and determine whether the erase address is protected. If the address is protected, return to erase protection. If not, erase the specified address data and return erase success.

[0012] S4: Call the FLASH write driver interface, specify the write data address, and determine whether the write address is protected. If the address is protected, return write protection. If not, write the specified address data and return write success.

[0013] S5: Call the FLASH read driver interface, specify the read data address, and determine whether the read address is protected. If the address is protected, return to read protection. If not, read the specified address data and return read success.

[0014] Preferably, the FLASH protection setting process is as follows:

[0015] (1) First unlock the protection settings;

[0016] (2) Secondly, set the protected address;

[0017] (3) Set the protected type again.

[0018] Preferably, the FLASH reading setting process is as follows:

[0019] (1) First unlock the protection settings;

[0020] (2) Read the protected address;

[0021] (3) Read protected types.

[0022] (III) Beneficial effects

[0023] Compared with the prior art, the present invention provides a vehicle-grade EFLASH security design method, which has the following beneficial effects:

[0024] 1. By setting the unlock protection settings to control the settings of protected types and protected addresses, illegal operations are avoided, and the possibility of data modification caused by illegal intrusion is also avoided;

[0025] 2. By setting the unlock protection settings to control the reading of protected addresses and protected types, the loss of reliable data is avoided and the privacy and security of data are ensured;

[0026] 3. By protecting the data in the erase address range during erasure, the FLASH driver is prevented from operating the protected area, thus ensuring data security;

[0027] 4. By protecting the data in the write address range during writing, the FLASH driver is prevented from writing to the protected area, thus ensuring the security of the data;

[0028] 5. By protecting the data within the read address range during reading, the FLASH driver is prevented from reading the protected area, thus ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of the system of the present invention;

[0030] Figure 2 This is a schematic diagram of the FLASH protection process of the present invention;

[0031] Figure 3 This is a schematic diagram of the FLASH reading setting process of the present invention;

[0032] Figure 4 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0033] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] The FLASH operation of the existing scheme adopts the traditional FLASH management technology, and the FLASH management module is designed in a common way. The management module only supports erasing, writing, and reading FLASH. When operating this FLASH, it is necessary to operate corresponding to the corresponding address data. As long as the FLASH driver is always in the application, it may be operated by illegal programs to erase or write FLASH data, which causes unsafe factors to the FLASH data. In severe cases, it may cause the intelligent driving vehicle to stop, resulting in various unsafe consequences. In order to solve the above problems, the present invention proposes a vehicle-grade EFLASH security design method, please refer to Figure 1-4 , the present invention is carried out as follows;

[0035] (1) A protection area is set in the erasable area. In the entire erasable area, a portion of the specified address is protected. In this way, the key area can be erased and protected according to the actual usage, or all areas of the entire chip can be erased and protected;

[0036] (2) Setting a protection area in the write area, and implementing a portion of the protected area with a specified address in the entire writable area, so that the key area can be write-protected according to actual usage, or all areas of the entire chip can be write-protected;

[0037] (3) A protection area is set in the read area. In the entire readable area, a portion of the protected area with a specified address is implemented. In this way, the key area can be read-protected according to actual usage, and all areas of the entire chip can also be read-protected.

[0038] The specific process includes the following:

[0039] S1: Call the FLASH driver, initialize the FLASH driver, set the working clock, and unlock the FLASH controller;

[0040] S2: FLASH protection setting, set the protected address;

[0041] S3: Call the FLASH erase driver interface, specify the erase address, and determine whether the erase address is protected. If the address is protected, return to erase protection. If not, erase the specified address data and return erase success.

[0042] S4: Call the FLASH write driver interface, specify the write data address, and determine whether the write address is protected. If the address is protected, return write protection. If not, write the specified address data and return write success.

[0043] S5: Call the FLASH read driver interface, specify the read data address, and determine whether the read address is protected. If the address is protected, return to read protection. If not, read the specified address data and return read success.

[0044] The FLASH protection setting process is as follows:

[0045] (1) First unlock the protection settings;

[0046] (2) Secondly, set the protected address;

[0047] (3) Set the protected type again.

[0048] The FLASH reading and setting process is as follows:

[0049] (1) First unlock the protection settings;

[0050] (2) Read the protected address;

[0051] (3) Read protected types.

[0052] The present invention separately sets up address protection management for FLASH memory, which is naturally safer than the existing FLASH controller which only supports the operations of erasing, writing and reading FLASH, and can meet the functional safety requirements of the vehicle-mounted MCU. At the same time, protection management is also set for the protected related controls. When setting and reading the protection address and protection type, the protection setting needs to be unlocked, which further ensures the safety and reliability of the operation. The whole scheme meets the functional safety requirements. When the protected address is illegally operated, it will be judged whether the address is protected, and the protected state will return to the corresponding state, effectively achieving the protection purpose.

[0053] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A vehicle-grade EFLASH security design method, characterized in that: The following steps are involved: S1: Call the FLASH driver, initialize the FLASH driver, set the working clock, and unlock the FLASH controller; S2: FLASH protection setting, set the protected address; S3: Call the FLASH erase driver interface, specify the erase address, and determine whether the erase address is protected. If the address is protected, return to erase protection. If not, erase the specified address data and return erase success. S4: Call the FLASH write driver interface, specify the write data address, and determine whether the write address is protected. If the address is protected, return write protection. If not, write the specified address data and return write success. S5: Call the FLASH read driver interface, specify the read data address, and determine whether the read address is protected. If the address is protected, return to read protection. If not, read the specified address data and return read success.

2. The automotive-grade EFLASH security design method according to claim 1, characterized in that: The FLASH protection setting process is as follows: (1) First unlock the protection settings; (2) Secondly, set the protected address; (3) Set the protected type again.

3. The automotive-grade EFLASH security design method according to claim 1, characterized in that: The FLASH reading setting process is as follows: (1) First unlock the protection settings; (2) Read the protected address; (3) Read protected types.

Citation Information

Patent Citations

  • Partition protection method and device for nonvolatile memory

    CN110968254A

  • Flash chip reading control method and device and storage medium

    CN112685802A

  • Flash memory write protection method and device, electronic equipment and storage medium

    CN115712586A

  • Security access control method of FLASH space based on UCB

    CN116702233A

  • Method and device for reading and writing nonvolatile memory on FPGA (Field Programmable Gate Array) chip

    CN118034614A