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.

ccs5.5运行工程出现以下错误怎么解?



Description Resource Path Location Type
program will not fit into available memory. run placement with DCMotor_TI C/C++ Problem
program will not fit into available memory. placement with DCMotor_TI C/C++ Problem
no valid memory range(NULL) available for placement of ".text" DCMotor_TI C/C++ Problem
unresolved symbols remain DCMotor_TI C/C++ Problem
unresolved symbol _RamfuncsRunStart, first referenced in ./DCMotor.obj DCMotor_TI C/C++ Problem
unresolved symbol _RamfuncsLoadStart, first referenced in ./DCMotor.obj DCMotor_TI C/C++ Problem
unresolved symbol _RamfuncsLoadSize, first referenced in ./DCMotor.obj DCMotor_TI C/C++ Problem
cannot find file DCMotor_TI C/C++ Problem
errors encountered during linking; "Example_F2802xEPwmTripZone.out" not DCMotor_TI C/C++ Problem

  • 程序空间不足,需要CMD对代码存储空间重分配, 三个变量RamfuncsRunStart,RamfuncsLoadStart, RamfuncsLoadSize需要在main.c中使用extern声明才能使用.

    extern Uint16 RamfuncsLoadStart;
    extern Uint16 RamfuncsLoadEnd;
    extern Uint16 RamfuncsRunStart;

    cannot find file DCMotor_TI C/C++ Problem    没法找到文件的问题,看看是文件路径问题还是没有包含进来

    你在主菜单View->Problems中可以看到出错的详细描述.


  • 请问这个存储空间该如何分配呢?针对C6678。现在开发板还未到。build后,SECTIONS下面的都x掉了,出现

    "../C66x.cmd", line 60: warning: memory range not found: L2SRAM on page 0
    "../C66x.cmd", line 60: error: no valid memory range(null) available for
    placement of ".stack"

    ...

    这样的错误,下面是贴出来的cmd,请问是修改标色的部分么?

    -heap 0x4000/* 16KB 0x4000*/
    -stack 0x4000/* 16KB 0x4000*/

    MEMORY
    {
    #ifdef C66_PLATFORMS
    /*
    * L2SRAM Core internal address
    * if other cores or peripherals access, change to global address
    * Core 0: 0x10800000 ~ 0x1087FFFF
    * Core 1: 0x11800000 ~ 0x1187FFFF
    * Core 2: 0x12800000 ~ 0x1287FFFF
    * Core 3: 0x13800000 ~ 0x1387FFFF
    * Core 4: 0x14800000 ~ 0x1487FFFF
    * Core 5: 0x15800000 ~ 0x1587FFFF
    * Core 6: 0x16800000 ~ 0x1687FFFF
    * Core 7: 0x17800000 ~ 0x1787FFFF
    */
    L2SRAM o = 0x00800000 l = 0x00080000 /* 512KB L2SRAM 0x00080000,,,0x02000000:32M*/
    /* Core0 running IBL will take up 0x0C000000 ~ 0x0C01FFFF(128KB), reserve at here! */
    MSMCSRAM o = 0x0C020000 l = 0x003E0000 /* 3968KB MSMCSRAM */
    DDR3 o = 0x80000000 l = 0x40000000 /* 1GB DDR3 */
    #endif
    #ifdef C665_PLATFORMS
    /*
    * L2SRAM Core internal address
    * if other cores or peripherals access, change to global address
    * Core 0: 0x10800000 ~ 0x1087FFFF
    * Core 1: 0x11800000 ~ 0x1187FFFF (only C6657)
    */
    L2SRAM o = 0x00800000 l = 0x00100000 /*0x00100000 1MB L2SRAM */
    /* Core0 running IBL will take up 0x0C000000 ~ 0x0C01FFFF(128KB), reserve at here! */
    MSMCSRAM o = 0x0C010000 l = 0x000F0000 /* 896KB MSMCSRAM */
    DDR3 o = 0x80000000 l = 0x20000000 /* 512MB DDR3 */
    #endif
    }

    SECTIONS
    {
    .text:_c_int00 > L2SRAM /* program entry address */
    .text > L2SRAM /* executable code */
    .cinit > L2SRAM /* tables which initialize global variables */
    .const > L2SRAM /* initialized global constant */
    .switch > L2SRAM /* jump tables for certain switch statements */
    .stack > L2SRAM /* system stack */
    .data > L2SRAM /* initialized global data */
    .far > L2SRAM /* far initialized global constant */
    .fardata > L2SRAM /* far uninitialized global and global variables */
    .cio > L2SRAM /* buffer for stdio functions */
    .sysmem > L2SRAM /* malloc heap */

    GROUP
    {
    .neardata /* far uninitialized global and global variables */
    .rodata /* global static constant */
    .bss /* uninitialized global variables*/
    } > L2SRAM
    }