最近需要用的modbus,准备移植开源的freemodbus,但是在移植之后却报cmd文件错误,错误提示如下:
<Linking>
warning #10247-D: creating output section ".cio" without a SECTIONS specification
warning #10210-D: creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size
"../28335_RAM_lnk.cmd", line 137: error #10099-D: program will not fit into available memory.
run placement with alignment/blocking fails for section ".stack" size 0x300 page 1. Available memory ranges:
RAMM1 size: 0x400 unused: 0x0 max hole: 0x0error #10010: errors encountered during linking; "DSP_FreeModBus.out" not built
cmd相关内容:
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */
.stack : > RAMM1, PAGE = 1;
谁能告诉我一下这问题怎么解决呢?一天了,一直卡在这儿,freemodbus已经在其它控制器得到验证,是没有问题的。
HeiHei:
你在移植的时候是不是还用了编译器的头文件 如 include stdio.h 之类的非28335的头文件?这个原因的可能性比较大,如果是这样的,那就是因为你加入这些文件后 RAm不够用了 你要重新设置下ram的大小
最近需要用的modbus,准备移植开源的freemodbus,但是在移植之后却报cmd文件错误,错误提示如下:
<Linking>
warning #10247-D: creating output section ".cio" without a SECTIONS specification
warning #10210-D: creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size
"../28335_RAM_lnk.cmd", line 137: error #10099-D: program will not fit into available memory.
run placement with alignment/blocking fails for section ".stack" size 0x300 page 1. Available memory ranges:
RAMM1 size: 0x400 unused: 0x0 max hole: 0x0error #10010: errors encountered during linking; "DSP_FreeModBus.out" not built
cmd相关内容:
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */
.stack : > RAMM1, PAGE = 1;
谁能告诉我一下这问题怎么解决呢?一天了,一直卡在这儿,freemodbus已经在其它控制器得到验证,是没有问题的。
rookiecalf:
unused: 0x0,RAMM1 是被其他的数据用光了吧,重新分配大小,或者使用其他的存储区段