Lab 5: System Initialization
Project Build Options
2. We need to setup the search path to include the peripheral register header files. Click:
Project Build Options…
Select the Compiler tab. In the Preprocessor Category, find the
Include Search
Path (-i)
box and enter:
..\DSP281x_headers\include
This is the path for the header files. Then select
OK
to save the
Build Options
.
Modify Memory Configuration
3. Open and inspect the user linker command file
User_5_6_7.cmd
. Notice that the
section
“codestart”
is being linked to a memory block named
BEGIN_H0
. The
codestart section contains code that branches to the code entry point of the project. The
bootloader must branch to the codestart section at the end of the boot process. Recall that
the "Boot to H0" bootloader mode branches to address 0x3F8000 upon bootloader
completion.
Modify the configuration file
lab.cdb
to create a new memory block named
BEGIN_H0
: base = 0x3F8000, length = 0x0002, space = code. Uncheck the
“create
a heap in memory”
box. You will also need to modify the existing memory block
H0SARAM
to avoid any overlaps with this new memory block.
Setup System Initialization
4. Modify
SysCtrl.c
to implement the system initialization as described in the objective
for this lab.
5. Open and inspect
Gpio.c
. Notice that the shared I/O pins have been set to the GPIO
function. (Note: In
Main_5.c
do not edit the “main loop” section. This section will be
used to test the watchdog operation.) Save your work.
Build and Load
6. Click
the
“Build”
button and watch the tools run in the build window. The output
file should automatically load.
7. Under
Debug
on the menu bar click
“Reset CPU”
.
8. Under
Debug
on the menu bar click
“Go Main”
. You should now be at the start of
Main()
.
5 - 16
C28x - System Initialization
Содержание 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 ...