首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

Error:L1004:Segment start Address expeted是怎么回事?

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. */

有志青年!
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文件中间出现的红色标注的应该不是默认生成的
哦,非常感谢!
有志青年!
返回列表