Inside Startup Code; Symbols Used In Startup Code - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

Example 2-36. LDM_ExtRam.cmd linker command file
#include "version.h"
#include "hawkcpu.h"
#define TARGET_LDM
#define TARGET_CODE_EXTRAM
#define TARGET_CONSTDATA_EXTRAM /* Constants and const s located in external xRAM */
#define TARGET_INITDATA_EXTRAM
#define TARGET_DATA_EXTRAM
#pragma define_section fardata "fardata.data" "fardata.bss" RW
#pragma define_section pramcode "pramcode.text" RWX
#if 0 /* everything below is excluded from C compilation */
MEMORY
{
...
}
SECTIONS
{
...
}
...
#endif /* end of code excluded by C-preprocessor */
2.6.2

Inside Startup Code

This section goes step-by-step through the processor initialization code described briefly in
Section 2.1.2 on page 2-3. The startup code described here can be found in the startup.c file,
located
in
the
SystemConfig
DSP56800E_Quick_Start tool stationery.
2.6.2.1

Symbols Used in Startup Code

2.6.2.1.1
Included Header Files
The master Quick_Start header file qs.h is included in the startup code. This file further includes
other critical system files to define common C types, peripheral module base addresses and other
types and macros required by the startup code. The application configuration header file
appconfig.h is also included so the startup code is able to configure system modules like OCCS
(PLL) and SEMI.
#include "qs.h"
2.6.2.1.2
Initial Value of Operation Mode Register (OMR)
Although it is not very common, the initial value of the Operation Mode Register (OMR) can be
specified in appconfig.h using the OMR_INIT macro.
The following startup.c statements define the default initial OMR value for the cases when the
user had not defined the OMR_INIT in appconfig.h:
#ifndef TARGET_OMR_INIT
FREESCALE SEMICONDUCTOR
/* Large Data Model */
/* Code located in external pRAM */
/* Initialized global vars located in external RAM */
/* Variables located in external RAM */
subdirectory
of
Targeting 56F8xxx Platform
any
project
created
Boot Sequence
using
the
2-39

Advertisement

Table of Contents
loading

Table of Contents