I have written an application for DSP side of OMAP l138 processor and tested and debugged with emulator. Now I want to flash the code into NAND flash of OMAP LCDK kit which is 16 bit wide.
But I face the following problem : My application .out file is 360Kb size where as .bin file generate using out2rprc tool its size becomes 96Kb.I donot have any idea whether this should be a problem or not ? Then I flash the code using the tools provided by TI in the Starterware for OMAP. But the application is not booting up but it is observed that the bootloader is up from the debug messages on the UART terminal and application is not running.
I experimented with raster application code and it is booting fine on the board So all settings and hardware is fine but some problem is there which I am not able to find out.
The cmd file which I am using is customized with various section which is attached here for anybody's reference
I commented out the shared memory part from the .cmd file because as of now I am booting it without arm application.
Please see the file and comment as soon as possible
the cmd file has following contents:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/* ======================================================================= */
/* lnk.cmd -- Linker command file */
/* */
/* Rev 0.0.1 */
/* */
/* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ */
/* */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in the */
/* documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names of */
/* its contributors may be used to endorse or promote products derived */
/* from this software without specific prior written permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/* ======================================================================= */
-c
-stack 0x1000
-heap 0x1000
// ============================================================================
// Specify the System Memory Map
// ============================================================================
#define IPC_ARM_START 0x80000000
#define IPC_ARM_SIZE 0x10
#define IPC_DSP_START IPC_ARM_START + IPC_ARM_SIZE
#define IPC_DSP_SIZE 0x10
#define SHARED_IRAM_START IPC_ARM_START + IPC_ARM_SIZE + IPC_DSP_SIZE
#define SHARED_IRAM_SIZE 0x1FFFF - (IPC_ARM_SIZE + IPC_DSP_SIZE)
/* MODULE MEM */
MEMORY {
CACHE_L2RAM : origin = 0x11800000, len = 0x40000
CACHE_L1P : origin = 0x11e00000, len = 0x8000
CACHE_L1D : origin = 0x11f00000, len = 0x8000
SDRAM : origin = 0xC4000000, len = 0x04000000
// IPC_ARM: o = IPC_ARM_START l = IPC_ARM_SIZE /* 16 bytes for ARM */
// IPC_DSP: o = IPC_DSP_START l = IPC_DSP_SIZE /* 16 bytes for DSP */
// SHARED_MEM : o = SHARED_IRAM_START l = SHARED_IRAM_SIZE /* Remaining IntRAM */
}
SECTIONS
{
.kernel: {
dsplib*<*.o*> (.text:optimized) { SIZE(_kernel_size) }
} load > SDRAM
.text:_c_int00: align = 1024 > SDRAM
.text:touch: load >> SDRAM
GROUP (NEAR_DP_RELATIVE)
{
.neardata
.rodata
.bss
} load > SDRAM
.far: load >> CACHE_L2RAM
.fardata: load >> CACHE_L2RAM
.data: load >> SDRAM
.switch: load >> SDRAM
.stack: load > CACHE_L2RAM
.args: load > SDRAM align = 0x4, fill = 0 {_argsize = 0x200; }
.sysmem: load > SDRAM
.cinit: load > SDRAM
.const: load > SDRAM START(const_start) SIZE(const_size)
.pinit: load > SDRAM
.cio: load >> SDRAM
// ipc_arm > IPC_ARM
// ipc_dsp > IPC_DSP
xdc.meta: load >> SDRAM, type = COPY
}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
With Thanks and Regards
KAUSHAL KUMAR