How is the flash memory organized in PSoC 3, PSoC 4, and PSoC 5LP? How do we choose the array ID parameter for the CyWriteRowData API?
In PSoC 3, the flash memory is organized as follows: (see Figure 1)
Figure 1. Flash Memory Organization for PSoC 3
In PSoC 4, the flash memory is organized as follows: (see Figure 2)
Figure 2. Flash Memory Organization for PSoC 4
In PSoC 5LP, the flash memory is organized as follows: (see Figure 3)
Figure 3. Flash Memory Organization for PSoC5 LP
Writing data into Flash Using Firmware:
There are three APIs to write data into flash in PSoC 3/ PSoC 5LP.
The parameters required by these APIs are as follows:
To write data into PSoC 4 flash, we use the CySysFlashWriteRow API, which does not require the Array-ID Parameter.
These flash APIs are defined in the CyFlash.c file. Details of the APIs are available in the System Reference Guide, which can be located in PSoC Creator at the following path:
Help > Documentation > System Reference > System Reference Guide