TMS320F280x SDFlash Programming Utilities
F280x SDFlash Algo V1.1
Texas Instruments Inc. 27
11.4. Programming Fails
Check to make sure you are not programming a region of memory outside of the flash. To see what
sections SDFlash will program, use the View->Coff/Hex File Status utility and look for sections
labeled “load” outside of the flash memory region. It may be that the start address is within Flash or
OTP but the end address is not.
Refer to the linker section in the TMS320C28x Assembly Language Tools User’s Guide, literature
#SPRU513, for more information on preparing your code for programming. Any loaded section that
starts outside or ends outside of the flash region will cause programming to fail.
Make sure you erased the sectors being programmed prior to programming them. Make sure the
sector mask used for the erase function did not include the leading 0x.
For example: correct 03FF incorrect 0x03FF
11.5. Verify Fails
If you have programmed new security passwords, the algorithm may no longer be able to unlock the
CSM using the default passwords. To avoid having to change the CSM passwords for different
operations, it is suggested that the CSM passwords be left erased (FFFFs) for initial development.
Refer to section 8 Code Security Module (CSM) Password Considerations if you have changed your
passwords from the default (erased) value.
Try increasing the wait states used for the flash during the verify operation as described in section 9.2
Configure Flash and OTP wait states: Verify User Option 1 and Verify User Option 2.
11.6. Programmed Application Fails To Run
This section offers suggestions if you find that your programmed .out file is not executing properly.
C281x C/C++ Header Files and Peripheral Examples in C, literature # SPRC097, is available for
download from the TI website and provides small example programs for each of the peripherals on
the F281x devices. Also included is an example flash project (in the examples\flash directory) that
can be followed as an example program that runs from Flash.
Running an Application from Internal Flash Memory on the TMS320F281x DSP, literature #
SPRA958, is available for download from the TI website. This application note goes over the
requirements for executing an application out of Flash memory. DSP/BIOS and non-BIOS
applications are both included.
Constant sections such as .switch, .const/.econst should be linked to page 0 (program) memory.
SDFlash will not program sections linked to page 1 (data) memory. Note: this was not the not the
case in C281x C/C++ Header Files and Peripheral Examples in C V.58, literature # SPRC097. If you
use these examples, move the .econst section to page 0. Refer to the linker section in the
TMS320C28x Assembly Language Tools User’s Guide, literature #SPRU513, for more information on
section allocation.
If using the boot ROM (XMP/MC = low), then check that the boot mode option I/O pins of the device
are set for “boot to flash” operation. Refer to TMS320x281x Boot ROM Peripheral Reference Guide,
literature # SPRU095, for more information.
The 3.3V flash power pin, VDD3VFL, should remain connected, as it is required for read operations
as well as programming.