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.

编译地址分配



大家好!

我的地址分配是:

  MSMCSRAM              0c000000   00133000  000c7ee8  0006b118  RW X
  CORETEXT1             0c133000   00037000  00034700  00002900  RW X
  CORETEXT2             0c16a000   00037000  00000000  00037000  RW X
  CORETEXT3             0c1a1000   00037000  00000000  00037000  RW X
  CORE1_L2SRAM_INT_VECT 11800000   00000100  00000000  00000100  RW X
  CORE1_L2SRAM          11800100   000ffe00  000e2d4a  0001d0b6  RW X
  CORE1_L2SRAM_BOOT_RSV 118fff00   00000100  00000000  00000100  RW X
  CORE1_L1PSRAM         11e00000   00008000  00000000  00008000  RW X
  CORE1_L1DSRAM         11f00000   00008000  00000000  00008000  RW X
  DDR3SRAM              80000000   40000000  00000000  40000000  RW X

。cfg文件中分配了:

Program.sectMap["tcp3DrvHeapSection"]   =   "CORE1_L2SRAM";//Program.platform.dataMemory;
Program.sectMap[".text"]     =   "CORETEXT1";
Program.sectMap[".main_men"]    =   "CORE1_L2SRAM";

linker.cmd中也有:

    systemHeap: load >> CORE1_L2SRAM
    tcp3DrvHeapSection: load >> CORE1_L2SRAM
    .main_men: load >> CORE1_L2SRAM

但是为什么最后。map中就是这样:

0c020000    0c020000    00004014   00000000    rw-
  0c020000    0c020000    00004000   00000000    rw- tcp3dDrvHeapSection
  0c024000    0c024000    00000014   00000000    rw- .main_mem

为什么tcp3dDrvHeapSection这个段就是不按照命令走呢?好奇怪!

有谁遇见过这样的情况么,谢谢!

Alan

  • tcp3DrvHeapSection前面加个"."修改为“.tcp3DrvHeapSection"试试,main_men的名字在cmd及cfg中写错了,应该是main_mem

    这个地址在map中对么Program.sectMap[".text"]     =   "CORETEXT1";?

  • 1).maim_mem 好了!谢谢!我太笨!

    2)但是

    0c020000    0c020000    00004000   00000000    rw-
      0c020000    0c020000    00004000   00000000    rw- tcp3dDrvHeapSection

    或者:

    0c020000    0c020000    00004000   00000000    rw-
      0c020000    0c020000    00004000   00000000    rw- .tcp3dDrvHeapSection

    还是改不过来。

    3)

    。text是好的

    0c133000    0c133000    00034700   00034700    r-x
      0c133000    0c133000    00034700   00034700    r-x .text