Board logo

标题: Error:L1004:Segment start Address expeted是怎么回事? [打印本页]

作者: tiemaliu    时间: 2006-5-24 10:47     标题: Error:L1004:Segment start Address expeted是怎么回事?

用CW5。0,芯片选的mc9s08qg4,编译能过,make的时候出现


Error1004:Segment start Address expeted,指向project.prm中的


    Z_RAM                    =  READ_WRITE   0x0060 TO 0x00FF;行,project.prm是系统自己生成的啊?问题可能出在收码地方呢?project.prm文件如下:


/* This is a linker parameter file for the QG4 */


NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */


SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
    ROM                      =  READ_ONLY    0xF000 TO 0xFBFF;
    FLASH_PRO_ROM            =  READ_ONLY   
    Z_RAM                    =  READ_WRITE   0x0060 TO 0x00FF;
    RAM                      =  READ_WRITE   0x0100 TO 0x015F;
    ROM1                     =  READ_ONLY    0xFFC0 TO 0xFFCF;
END


PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
    FAR_RAM                             INTO  RAM;
    DEFAULT_ROM, ROM_VAR, STRINGS       INTO  ROM; /* ROM1 In case you want to use ROM1 as well, be sure the option -OnB=b is passed to the compiler. */
    _DATA_ZEROPAGE, MY_ZEROPAGE, DEFAULT_RAM         INTO  Z_RAM;
END



STACKSIZE 0x30


VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */


作者: seuafu2005    时间: 2006-5-24 10:59

SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
ROM = READ_ONLY 0xF000 TO 0xFBFF;
FLASH_PRO_ROM = READ_ONLY
Z_RAM = READ_WRITE 0x0060 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x015F;
ROM1 = READ_ONLY 0xFFC0 TO 0xFFCF;
END

你的prm文件中间出现的红色标注的应该不是默认生成的
作者: tiemaliu    时间: 2006-5-24 11:18

哦,非常感谢!




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0