Specifications
Things to Try
3-10
3.5 Things to Try
To explore Code Composer Studio, try the following:
❏
Load myhello.out and put a breakpoint on the line that calls LOG_printf.
Use Debug
→
Breakpoints to add a breakpoint at IDL_F_loop. (Type
IDL_F_loop in the Location box and click Add.)
Run the program. At the first breakpoint, use View
→
CPU
Registers
→
CPU Register to see a list of register values. Notice that GIE
is 0, indicating that interrupts are disabled while the main function is
executing.
Run to the next breakpoint. Notice that GIE is now 1, indicating that
interrupts are now enabled. Notice that if you run the program, you hit this
breakpoint over and over.
After the startup process and main are completed, a DSP/BIOS
application drops into a background thread called the idle loop. This loop
is managed by the IDL module and continues until you halt the program.
The idle loop runs with interrupts enabled and can be preempted at any
point by any ISR, software interrupt, or task triggered to handle the
application’s real-time processing. Chapter 5 through Chapter 7 explain
more about using ISRs and software interrupts with DSP/BIOS
❏
In an MS-DOS window, run the sectti.exe utility by typing the following
command lines. Change the directory locations if you installed Code
Composer Studio in a location other than c:\ti.
cd c:\ti\c6000\tutorial\hello1
sectti hello.out > hello1.prn
cd ..\hello2
sectti hello.out > hello2.prn
Compare the hello1.prn and hello2.prn files to see differences in memory
sections and sizes when using stdio.h calls and DSP/BIOS. Notice the
size of the .text section is smaller for the DSP/BIOS call to LOG_printf, as
compared to linking the stdio when using puts(). See the
TMS320C6000
DSP/BIOS API Reference Guide
for more information on the sectti utility.
3.6 Learning More
To learn more about Code Composer Studio and DSP/BIOS, see the online
help for Code Composer Studio. In addition, see the
Code Composer Studio
User’s Guide,
the
TMS320C6000 DSP/BIOS User’s Guide
, and the
TMS320C6000 DSP/BIOS API Reference Guide
(which are provided as
Adobe Acrobat files).