Api Error Codes - Texas Instruments TMS320F280 Series Manual

Sdflash jtag flash programming utilities
Table of Contents

Advertisement

TMS320F280x SDFlash Programming Utilities

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
0
STATUS_SUCCESS
10
STATUS_FAIL_CSM_LOCKED
11
STATUS_FAIL_REVID_INVALID
12
STATUS_FAIL_ADDR_INVALID
13
STATUS_FAIL_INCORRECT_PARTID
Texas Instruments Inc.
F280x SDFlash Algo V1.1
Notes
Operation was successful.
The API function is unable to access the flash
array due to a locked Code Security Module.
The REVID is incorrect for this API.
The V2.00 API is built for REVID greater or
equal to silicon revision C.
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.
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.
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320f2808Tms320f2806Tms320f2802Tms320f2801

Table of Contents