TMS320F280x SDFlash Programming Utilities
F280x SDFlash Algo V1.1
Texas Instruments Inc. 26
The flashing algorithms must be configured to multiply the DSP's input frequency appropriately and not
exceed the DSP's maximum operational frequency. The algorithms found on the Spectrum Digital
support sites are configured to support Spectrum Digital target boards. If you are using a custom board
refer to the directions in this to properly configure the algorithms to support your target configuration.
Make sure SDFlash can unlock the Code Security Module (CSM). An SDFlash error message of "ERR:
Failed to initialize the algorithm" can indicate the CSM as the source of the problem. The algorithm
attempts to unlock the CSM before an erase, program, or verify operation. By default, the password
locations are assumed to be all erased (FFFFs). Refer to section 8 Code Security Module (CSM)
Password Considerations if you have changed your passwords from the erased value.
It is suggested that the CSM passwords be left erased (FFFFs) for initial development. Refer to the
TMS320x281x System Control and Interrupts Reference Guide (literature number SPRU078) for details
on the CSM operation.
If required, configure the SDFlash algorithms for a custom CPU frequency and PLL multiplier. As
supplied, the algorithms are configured for a CPU clock frequency (SYSCLKOUT) of 150MHz and to
set the PLLCR register to 0x000A. If your hardware has other requirements you must configure the
algorithms as described in section 7 Confirm proper configuration of the algorithms by running the CPU
frequency and PLL multiplier configuration toggle test described in section 9.3 CPU Frequency and PLL
Multiplier Configuration Toggle Test: User Option 3
,
SDFlash should have full control of the device. That is, no user application should be running, no
interrupts firing, and CCS should be shut down prior to using SDFlash.
Make sure that the device has a clean VDD3VFL 3.3V voltage source. In addition VDD3VFL should
remain connected, as it is required for read operations as well as programming.
Check the part using Code Composer Studio (CCS). Using CCS, check the SARAM blocks and make
sure that you can unlock the CSM (check by attempting to view the passwords in a memory window. If
you view all 0x0000's, the CSM is still locked).
11.3. Erase
Fails
Make sure a valid sector mask is specified for User Option 1 for the erase operation. At least one
sector must be specified. Do not use a 0x in front of the mask value – simply enter the hex number
without the leading 0x. For example: correct 03FF incorrect 0x03FF
If the configuration toggle test is selected via erase User Option 2, then the toggle test is executed in
place of the erase algorithm. SDFlash will timeout and report an erase error in this case. Refer to
section 9.3 CPU Frequency and PLL Multiplier Configuration Toggle Test: User Option 3
for more information.
If you programmed new security passwords, the SDFlash 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.