SUNDAY, JUNE 7, 2026|No. 1933
Technology · Storage · China

GigaDevice Highlights ECC and CRC in High-Performance xSPI NOR Flash for Reliability

GigaDevice's GD25 series xSPI NOR Flash employs ECC and CRC dual hardware verification to ensure data reliability and security in automotive and industrial applications.

1 sources
Pipeline ingest
3 reads
Positive / Neutral / Negative
1 countries
Related coverage

When a car starts, the onboard MCU needs to read the firmware in a very short time; when an industrial device restarts after a power outage, the control system needs to resume operation immediately; during an OTA upgrade, the system must ensure that the firmware is written and called completely and accurately. In these automotive electronics, industrial control, and AIoT scenarios, high-performance xSPI NOR Flash has become a very critical storage device in embedded systems.

For many high-performance systems, NOR Flash stores not just data, but the foundation for device startup and operation. Once data errors occur, it can cause system anomalies at best, or device startup failure at worst. Therefore, compared to simply pursuing capacity and speed, the core competitiveness of high-performance xSPI NOR Flash is actually reliability and security. The underlying logic behind this can be attributed to two key points:

· How to ensure long-term data reliability

· How to ensure that data will not be incorrectly modified

This is also why high-performance xSPI NOR Flash continues to strengthen ECC, CRC, write protection, and security features.

For many systems, NOR Flash is not just an ordinary memory. It often stores the most critical data for the device, such as boot code, main control firmware, system configuration, and OTA upgrade images. Because of this, the "reliability" and "security" of NOR Flash are actually two closely related issues.

Reliability is primarily about solving whether data can remain correct during long-term operation. Security, on the other hand, is about solving whether these critical data can be incorrectly modified, overwritten, or illegally copied. In other words, only when data is both "not prone to errors" and "cannot be arbitrarily changed" can the system truly operate stably. Therefore, the design of high-performance xSPI NOR Flash has gradually formed two main lines:

· Ensuring data reliability and data integrity through mechanisms such as ECC and CRC

· Ensuring data security through write protection and security features

This is also an increasingly important difference between high-performance xSPI NOR Flash and traditional memories.

In response to the high-speed and high-reliability application requirements of high-performance xSPI NOR Flash, GigaDevice's GD25 series products adopt an ECC+CRC dual hardware verification mechanism, building a full-link protection system from the two core aspects of static data storage and dynamic transmission, solving the protection shortcomings of single verification in traditional memories, and precisely adapting to harsh operating conditions such as industrial control and automotive electronics. Among them, ECC is responsible for the reliability protection of the chip's internal storage medium, and CRC is responsible for the data integrity protection of the high-speed bus transmission link. The two hardware mechanisms work together seamlessly and complement each other, serving as the core support for the product to achieve highly stable data storage and transmission.

As the core protection mechanism on the storage side, ECC (Error Correction Code) is specifically designed to solve the static storage bit error problem of NOR Flash. NOR Flash stores data using electronic states. During long-term operation, repeated erasure and writing, high-temperature environments, and external interference, the charge in the storage unit is prone to drift, resulting in bit errors. For core data such as MCU boot code, system firmware, and critical configuration, even a single bit error can cause the entire system to malfunction. Therefore, high-performance xSPI NOR Flash must have professional storage error correction capabilities.

The core working logic of ECC is to automatically append check data to the original data, and the chip performs hardware real-time verification and comparison during the entire read and write process. Relying on its built-in SEC (single-bit error correction) and DED (double-bit error detection) capabilities, it can achieve graded protection: for single-bit flips, the hardware automatically corrects the error to ensure accurate data reading; for double-bit and multi-bit out-of-limit errors, it can accurately detect and report anomalies, providing early warning of storage medium degradation risks, preventing erroneous data from being misused by the business system, and greatly improving the long-term storage reliability of critical data.

GigaDevice's GD25 series high-performance xSPI NOR Flash deeply integrates ECC functionality into hardware. During data writing, check information is automatically generated; during reading, the chip autonomously completes the entire process of verification, correction, and detection without requiring users to develop additional software algorithms, natively improving static data integrity and adapting to various high-reliability core application scenarios.

ECC can comprehensively cover various data risks in the chip's internal static storage, but it cannot adapt to link protection needs in high-speed transmission scenarios. Compared with traditional low-speed QSPI Flash, xSPI NOR Flash has high-frequency and high-bandwidth transmission characteristics. The high-speed bus is easily affected by external factors such as electromagnetic interference, line impedance, and signal attenuation, resulting in instantaneous transmission errors. Such link anomalies only occur during data interaction and do not damage the original stored data inside the Flash, but they can cause temporary transmission data errors, leading to OTA upgrade failures, configuration reading anomalies, program operation faults, and other system-wide problems. The CRC mechanism is a dedicated protection solution for these scenarios.

Hardware CRC cyclic redundancy check is the core mechanism for ensuring the reliability of xSPI high-speed transmission. It operates independently in hardware, takes effect in real time, and does not require software intervention. During data interaction between the host and the Flash chip, CRC performs real-time verification and comparison on each transmission data packet, accurately capturing bit errors and data anomalies caused by various link interferences. Once a transmission error is detected, the chip can immediately report an abnormal status, trigger a system alert, and actively block the loading and flow of erroneous data, preventing abnormal data from entering the business system at the source, ensuring the integrity and trustworthiness of the entire high-speed transmission path.

