EasyManua.ls Logo

Texas Instruments TMS320*2801 Series User Manual

Texas Instruments TMS320*2801 Series
94 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 #82 background imageLoading...
Page #82 background image
www.ti.com
Bootloader Code Listing (V3.0)
// TI File $Revision: /main/7 $
// Checkin $Date: January 20, 2005 10:05:26 $
//###########################################################################
//
// FILE: CAN_Boot.c
//
// TITLE: 280x CAN Boot mode routines
//
// Functions:
//
// Uint32 CAN_Boot(void)
// void CAN_Init(void)
// Uint32 CAN_GetWordData(void)
//
// Notes:
// BRP = 2, Bit time = 10. This would yield the following bit rates with the
// default PLL setting:
// XCLKIN = 40 MHz SYSCLKOUT = 20 MHz Bit rate = 1 Mbits/s
// XCLKIN = 20 MHz SYSCLKOUT = 10 MHz Bit rate = 500 kbits/s
// XCLKIN = 10 MHz SYSCLKOUT = 5 MHz Bit rate = 250 kbits/s
// XCLKIN = 5 MHz SYSCLKOUT = 2.5MHz Bit rate = 125 kbits/s
//###########################################################################
// $TI Release:$
// $Release Date:$
//###########################################################################
#include "DSP280x_Device.h"
#include "280x_Boot.h"
// Private functions
void CAN_Init(void);
Uint16 CAN_GetWordData(void);
// External functions
extern void CopyData(void);
extern Uint32 GetLongData(void);
extern void ReadReservedFn(void);
//#################################################
// Uint32 CAN_Boot(void)
//--------------------------------------------
// This module is the main CAN boot routine.
// It will load code via the CAN-A port.
//
// It will return a entry point address back
// to the InitBoot routine which in turn calls
// the ExitBoot routine.
//--------------------------------------------
Uint32 CAN_Boot()
{
Uint32 EntryAddr;
// If the missing clock detect bit is set, just
// loop here.
if(SysCtrlRegs.PLLSTS.bit.MCLKSTS == 1)
{
for(;;);
}
// Assign GetWordData to the CAN-A version of the
// function. GetWordData is a pointer to a function.
GetWordData = CAN_GetWordData;
CAN_Init();
82 Bootloader Code Overview SPRU722C November 2004 Revised October 2006
Submit Documentation Feedback

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320*2801 Series and is the answer not in the manual?

Texas Instruments TMS320*2801 Series Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320*2801 Series
CategoryComputer Hardware
LanguageEnglish

Summary

Chapter 1 Boot ROM Overview

Boot ROM Memory Map

Defines the memory map of the on-chip boot ROM, detailing locations for math tables and bootloader functions.

On-Chip Boot ROM IQ Math Tables

Lists and describes the IQ math tables within the boot ROM, essential for optimized calculations.

Chapter 2 Bootloader Features

Bootloader Functional Operation

Outlines the bootloader's primary function: transferring external code into internal memory for execution.

Bootloader Device Configuration

Details device operating modes (27x, 28x, C2xLP) configured by boot ROM software.

Bootloader Modes

Lists and explains various boot modes selected via GPIO pin configurations.

Bootloader Data Stream Structure

Describes the format and content of the data stream used for code loading by bootloaders.

SelectBootMode Function

Details how the SelectBootMode function reads GPIO pins to determine the boot mode.

SCI_Boot Function

Describes the SCI boot mode for asynchronous code transfer via the SCI-A port.

SPI_Boot Function

Details the SPI boot mode for loading code from SPI-compatible serial EEPROMs.

I2C Boot Function

Describes the I2C boot mode for loading code from an I2C EEPROM.

eCAN Boot Function

Explains the eCAN boot mode for asynchronous code transfer via the eCAN-A port.

Chapter 3 Building the Boot Table

The C2000 Hex Utility

Guides users on using the hex2000 utility to generate bootable data streams and boot tables.

Chapter 4 Bootloader Code Overview

Boot ROM Version and Checksum Information

Explains how to find the boot ROM version number, release date, and checksum.

Bootloader Code Revision History

Details the changes and improvements made across different bootloader code revisions.

Appendix A Revision History

Related product manuals