PEmicro | Experts in Embedded tools for Flash Programming and Development
PEmicro logo
Cart New Account Login

Logo image
HomeAbout usProductsSupportForumsBlogCustomer Service

by Gilbert Yap

Cypress’ PSoC5 line of microcontrollers are a great option for high performance at a low cost. The PSoC 5 provides an Error Correcting Code (ECC) feature to help detect errors in operations that manipulate the flash memory. The ECC peripheral can be enabled or disabled by writing to the Nonvolatile Latch (NVL). The advantage of disabling ECC is that each row of flash gains 32 bytes for data storage, extending the row from 256 to 288 bytes.

The following table outlines how much storage can be gained from disabling ECC based on the device’s flash memory.

Flash Memory Size (KB)

Storage Gained (KB)







When purchasing a new PSoC5 device from Cypress, the ECC feature is enabled by default. Users whose programs use the ECC bytes for program or data storage will be met with an error if they attempt to program this area. These users should use the “DC ;Disable ECC” option in the Cyclone Image Creation Tool or PROGACMP prior to programming their new device. The ECC will be disabled from this point forward, but can be enabled by using the “EC ;Enable ECC” command. 

search in blog posts


Product pages
Cyclone (94)
Cyclone FX (97)
Multilink (57)
Multilink FX (52)
GDB Server (26)
Prog ACMP (24)
Interface Library Routines (5)

ARM (76)
NXP (83)
Microchip (7)
Cypress (7)
Infineon (7)
Maxim (3)
Nordic Semiconductor (3)
Silicon Labs (6)
Silergy Teridian (1)
STMicroelectronics (11)
Texas Instruments (2)
Toshiba (3)
Renesas (11)

Production Programming (97)
Debug (59)
Automated Control (25)
Miscellaneous (39)

© 2021 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement