EasyManuals Logo
Home>Texas Instruments>Microcontrollers>TMS320F2837 D Series

Texas Instruments TMS320F2837 D Series Workshop Guide And Lab Manual

Texas Instruments TMS320F2837 D Series
324 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #110 background imageLoading...
Page #110 background image
Lab 5: System Initialization
5 - 24 TMS320F2837xD Microcontroller Workshop - System Initialization
Project Build Options
3. Setup the build options by right-clicking on Lab5 in the Project Explorer window and
select “Properties”. We need to setup the include search path to include the peripheral
register header files and common lab header files. Under “C2000 Compiler” select
“Include Options”. In the include search path box that opens (“Add dir to #include
search path”) click the Add icon (first icon with green plus sign). Then in the “Add
directory path” window type (one at a time):
${PROJECT_ROOT}/../../F2837xD_headers/include
${PROJECT_ROOT}/../../Lab_common/include
Click OK to include each search path.
4. Next, we need to setup the predefined symbols. Under “C2000 Compiler” select
“Predefined Symbols”. In the predefined name box that opens (“Pre-define NAME”)
click the Add icon (first icon with green plus sign). Then in the “Enter Value” window type
CPU1. This name is used in the project to conditionally include the peripheral register
header files code specific to CPU1. Click OK to include the name. Finally, click OK to
save and close the Properties window.
Modify Memory Configuration
5. Open and inspect the linker command file Lab_5_6_7.cmd. Notice that the user defined
section “codestart” is being linked to a memory block named BEGIN_M0. 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 emulation boot mode "SARAM" branches to address 0x000000 upon bootloader
completion.
Notice that the linker command file Lab_5_6_7.cmd has a memory block named
BEGIN_M0: origin = 0x000000, length = 0x0002, in program memory. The
existing parts of memory blocks BOOT_RSVD and RAMM0 in data memory has been
modified to avoid any overlaps with this memory block.
6. In the linker command file, notice that RESET in the MEMORY section has been defined
using the “(R)” qualifier. This qualifier indicates read-only memory, and is optional. It will
cause the linker to flag a warning if any uninitialized sections are linked to this memory.
The (R) qualifier can be used with all non-volatile memories (e.g., flash, ROM, OTP), as
you will see in later lab exercises. Close the Lab_5_6_7.cmd linker command file.
Setup System Initialization
7. Open and inspect SysCtrl.c. Notice that the clock sources, PLL, peripheral clocks,
and low-power modes have been initialized.
8. Modify Watchdog.c to implement the system initialization as described in the objective
for this lab exercise.
9. Open and inspect Gpio.c. Notice that the shared I/O pins have been set to the GPIO
function. Also, in Xbar.c the crossbar switches have been set to their default values.
Save your work.

Table of Contents

Other manuals for Texas Instruments TMS320F2837 D Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320F2837 D Series and is the answer not in the manual?

Texas Instruments TMS320F2837 D Series Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320F2837 D Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals