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.

请问代码大小超过.text段分配的空间如何解决?



编写程序出现了如下的错误提示:

Description Resource Path Location Type
<a href="file:/C:/ti2/ccsv5/tools/compiler/dmed/HTML/10099.html">#10099-D</a> program will not fit into available memory. load placement with alignment/blocking fails for section "ramfuncs" size 0x4d page 0. Available memory ranges: F28027.cmd /Example_28027_HRPWM_Menu line 119 C/C++ Problem

请问如何解决?

  • Di Jiao,

    应该是ramfuncs段的存储空间不够,而你的工程中分配了太多的内容给它。解决的方法一个是减少分配到这个段的函数,另一个是这个段映射的ram空间增大。

    Eric

  • 我也遇到了类似的问题。ramfuncs的内容是在程序烧入FLASH后需要搬移到RAM运行的程序段,照道理ramfuncs应该是通过memcpy(&RamfuncsRunStart,&RamfuncsLoadStart,(Size_t)&RamfuncsLoadSize)函数自动识别大小的。但是现在会经常报错,定位在

    ramfuncs :LOAD = FLASHG,这里,可是通过.map又发现FLASHG还有很多剩余空间。可是只要内容一多就会报出:program will not fit into available memory.

    请问到底是哪里的问题??楼主后来怎么解决的?