TMS320F280x SDFlash Programming Utilities
F280x SDFlash Algo V1.1
Texas Instruments Inc. 29
12. API
Error
Codes
To communicate back to the calling application, the API returns the following status messages. These
status values will be reported by SDFlash.
Status Definition
Notes
0
STATUS_SUCCESS
Operation was successful.
10
STATUS_FAIL_CSM_LOCKED
The API function is unable to access the flash
array due to a locked Code Security Module.
11
STATUS_FAIL_REVID_INVALID
The REVID is incorrect for this API.
The V2.00 API is built for REVID greater or
equal to silicon revision C.
12
STATUS_FAIL_ADDR_INVALID
An invalid address (outside of the flash or
OTP bank) was passed to the API.
For the program operation, this could be
caused if the first address specified is outside
of flash/OTP or the number of words to be
programmed is such that the last address will
be outside of flash/OTP.
This error can be returned by the erase and
depletion recovery functions if an invalid
address is used for the pre-conditioning of the
flash. In this case check that the .const
section of the API is located in SARAM that
can be accessed by the API. This section
contains important information that is used by
the erase and depletion recovery functions.
In the case of this error, none of the values
passed to the program function will be
programmed. The flash status structure
(FLASH_ST) is not updated with any
information.
13
STATUS_FAIL_INCORRECT_PARTID
This error code is new as of V2.00 of the API.
The expected PARTID did not match the
device PARTID. This would indicate that the
wrong API was used. For example, using a
TMS320F2812 API on the TMS320F2808
device.