EasyManua.ls Logo

Infineon PSoC 61 - Flash Memory Programming; Features; Architecture

Infineon PSoC 61
647 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Reference manual 190 002-27293 Rev. *E
2023-09-06
PSoC™ 61, PSoC™ 62 MCU: CY8C6xx5 architecture
Nonvolatile memory
14.2 Flash memory programming
14.2.1 Features
• SROM API library for flash management through system calls such as Program Row, Erase Flash, and Blow
eFuse
• System calls can be performed using CM0+, CM4, or DAP
14.2.2 Architecture
Flash programming operations are implemented as system calls. System calls are executed out of SROM in
Protection Context 0. System calls are executed inside CM0+ NMI. The system call interface makes use of IPC to
initiate an NMI to CM0+.
System calls can be performed by CM0+, CM4, or DAP. Each of them have a reserved IPC structure (used as a
mailbox) through which they can request CM0+ to perform a system call. Each one acquires the specific mailbox,
writes the opcode and argument to the data field of the mailbox, and notifies a dedicated IPC interrupt structure.
This results in an NMI interrupt in CM0+. The following diagram illustrates the system call interface using IPC.
Figure 14-3. System call interface using IPC
The PSoC™ 6 MCU’s IPC component carries only a single 32-bit argument. This argument is either a pointer to
SRAM or a formatted opcode or argument value that cannot be a valid SRAM address. The encoding used for DAP
and the CM4 or CM0+ is slightly different.
DAP
If (opcode + argument) is less than or equal to 31 bits, store them in the data field and set the LSb of the data field
as ‘1’. Upon completion of the call, a return value is passed in the IPC data register. For calls that need more
argument data, the data field is a pointer to a structure in SRAM (aligned on a word boundary) that has the opcode
and the argument. So it is a pointer if and only if the LSb is 0.
Table 14-4. IPC structure
Master IPC structure resource used
M0+ IPC_STRUCT0
M4 IPC_STRUCT1
DAP IPC_STRUCT2
Access point IPC structure resource used
CM0+ NMI interrupt IPC_INTR_STRUCT0
IPC Structure 0
IPC Structure 1
IPC Structure 2
IPC Interrupt
Structure 0
M0+ NMI
Reserved for M0+ Access
Reserved for M4 Access
Reserved for DAP Access
Control
Data (32 bytes)
Control
Data (32 bytes)
Control
Data (32 bytes)

Table of Contents