Sei sulla pagina 1di 3

The following steps must be taken to boot

code from flash memory of


TMS320F28335 Texas Instrument DSP:

1. Add F28335.cmd linker command file to project to redefine Memory Map
for flash programming.
2. Add MemCopy.c common file to project from
~\tidcs\c28\DSP2833x\v102\DSP2833x_common\source
to define MemCopy() function Unless it wouldn't be defined and error will be
encountered during build process.

3. Write following codes right before main():
// These are defined by the linker (see F28335.cmd)
extern Uint16 RamfuncsLoadStart;
extern Uint16 RamfuncsLoadEnd;
extern Uint16 RamfuncsRunStart;
4. Write following codes right after main():

MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd,
&RamfuncsRunStart);
InitFlash();

5. Build the Project
6. After successful build first put all 4 jumper dip switches on the DSP
Starter Board at OFF mode then make sure theres no active breakpoint at C
code in CCS and go to menu Option > Customize and in Debug Properties
tab uncheck the Perform Go to Main Automatically box and then go to
Program/Project/CIO tab and uncheck Load Program After Build box.
(If you forget to do above settings error will occur during connection)
7. Go to following menu in CCS v3.3 Desktop -> Tools> F28xx On-Chip
Flash Programmer
8. Right the appropriate values due to your specific configuration in PLLCR
and OSCCLK and DIVSEL field boxes:
for f_tbclk=150 MHz write
OSCCLK(MHz)= 30
DIVSEL= /2
PLLCR=10
9. In this step if the Flash28335_API_V210 library has been already installed
you should browse its address Press Ok in next dialog box (Flash
Programming Setting), usually this library is installed at the initial
Installation Process of CCS, unless you should prepare its application file and
install it and do the above process.
10. Press Execute Operation in the last dialog box or setting window and
wait until end of process.
11. Unplug Emulator connector from DSP board
12. Remove Power Supply from DSP board and plug Power Cable again to
supply the board.
13. Now your program is running on DSP without Emulator connected!




It must be noted that in order to optimize speed specially when there
are complicated computational functions in main code, flash registers
should be re-configured and pipe-line can be activated to enhance
loading and running speed. -----> refer to TI documents about flash
programming.
It should be noted that this tutorial can also be used for other F28x
devices by constituting F28335 with desired F28x device in the above
instructions, e. g. F28335.cmd is changed to F28x.cmd (F28334
F28332 F2812 ).

Prepared by :
Mahmoud Nouri,
Email Address for probable questions:
Mahmoud.nouri@ut.ac.ir

Potrebbero piacerti anche