SPRUJE7A January 2025 – July 2025 F29H850TU , F29H859TU-Q1
Returns the value of the STATCMD register for the corresponding FLC (FLC1 or FLC2) based on the address provided
Fapi_FlashStatusType Fapi_getFsmStatus(
uint32 u32StartAddress,
uint32 u32UserFlashConfig
)
| u32StartAddress [in] | 32-bit start address in Flash to program/erase/verify |
| u32UserFlashConfig [in] | User flash configuration bitfield |
This function returns the value of the STATCMD register for the corresponding FLC (FLC1 or FLC2) based on the address provided. This register allows the user application to determine whether an erase or program operation is successfully completed or in progress or suspended or failed. Each flash controller (FLC1 and FLC2) has its own STATCMD register. The user application can check the value of the appropriate register to determine if there is any failure after each erase and program operation.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FAILMISC | FAILINVDATA | FAILILLADDR | FAILVERIFY | FAILWEPROT | CMDINPROGRESS | CMDPASS | CMDDONE | ||||||||
| RO(1) - 0x0 | RO - 0x0 | RO - 0x0 | RO - 0x0 | RO - 0x0 | RO - 0x0 | RO - 0x0 | RO - 0x0 | ||||||||
| Bit | Name | Description | Reset value |
|---|---|---|---|
| 12 | FAILMISC | Command failed due to
error other than write/erase protect violation or verify error. 0: No Fail 1: Fail |
0x0 |
| 8 | FAILINVDATA | Program command failed
because an attempt was made to program a stored 0 value to a 1. 0: No Fail 1: Fail |
0x0 |
| 6 | FAILILLADDR | Command failed due to
the use of an illegal address. 0: No Fail 1: Fail |
0x0 |
| 5 | FAILVERIFY | Command failed due to
verify error. 0: No Fail 1: Fail |
0x0 |
| 4 | FAILWEPROT | Command failed due to
Write/Erase Protect Sector violation. 0: No Fail 1: Fail |
0x0 |
| 2 | CMDINPROGRESS | Command in Progress 0: Command complete 1: Command is in progress |
0x0 |
| 1 | CMDPASS | Command Pass - valid
when CMD_DONE field is 1 0: Fail 1: Pass |
0x0 |
| 0 | CMDDONE | Command Done 0: Command not Done 1: Command Done |
0x0 |