请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MSP430F5419A 您好!
我们遇到了 MSP430F5419A 的"区域 ROM 溢出"问题。
我们的实际代码大小小于42K、 MSP430F5419A 支持高达128K 的内存。
我们使用的是 GCC 编译器4.6.3.
请提供建议。
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.
您好!
我们遇到了 MSP430F5419A 的"区域 ROM 溢出"问题。
我们的实际代码大小小于42K、 MSP430F5419A 支持高达128K 的内存。
我们使用的是 GCC 编译器4.6.3.
请提供建议。
您好!
我已经检查了 ldscript 文件,这些段没有重叠。
请检查以下文件以了解更多详细信息。 在这里、我的代码大小超过了41K 的 ROM 大小限制、这就是显示重叠消息的原因。
存储器{
SFR :origin = 0x0000、length = 0x0010 /* end=0x0010、size 16 */
peripheral_8bit:origin = 0x0010、length = 0x00f0 /* end=0x0100、size 240 */
peripheral_16bit:origin = 0x0100、length = 0x0100 /* end=0x0200、size 256 *
/ BSL :origin = 0x1000、length = 0x0800 /* end=0x1800、size 2K 为4个512字节段*/
信息存储器 :origin = 0x1800、length = 0x0200 // end = 0x1a00、size 512 as 4 128字节数据段*/
infod :origin = 0x1800、length = 0x0080 /* end=0x1880、size 128 *
/ infoc :origin = 0x1880、length = 0x0080 /* end=0x1900、size 128 *
/ infob :origin = 0x1900、length = 0x0080 //* end=0x1980、size 128 *
/ infoa :origin = 0x1980、length = 0x0080 /* end=0x1a00、size 128 */
ram (WX) :origin = 0x1c00,length = 0x4000 /* end=0x5c00,size 16K */
ROM (Rx) :origin = 0x5c00,length = 0xa380 /* end=0x80,size 41852 */
vectors :origin = 0x80、length = 0x0080 /* end=0x10000、大小128为64个2字节段*/
far_rom :origin = 0x00010000、length = 0x00035c00 /* end=0x00045c00、size 215K */
//*其余组不存在*/
RAM2 (WX) :origin = 0x0000、length = 0x0000
ram_mirror (WX):origin = 0x0000、length = 0x0000
usbram (WX) :origin = 0x0000、length = 0x0000
}
region_alias ("region_text"、ROM);
region_alias ("region_data"、ram);
region_alias ("region_FAR_ROM"、 far_rom);
提供(_info_seger_size = 0x80);
提供(_infod = 0x1800);
提供(_infocd = 0x1880);
提供(_infob = 0x1900);
提供(_infoa = 0x1980);
以黄色标记的部分表示开始位置、使用长度可以计算结束位置。
它不会重叠。
请提供建议。