
TMS320F280x SDFlash Programming Utilities F280x SDFlash Algo V1.1
Texas Instruments Inc. 17
8. Code Security Module (CSM) Password Considerations
The F280x SDFlash algos must unlock the Code Security Module (CSM) before an erase, program, or verify
operation. As supplied, the password locations are assumed to be all erased (all 0xFFFFs). During the code
development phase, it is suggested that the CSM passwords be left erased (0xFFFFs) for ease of use. If you
program new passwords into the CSM password locations (0x3F7FF8-0x3F7FFF) and then later need to re-
program the part, you will need to configure the flash algorithms so that the CSM can be unlocked. Refer to
TMS320x280x System Control and Interrupts Peripheral Reference Guide, for details on the proper operation of the
CSM.
The algorithm uses the CSM keys provided in the appropriate CSM key assembly file:
(SDFlash28x_Erase_CsmKeys.asm, SDFlash28x_Program_CsmKeys.asm, or SDFlash28x_Verify_CsmKeys.asm)
to unlock the CSM. Follow these steps to build an SDFlash algorithm file with a new set of CSM passwords.
8.1. Using Code Composer Studio (CCS), load the projects for your device. There is one project per
operation and all must be re-compiled for the new PLL configuration. These are the CCS
projects used to build the SDFlash algorithm files. The projects are:
F2801: Install Dir: <SDFlash>\myprojects\tif280x_V1_0\f2801\flash28\
SDFlash2801_Erase.pjt, SDFlash2801_Program.pjt,
SDFlash2801_Verify.pjt SDFlash2801_DepRecover.pjt
F2802: Install Dir: <SDFlash>\myprojects\tif280x_V1_0\f2802\flash28\
SDFlash2802_Erase.pjt, SDFlash2802_Program.pjt,
SDFlash2802_Verify.pjt SDFlash2802_DepRecover.pjt
F2806: Install Dir: <SDFlash>\myprojects\tif280x_V1_0\f2806\flash28\
SDFlash2806_Erase.pjt, SDFlash2806_Program.pjt,
SDFlash2806_Verify.pjt SDFlash2806_DepRecover.pjt
F2808: Install Dir: <SDFlash>\myprojects\tif280x_V1_0\f2808\flash28\
SDFlash2808_Erase.pjt, SDFlash2808_Program.pjt,
SDFlash2808_Verify.pjt SDFlash2808_DepRecover.pjt
8.2. In CCS, open the appropriate CSM key file: SDFlash28x_Erase_CsmKeys.asm,
SDFlash28x_Program_CsmKeys.asm, or SDFlash28x_Verify_CsmKeys.asm. These files contain
the definition of the CSM passwords used by the algorithm to unlock the CSM during the erase,
program and verify operations.
Note: The passwords in this file will not be programmed into the CSM password locations. The
algorithm uses these passwords only to unlock the CSM prior to an erase, program or verify operation.
8.3. Modify the passwords in the appropriate CSM key file to match those already programmed into
the CSM password locations.
8.4. Rebuild the algorithms in CCS by selecting Project->Rebuild All
8.5. Exit Code Composer Studio
Note: Each step in the process Erase, Program, and Verify separately unlocks the CSM. If you are changing
the passwords during the Program operation, you will need to supply the new passwords for the verify
operation by following the steps above.