TI
T
H E
W
O R L D
L
E A D E R I N
D
S
P
S
O L U T I O N S
Agenda
Agenda
Overview
Overview
Hello, TI DSP, ‘C6000
Hello, TI DSP, ‘C6000
DSK
DSK
Tour of ‘C6711 DSK
Tour of ‘C6711 DSK
C Code
C Code
Code Composer Studio
Code Composer Studio
System
System
McBSP, Interrupts
McBSP, Interrupts
EDMA, Cache
EDMA, Cache
DSP/BIOS
DSP/BIOS
Real-Time Tools
Real-Time Tools
VAB
VAB
Visual Design
Visual Design
Epilogue
Epilogue
What Next?
What Next?
Module 2 - DSK Hardware
Module 2 - DSK Hardware
DSK Tour
DSK Tour
Hardware Overview
Hardware Overview
Resets & POST
Resets & POST
Memory Map
Memory Map
DSK Utilities
DSK Utilities
PC-based
PC-based
DSP-based
DSP-based
Win32 API via DSP’s HPI
Win32 API via DSP’s HPI
DSK Help File
DSK Help File
Lab: Connect your DSK
Lab: Connect your DSK
1.8V Power Supply
16M SDRAM 128K FLASH
Daughter Card I/F
(EMIF Connector)
Parallel
Port I/F
Power
Jack
Power
LED
3.3V Power Supply
JTAG Header
Emulation
JTAG Header
Reset
Line Level Output
(speakers)
Line Level Input
(microphone)
16-bit codec
(A/D & D/A)
Three User LEDs
User DIP
switches
‘C6711
DSP
D. Card I/F
(Periph Con.)
TMS320C6711
‘
‘
C6711 DSK Overview
C6711 DSK Overview
DSK Resets
DSK Resets
TMS320C6711
Apply Power
POST runs
Power On Self Test
(POST)
Counts 1 - 7
4:
mic input
spkr
out
5:
sinewave
spkr out
Don’t start CCS until end
(all 3 LEDs flash at the
end)
If switches are set to
0100, a fast version of
POST is run
DSK Resets
DSK Resets
TMS320C6711
Apply Power
POST runs
Reset Pushbutton
Don’t push when CCS
is running
Does not force FULL
system reset
To fully reset board,
pull power plug
Power On Self Test
(POST)
Counts 1 - 7
4:
mic input
spkr
out
5:
sinewave
spkr out
Don’t start CCS until end
(all 3 LEDs flash at the
end)
If switches are set to
0100, a fast version of
POST is run
DSK Resets
DSK Resets
TMS320C6711
Apply Power
POST runs
Absolute
Reset
On rare
occasions you
might have
to:
Pull power
jack
Pull parallel
port
Reset Pushbutton
Don’t push when CCS
is running
Does not force FULL
system reset
To fully reset board,
pull power plug
Power On Self Test
(POST)
Counts 1 - 7
4:
mic input
spkr
out
5:
sinewave
spkr out
Don’t start CCS until end
(all 3 LEDs flash at the
end)
If switches are set to
0100, a fast version of
POST is run
DSK Resets
DSK Resets
TMS320C6711
Apply Power
POST runs
CCS Reset
Menu selection:
DebugDSP Reset
Resets ‘C6711 DSP
Causes bootload
from FLASH which
overwrites internal
memory
Absolute
Reset
On rare
occasions you
might have
to:
Pull power
jack
Pull parallel
port
Reset Pushbutton
Don’t push when CCS
is running
Does not force FULL
system reset
To fully reset board,
pull power plug
Power On Self Test
(POST)
Counts 1 - 7
4:
mic input
spkr
out
5:
sinewave
spkr out
Don’t start CCS until end
(all 3 LEDs flash at the
end)
If switches are set to
0100, a fast version of
POST is run
Memory Maps
Memory Maps
FFFF_FFFF
FFFF_FFFF
0000_0000
0000_0000
64KB Internal
64KB Internal
(Program or Data)
(Program or Data)
On-chip Periph
On-chip Periph
0180_0000
0180_0000
128MB External
128MB External
128MB External
128MB External
8000_0000
8000_0000
9000_0000
9000_0000
A000_0000
A000_0000
B000_0000
B000_0000
128MB External
128MB External
128MB External
128MB External
TMS320C6711
TMS320C6711
9008_0000
9008_0000
Available via
Available via
Daughter Card
Daughter Card
Connector
Connector
‘
‘
C6711 DSK
C6711 DSK
16MB SDRAM
16MB SDRAM
128K byte FLASH
128K byte FLASH
4 byte I/O Port
4 byte I/O Port
LED’s
LED’s
Switches
Switches
DSK status
DSK status
DSK rev#
DSK rev#
Daughter Card
Daughter Card
Module 2 - DSK Hardware
Module 2 - DSK Hardware
DSK Tour
DSK Tour
DSK Utilities
DSK Utilities
Flash program
Flash program
(FLASH.EXE)
(FLASH.EXE)
Host PC loader
Host PC loader
(DSK6LDR.EXE)
(DSK6LDR.EXE)
Board Confidence Test
Board Confidence Test
Quick Test
Quick Test
PC Host access via DLL
PC Host access via DLL
(WIN32.DLL)
(WIN32.DLL)
DSK Help
DSK Help
Connect your DSK
Connect your DSK
PC Host Utilities
PC Host Utilities
DSK Loader
DSK Loader
dsk6ldr.exe
dsk6ldr.exe
filename.out
filename.out
Runs on PC host
Runs on PC host
Downloads .out file to DSK memory map
Downloads .out file to DSK memory map
Stand alone DSK loader for when you want to bypass
Stand alone DSK loader for when you want to bypass
CCS
CCS
FLASH Programming
FLASH Programming
hex6x.exe
hex6x.exe
f.out
f.out
h.cmd
h.cmd
flash.exe
flash.exe
f.hex
f.hex
First, convert
First, convert
file.out
file.out
to
to
file.hex
file.hex
The flash utility downloads the hex file into the on-DSK
The flash utility downloads the hex file into the on-DSK
FLASH
FLASH
Both programs run on the PC host
Both programs run on the PC host
DSK Confidence Test
DSK Confidence Test
dsk6xtst
dsk6xtst
Run from MSDOS prompt
Run from MSDOS prompt
Command-line utility tests proper installation of the
Command-line utility tests proper installation of the
DSK board
DSK board
Additionally, it tests: Internal SRAM, SDRAM, FLASH,
Additionally, it tests: Internal SRAM, SDRAM, FLASH,
McBSP, Timers, EDMA, LEDs, Audio codec
McBSP, Timers, EDMA, LEDs, Audio codec
CCS DSK Utilities
CCS DSK Utilities
Confidence Test
Confidence Test
1.
1.
Unload
Unload
dsk6xinit.gel
dsk6xinit.gel
2.
2.
Load
Load
conftest.gel
conftest.gel
3.
3.
Run confidence tests
Run confidence tests
from GEL menu
from GEL menu
Quick Test
Quick Test
Run from CCS GEL
Run from CCS GEL
menu
menu
Defined in
Defined in
dsk6xinit.gel
dsk6xinit.gel
Non-intrusive
Non-intrusive
test by
test by
reading and writing:
reading and writing:
LEDs
LEDs
Switches
Switches
DSK board revision
DSK board revision
Outputs switch values
Outputs switch values
PC
PC
DSK Communications
DSK Communications
DSP
DSP
JTAG
JTAG
.......
.......
.......
.......
JTAG
JTAG
Emulation
Emulation
Port
Port
CCS uses parallel port to control DSP via
CCS uses parallel port to control DSP via
JTAG port
JTAG port
You can use full TI eXtended Dev System
You can use full TI eXtended Dev System
(XDS) via 14 pin header connector
(XDS) via 14 pin header connector
Use HPI via Win32 DLL
Use HPI via Win32 DLL
Communicate from Windows program
Communicate from Windows program
(C++, VB) via parallel port using Win32
(C++, VB) via parallel port using Win32
DLL
DLL
Note: You should not use the parallel port for simultaneous emulation and HPI connection.
Note: You should not use the parallel port for simultaneous emulation and HPI connection.
Win32 API for Host
Win32 API for Host
dsk6x_open( )
dsk6x_open( )
Open a connection to the DSK
Open a connection to the DSK
dsk6x_close( )
dsk6x_close( )
Close a connection to the DSK
Close a connection to the DSK
dsk6x_reset_board( )
dsk6x_reset_board( )
Reset the entire DSK board
Reset the entire DSK board
dsk6x_reset_dsp( )
dsk6x_reset_dsp( )
Reset only the DSP on the DSK
Reset only the DSP on the DSK
dsk6x_coff_load( )
dsk6x_coff_load( )
Load a COFF image to DSP memory
Load a COFF image to DSP memory
dsk6x_hpi_open( )
dsk6x_hpi_open( )
Open the HPI for the DSP
Open the HPI for the DSP
dsk6x_hpi_close( )
dsk6x_hpi_close( )
Close the HPI for the DSP
Close the HPI for the DSP
dsk6x_hpi_read( )
dsk6x_hpi_read( )
Read DSP memory via the HPI
Read DSP memory via the HPI
dsk6x_hpi_write( )
dsk6x_hpi_write( )
Write to DSP memory via the HPI
Write to DSP memory via the HPI
dsk6x_generate_int( )
dsk6x_generate_int( )
Generate a DSP interrupt
Generate a DSP interrupt
DSK Help
DSK Help
Module 2 - DSK Hardware
Module 2 - DSK Hardware
DSK Tour
DSK Tour
DSK Utilities
DSK Utilities
Lab: Connect your DSK
Lab: Connect your DSK
4.
While unlikely, your instructor may direct
you to perform software installation.
1.
If sharing a PC, select one DSK to use
2.
Connect cables:
Parallel Port
Speaker and Audio Input
3.
Connect Power and observe POST
5.
Run DSK Confidence Test
Connect DSK
Connect DSK
You don’t need to start Code Composer
You don’t need to start Code Composer
Studio
Studio
we will use it in the next lab
we will use it in the next lab