我用的TMS320C6748芯片,原本CMD文件把所有的section定义在SHRAM中,但是在执行一段数据处理程序的时候,总是自动退出,即exit.c中的abort()程序,我查了一下可能是程序运行RAM不够,然后我把所有的section定义在DDR2中,但是程序能够执行但是无法正常执行,同时还有很多编译警告。如下,
warning #10281-D: Section ".bss" requires a STATIC_BASE relative relocation, but is located at 0xc0647200, which is probably out of range of the STATIC_BASE. STATIC_BASE is located at 0xc0638bf8. Might be required to correct placement of ".bss" so it lies within 0x8000 of the STATIC_BASE.
warning #10281-D: Section ".neardata" requires a STATIC_BASE relative relocation, but is located at 0xc0647220, which is probably out of range of the STATIC_BASE. STATIC_BASE is located at 0xc0638bf8. Might be required to correct placement of ".neardata" so it lies within 0x8000 of the STATIC_BASE.
warning #10281-D: Section ".bss" requires a STATIC_BASE relative relocation, but is located at 0xc0647200, which is probably out of range of the STATIC_BASE. STATIC_BASE is located at 0xc0638bf8. Might be required to correct placement of ".bss" so it lies within 0x8000 of the STATIC_BASE.
warning #10281-D: Section ".neardata" requires a STATIC_BASE relative relocation, but is located at 0xc0647220, which is probably out of range of the STATIC_BASE. STATIC_BASE is located at 0xc0638bf8. Might be required to correct placement of ".neardata" so it lies within 0x8000 of the STATIC_BASE.
请问一下如何解决?急求!!
Shine:
看一下cmd文件是怎么改的?改到DDR2的空间对了吗?
feng yuan2:
回复 Shine:
您好,我现在把所有的都改成段都定义在DDR2中,上面的警告没有了。但是程序一执行到我自己写的数据处理程序的时候就进入abort()中。附件是我的CMD文件