This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cmd file for I2C

Genius 4530 points


Hi,

I have the following cmd file

-stack 0x400

MEMORY
 {
   CACHE_L1P   : origin = 0x11e08000,  len = 0x8000
   CACHE_L1D   : origin = 0x11f10000,  len = 0x8000
   DDR2        : origin = 0x80000000,  len = 0x10000000
   L1DSRAM     : origin = 0x11f04000,  len = 0xc000
   IRAM        : origin = 0x11800000,  len = 0x10000
   ARM_RAM     : origin = 0x10008000,  len = 0x4000
}

SECTIONS
{
    .cinit      >       DDR2
    .text       >       IRAM
    .stack      >       DDR2
    .bss        >       DDR2
    .data       >       DDR2
    .far        >       DDR2
    .sysmem     >       DDR2
    .tables     >       DDR2
    .cio        >       DDR2
    .imgbuf     >       DDR2
}

 

Using this cmd file, when i try to implement I2C on DM6446 EVM board,

the reserved registers get over written, and I get a valid output only when I disconnect the emulator.

Can anyone point out the fault in my cmd file?

Thanks,

Sidharth

  • I am not an expert on CCS, but have used the following in the past w/ DM6446 EVM

    -stack          0x00000800      /* Stack Size */
    -heap           0x00000800      /* Heap Size */

    MEMORY
    {
        IRAM:       o = 0x00000000  l = 0x00004000
        DRAM:       o = 0x00008000  l = 0x00004000
        AEMIF:      o = 0x02000000  l = 0x02000000
        DDR2:       o = 0x80000000  l = 0x10000000
    }

    SECTIONS
    {
        .bss        >   DDR2
        .cinit      >   DDR2
        .cio        >   DDR2
        .const      >   DDR2
        .stack      >   DDR2
        .sysmem     >   DDR2
        .text       >   DDR2
        .ddr2       >   DDR2
    }