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.

I have problem with memory allocation for TMS320F28035 (Piccolo series) controller......I need to allocate .text --> 0x001900 and .ebss ---> 0x00600

Other Parts Discussed in Thread: TMS320F2812, TMS320F28035, CCSTUDIO

I have an application code written for tms320f2812 processor......i ported that code to tms320f28035(picocolo series) controller.......

I have problem with memory allocation......(My code contains .text = 0x001800 and .ebss = 0x000600).....

i want to run this code in RAM Mode......I modified existing 28035 (2805_RAM_Lnk.Cmd) command file like this......

PAGE 0 :

BEGIN : origin = 0x000000, length = 0x000002

RAMM0 : origin = 0x000050, length = 0x0003B0

RAML0L1L2L3 : origin = 0x008000, length = 0x001700

RESET : origin = 0x3FFFC0, length = 0x000002

IQTABLES : origin = 0x3FE000, length = 0x000B50

IQTABLES2 : origin = 0x3FEB50, length = 0x00008C

IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA

BOOTROM : origin = 0x3FF27C, length = 0x000D44

PAGE 1 :

BOOT_RSVD : origin = 0x000002, length = 0x00004E

RAMM1 : origin = 0x000480, length = 0x000380

DRAML3 : origin = 0x009800, length = 0x000800

}

SECTIONS { codestart : > BEGIN, PAGE = 0

ramfuncs : > RAMM0 PAGE = 0

.text : > RAML0L1L2L3, PAGE = 0

.cinit : > RAMM0, PAGE = 0

.pinit : > RAMM0, PAGE = 0

.switch : > RAMM0, PAGE = 0

.reset : > RESET, PAGE = 0, TYPE = DSECT

.stack : > RAMM1, PAGE = 1

.econst : > RAML2, PAGE = 1

.ebss : > DRAML3, PAGE = 1

.econst : > DRAML3, PAGE = 1

.esysmem : > DRAML3, PAGE = 1

IQmath : > RAML0L1L2L3, PAGE = 0

IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD

}

error:Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x1331: Cannot access memory address 0x9000

Kindly help me to come out from this issue.....

  • Balaji,

    Everything in your .cmd file looks fine.  (As an FYI you have 0x0100 of L3 that you are not allocating for use.)

    From the error you have gotten my guess would be that the IDE is assuming that you are using a different target than the F28035 (specifically a .gel file issue).  If you are using CCS3.3, I would run the "Setup CCStudio v3.3" executable by going to "File->Launch Setup".  Make sure that this program is using your emulator and is connected with a F28035 processor which uses the F28035.gel file.

     

    Thank you,
    Brett

  • Hi Balaji,

     

    As Brett pointed out you probably have CCS memory map wrong. The memory map is usually set up with .gel files, you should check them and correct them accordingly. Or you can turn of the memory map feature of the CCS.

     

    Regards, Mitja