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.

编译警告:Type #10082-D placement ignored for "ramfuncs": object is placed as part of "UNION_1“

我需要把在ccs3.3平台上的代码移植到CCS6上面,编译通过了,但是有两个warning:

#10082-D placement ignored for "ramfuncs": object is placed as part of "UNION_1"         F2806.cmd

#10082-D placement ignored for "Flash28_API": object is placed as part of "UNION_1"   F2806.cmd 

请问这两个告警是什么意思,怎么才能消除这两个warning?公司产品必须零警告才可以用

有人遇到过类似的问题吗,请帮忙看一下,谢谢

  • 你打开.map看看是不是增加了UNION_1

    CMD中是不是没有   

  • hi mangui

    您好,感谢您的回复,.map文件里我搜索了下没有UNION_1,在cmd文件中有UNION,警告也就是出在这个地方,截图如下

  • 你好!我移植CCS3.3的代码也会出现各种问题。所以我一般都不移植代码,而是在CCS5.5中新建个工程,然后将CCS3.3工程文件里的.C和.H的文件拷到CCS5.5的工程下,就不会出现这些问题了。

  • 您将ramfuncs与flash_api分开来写呢?比如:

    Flash28_API:
       {
            -lFlash2810_API_V210.lib(.econst)
            -lFlash2810_API_V210.lib(.text)
       }                   LOAD = FLASHA,
                           RUN = RAML0,
                           LOAD_START(_Flash28_API_LoadStart),
                           LOAD_END(_Flash28_API_LoadEnd),
                           RUN_START(_Flash28_API_RunStart),
                           PAGE = 0

        ramfuncs            : LOAD = FLASHA,
                             RUN = RAML0,
                             LOAD_START(_RamfuncsLoadStart),
                             LOAD_END(_RamfuncsLoadEnd),
                             RUN_START(_RamfuncsRunStart),
                             PAGE = 0

  • 我是新建的,不是从3.3直接导到高版本,可能是cmd文件哪里有点问题,我会再看看,谢谢你了

  • 您好,我按照您的方式尝试改了下,报错了:

    #10099-D</a> program will not fit into available memory. run placement with alignment/blocking fails for section "ramfuncs" size 0x59c page 0. Available memory ranges: F2806.cmd 

    这是不是说分配的内存不够?

  • hitaowei 说:
    #10099-D</a> program will not fit into available memory. run placement with alignment/blocking fails for section "ramfuncs" size 0x59c page 0. Available memory ranges: F2806.cmd 

    是内存分配的问题,您根据map文件,然后修改cmd文件。