SPRUJC5 April 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1
Returns the value of the STATCMD register.
Fapi_FlashStatusType Fapi_getFsmStatus(void)
None
This function returns the value of the STATCMD register. This register allows the user application to determine whether an erase or program operation is successfully completed or in progress or suspended or failed. The user application should check the value of this 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: Complete 1: In Progress |
0x0 |
1 | CMDPASS | Command Pass - valid when CMD_DONE field is 1 0: Fail 1: Pass |
0x0 |
0 | CMDDONE | Command Done 0: Not Done 1: Done |
0x0 |