Lab 2b: DSP/BIOS Configuration Tool
combined M0SARAM and M1SARAM into a single memory block called M0SARAM.
We want to split these memory sections as shown in the slide for this lab exercise.
Right click on
MEM – Memory Section Manager
and select
Insert MEM
.
Rename the newly added memory section to L1SARAM. Create a second new memory
section, and rename it to M1SARAM.
11. Modify the length and base addresses of each of the memory sections L0SARAM,
L1SARAM, M0SARAM, and M1SARAM to correspond to the memory mapping shown
in the figure at the beginning of this lab. To modify the length and base address of a
memory section, right click on the memory in configuration tool, and select “Properties.”
While modifying the length and base address of each section, make sure the
“create a heap in memory”
box is checked ONLY for L0SARAM. Uncheck
this box in the other three memory sections.
12. Right click on
MEM – Memory Section Manager
and select
Properties
.
Select the
Compiler Sections
tab and place the sections defined on the slide into
the appropriate memories via the pull-down boxes. Click
OK
to save your work.
Set the Stack Size in the CDB File
13. Recall in the previous lab exercise that the stack size was set using the CCS project Build
Options. When using the DSP/BIOS configuration tool, the stack size is instead specified
in the CDB file. First we need to remove the stack size setting from the project Build
Options.
14. Click:
Project Build Options…
and select the Linker tab. Delete the entry
for setting the Stack Size to 0x200. Select
OK
to close the Build Options window.
15. Right click on
MEM – Memory Section Manager
and select
Properties
.
Select the
General
tab. Notice that the Stack Size has been set to 0x200 by default, so
there is no need to modify this. Click
OK
to close the window.
Build and Load the Project
16. Click the
“Build”
button and watch the tools run in the build window. The output file
should automatically load. The Program Counter should be pointing to
_c_int00
in
the Disassembly Window.
17. Under
Debug
on the menu bar click
“Go Main”
. This will run through the DSP/BIOS
C-environment initialization routine and stop at
main()
in
Lab2.c
.
Run the Code
18. We will verify the operation of the code using the same procedure used in Lab2a. Open
the watch window and add the global variable
z
.
2 - 28
C28x - Programming Development Environment
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...