In summary, the ECC and CRC hardware verification mechanisms each perform their own functions and complement each other, respectively guarding the integrity of static data storage and dynamic data transmission, building a full-link data reliability protection system, and fully adapting to the high-reliability application requirements of high-performance xSPI NOR Flash in harsh operating conditions.

If ECC solves the problem of whether stored data is correct, and CRC ensures the data integrity of the transmission link, then on this basis, how to prevent data from being abnormally rewritten or erroneously written is equally important. The subsequent security write protection mechanism is used to solve the problem of whether data will be incorrectly modified. Today, NOR Flash is increasingly used in critical systems such as automotive electronics, industrial control, and communication equipment. Such equipment often operates under harsh conditions such as high and low temperature alternation, electromagnetic interference, and most have the working characteristics of long-term uninterrupted power and continuous operation. The firmware and core configuration data within the equipment have extremely high requirements for storage reliability. Once erroneous writing, illegal modification, or abnormal overwriting occurs, it can easily cause device downtime, functional failure, and bring serious business impact.

With the ECC and CRC verification mechanisms, high-performance NOR Flash can ensure data accuracy from the storage and transmission dimensions respectively, solving the problem of data correctness. On this basis, how to ensure data security is equally critical. For most systems, even if there are no bit errors in the data, if a key area is mistakenly rewritten, abnormally overwritten, or maliciously tampered with, it can still cause system failure. Therefore, in addition to reliability, NOR Flash must also have comprehensive data protection capabilities. Among them, the most basic and important is the write protection mechanism. Currently, GigaDevice's GD25 series high-performance xSPI NOR Flash products support two write protection methods: software write protection and hardware block protection.

First, the software BP (Block Protect) block protection can control the protection of different storage areas inside the Flash through register configuration. The system can flexibly delineate the protection scope for the boot area, firmware area, or key parameter area according to actual business needs, achieving fine-grained partition protection. On this basis, the hardware WP# (Write Protect) constitutes a second layer of hardware protection barrier. As a register-level hardware protection mechanism, it does not directly lock the storage area. When the WP# pin is pulled low to enable protection, it locks the chip's protection-related registers, prohibiting modification of the internal BP protection configuration bits. After locking, software cannot change the BP protection strategy, avoiding misoperation or malicious tampering of the protection configuration. By solidifying the protection registers, it indirectly ensures the effectiveness of storage area protection. This dual-layer protection architecture, which first locks storage via software partitions and then locks registers via hardware, has clear hierarchy and closed-loop protection, further enhancing the security of firmware and critical data and strengthening system operation stability under harsh conditions.

As devices become increasingly networked and intelligent, system security has gone beyond the basic level of preventing data rewriting. Higher-level security requirements such as device traceability and sensitive information hardening are becoming more prominent. In addition to the write protection mechanism, NOR Flash is generally equipped with UID and security registers as basic security capabilities for chip identification and critical sensitive data storage, supplementing the security protection dimensions beyond write protection.

In terms of advanced security features, GigaDevice's GD25 series high-performance xSPI NOR Flash integrates UID (Unique ID) and Security Registers security mechanisms. Among them, the UID is a hardware unique identifier code laser-engraved at the factory. Each Flash chip has a unique code that is permanent and cannot be tampered with. In practical industrial applications, UID is mainly used for hardware traceability, production control, and preventing unauthorized chip replacement. After the device is powered on, it can actively read the UID and compare it with the system preset identifier. Once the storage chip is replaced without authorization, the device can identify the anomaly and take protective measures.

The Security Registers are independent high-security-level register areas, mainly used to store various critical, long-term hardened, and non-updatable sensitive data, including security keys, authentication credentials, encryption parameters, dedicated hardware configuration, etc. Unlike ordinary storage areas, this register area has independent protection permissions and supports OTP Lock (one-time programmable fuse lock). Once OTP locking is completed, the data in this area is permanently hardened and cannot be erased or rewritten, completely avoiding the risk of tampering or theft of critical security data, and building a solid underlying data security defense.

In summary, UID enables chip identity traceability, and Security Registers enable permanent hardening of sensitive data. Both are general basic security capabilities of NOR Flash, complementing the software and hardware write protection mentioned earlier. Write protection focuses on preventing data from being erroneously rewritten or maliciously tampered with, while UID and security registers are responsible for chip identification and critical information hardening. Multiple layers of protection work together to improve the overall security system of Flash, meeting the comprehensive security requirements of complex systems.

In the past, the industry's focus on NOR Flash was more on capacity, speed, and interface performance. But as automotive electronics, industrial control, and AIoT systems continue to upgrade, the market's requirements for NOR Flash are also changing.

Today, in applications such as automotive electronics, industrial control, and edge devices, customers are increasingly concerned about:

· Whether data is reliable over the long term

· Whether the system starts stably

· Whether firmware is secure and trustworthy

· Whether critical data can be effectively protected

For today's high-performance systems, the significance of NOR Flash has long gone beyond just "storing data." More importantly, it must ensure that data remains correct, complete, and trustworthy under long-term operation and complex environments. The ECC, CRC, BP write protection, WP# write protection, UID, and Security Registers capabilities integrated into the GD25 series high-performance xSPI NOR Flash are gradually shifting from "high-speed storage" to "trusted storage."

PAN's pipeline reviewed approximately 1 open sources for this article. No human editor reviewed this article before publication.

Related Reads

Show on timeline →