Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE, TMS320F28062F
/*
// TI File $Revision: /main/3 $
// Checkin $Date: March 3, 2011 13:45:43 $
//###########################################################################
//
// FILE: 28069_RAM_lnk.cmd
//
// TITLE: Linker Command File For F28069 examples that run out of RAM
//
// This ONLY includes all SARAM blocks on the F28069 device.
// This does not include flash or OTP.
//
// Keep in mind that L0,L1,L2,L3 and L4 are protected by the code
// security module.
//
// What this means is in most cases you will want to move to
// another memory map file which has more memory defined.
//
//###########################################################################
// $TI Release: 2806x C/C++ Header Files V1.10 $
// $Release Date: April 7, 2011 $
//###########################################################################
*/
/* ======================================================
// For Code Composer Studio V2.2 and later
// ---------------------------------------
// In addition to this memory linker command file,
// add the header linker command file directly to the project.
// The header linker command file is required to link the
// peripheral structures to the proper locations within
// the memory map.
//
// The header linker files are found in <base>\F2806x_headers\cmd
//
// For BIOS applications add: F2806x_Headers_BIOS.cmd
// For nonBIOS applications add: F2806x_Headers_nonBIOS.cmd
========================================================= */
/* ======================================================
// For Code Composer Studio prior to V2.2
// --------------------------------------
// 1) Use one of the following -l statements to include the
// header linker command file in the project. The header linker
// file is required to link the peripheral structures to the proper
// locations within the memory map */
/* Uncomment this line to include file only for non-BIOS applications */
/* -l F2806x_Headers_nonBIOS.cmd */
/* Uncomment this line to include file only for BIOS applications */
/* -l F2806x_Headers_BIOS.cmd */
/* 2) In your project add the path to <base>\F2806x_headers\cmd to the
library search path under project->build options, linker tab,
library search path (-i).
/*========================================================= */
/* Define the memory block start/length for the F2806x
PAGE 0 will be used to organize program sections
PAGE 1 will be used to organize data sections
Notes:
Memory blocks on F28069 are uniform (ie same
physical memory) in both PAGE 0 and PAGE 1.
That is the same memory region should not be
defined for both PAGE 0 and PAGE 1.
Doing so will result in corruption of program
and/or data.
Contiguous SARAM memory blocks can be combined
if required to create a larger memory block.
*/
MEMORY
{
PAGE 0 :
BEGIN : origin = 0x000000, length = 0x000002 // BEGIN is used for the "boot to SARAM" bootloader mode
RAMM0 : origin = 0x000050, length = 0x0003B0
RAML0_L3 : origin = 0x008000, length = 0x002000 // on-chip RAM block RAML0-L3
L4SARAM : origin = 0x00A000, length = 0x002000 /* L4 SARAM, CSM secure */
RESET : origin = 0x3FFFC0, length = 0x000002
FPUTABLES : origin = 0x3FD590, length = 0x0006A0 // FPU Tables in Boot ROM
IQTABLES : origin = 0x3FDC30, length = 0x000B50 // IQ Math Tables in Boot ROM
IQTABLES2 : origin = 0x3FE780, length = 0x00008C // IQ Math Tables in Boot ROM
IQTABLES3 : origin = 0x3FE80C, length = 0x0000AA // IQ Math Tables in Boot ROM
BOOTROM : origin = 0x3FF3B0, length = 0x000C10
OTP (R) : origin = 0x3D7800, length = 0x000400 // OTP
FLASH_ABCDEFGH (R) : origin = 0x3D8000, length = 0x01FF80 // FLASH, All sectors combined
CSM_RSVD (R) : origin = 0x3F7F80, length = 0x000076 // Part of FLASH Sector A. Reserved when CSM is in use.
BEGIN_FLASH (R) : origin = 0x3F7FF6, length = 0x000002 // Part of FLASH Sector A. Used for "Jump to flash" bootloader mode.
PASSWORDS (R) : origin = 0x3F7FF8, length = 0x000008 // Part of FLASH Sector A. CSM password locations.
PAGE 1 :
BOOT_RSVD : origin = 0x000002, length = 0x00004E // Part of M0, BOOT rom will use this for stack
RAMM1 : origin = 0x000400, length = 0x000400 // on-chip RAM block M1
RAML4_5 : origin = 0x00A000, length = 0x004000 // on-chip RAM block L4 to L5
ECANA : origin = 0x006000, length = 0x000040 // eCAN-A Control and Status Registers
ECANA_LAM : origin = 0x006040, length = 0x000040 // eCAN-A Local Acceptance Masks
ECANA_MOTS : origin = 0x006080, length = 0x000040 // eCAN-A Message Object Time Stamps
ECANA_MOTO : origin = 0x0060C0, length = 0x000040 // eCAN-A Object Time-Out Registers
ECANA_MBOX : origin = 0x006100, length = 0x000100 // eCAN-A Milboxes
}
SECTIONS
{
// Program memory (PAGE 0) sections
.text : > FLASH_ABCDEFGH, PAGE = 0
.cinit : > FLASH_ABCDEFGH, PAGE = 0
.pinit : > FLASH_ABCDEFGH, PAGE = 0
.switch : > FLASH_ABCDEFGH, PAGE = 0
.reset : > RESET, PAGE = 0, TYPE = DSECT // not used,
// Data Memory (PAGE 1) sections
.stack : > RAMM1, PAGE = 1
.ebss : > RAML4_5, PAGE = 1
.econst : > RAML4_5, PAGE = 1
.esysmem : > RAML4_5, PAGE = 1
// User Defined Sections
codestart : > BEGIN_FLASH, PAGE = 0 // Used by file CodeStartBranch.asm
csm_rsvd : > CSM_RSVD, PAGE = 0 // Used by file Passwords.asm
passwords : > PASSWORDS, PAGE = 0 // Used by file Passwords.asm
ramfuncs : > RAMM0, PAGE = 0
secureRamFuncs : LOAD = FLASH_ABCDEFGH, PAGE = 0 // Used by file Flash.c
RUN = L4SARAM, PAGE = 0 // Load to flash, run from CSM secure RAM
LOAD_START(RamfuncsLoadStart),
LOAD_SIZE(RamfuncsLoadEnd),
RUN_START(RamfuncsRunStart)
IQmath : > RAML0_L3, PAGE = 0
IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD
// Allocate FPU math areas:
FPUmathTables : > FPUTABLES, PAGE = 0, TYPE = NOLOAD
// Peripheral Frame 1 Register Structures
ECanaRegsFile : > ECANA, PAGE = 1
ECanaLAMRegsFile : > ECANA_LAM, PAGE = 1
ECanaMboxesFile : > ECANA_MBOX, PAGE = 1
ECanaMOTSRegsFile : > ECANA_MOTS, PAGE = 1
ECanaMOTORegsFile : > ECANA_MOTO, PAGE = 1
// DMARAML4_6 : > RAML4_6, PAGE = 1
/* Uncomment the section below if calling the IQNexp() or IQexp()
functions from the IQMath.lib library in order to utilize the
relevant IQ Math table in Boot ROM (This saves space and Boot ROM
is 1 wait-state). If this section is not uncommented, IQmathTables2
will be loaded into other memory (SARAM, Flash, etc.) and will take
up space, but 0 wait-state is possible.
*/
/*
IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD
{
IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)
}
*/
/* Uncomment the section below if calling the IQNasin() or IQasin()
functions from the IQMath.lib library in order to utilize the
relevant IQ Math table in Boot ROM (This saves space and Boot ROM
is 1 wait-state). If this section is not uncommented, IQmathTables2
will be loaded into other memory (SARAM, Flash, etc.) and will take
up space, but 0 wait-state is possible.
*/
/*
IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD
{
IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)
}
*/
}
/*
//===========================================================================
// End of file.
//===========================================================================
*/
Hello,
When I want to do a flash boot with my project, I'm having building errors.
I don't know how to sort them out (it's the first time i'm using a C2000).
Below, you will find what I have already done :
1) In the properties of CCS, I had the predifined symbol "FLASH"
2) I had "CodeStartBranch.asm" in my project
3) I modified the original linker command file (please see it attached .txt instead of .cmd)
4) GPIO34 (boot PIN) and GPIO37 (TDO) are both high to boot on FLASH
Your help would be very appreciated.
Best Regards,





