我现在想生成一个在m5272下可以烧写到flash中的BootRom,按书上的方法,将BSP模板中的m5272c3文件全部拷贝,并针对rom和ram情况修改了config.h,但每次用命令行make bootrom_uncmp.hex 时老是报“Program too big to fit in memory”的错误,不知道为什么啊!
谁可以帮我解决一下,谢谢了!!!!
编译输出如下:
G:\Tornado2.2forColdFire\target\config\my5272>make bootrom_uncmp.bin dcc -Xmake-dependency -Xincfile-missing-ignore -w -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -Xlint -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab am29lvxxx.c sysLib.c sysSerial.c G:\Tornado2.2forColdFire\target\config\my5272\all/bootConfig.c G:\Tornado2.2forColdFire\target\config\my5272\all/bootInit.c G:\Tornado2.2forColdFire\target\config\my5272\all/dataSegPad.c G:\Tornado2.2forColdFire\target\config\my5272\all/usrConfig.c G:\Tornado2.2forColdFire\target\config\my5272\all/version.c > depend.my5272 dcc -E -Xpreprocessor-lineno-off -Xmake-dependency -w -tMCF5272FS:vxworks55 -E -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab romInit.s >> depend.my5272 dcc -E -Xpreprocessor-lineno-off -Xmake-dependency -w -tMCF5272FS:vxworks55 -E -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab sysALib.s >> depend.my5272 wtxtcl g:\Tornado2.2forColdFire/host/src/hutils/bspDepend.tcl depend.my5272 dcc -c -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -Xlint -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab G:\Tornado2.2forColdFire\target\config\my5272\all\bootInit.c Invalid keyboard code specified Program too big to fit in memory copy G:\Tornado2.2forColdFire\target\config\my5272\all\bootInit.c bootInit_uncmp.c 1 file(s) copied. dcc -c -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -Xlint -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab -DUNCOMPRESS bootInit_uncmp.c Program too big to fit in memory dcc -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab -Xpreprocess-assembly -Wa,-Xmnem-all -c -c -o romInit.o romInit.s Program too big to fit in memory dcc -c -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -Xlint -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab -Xkill-opt=0x400000 G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 3644: warning (dcc:1643): narrowing or signed-to-unsigned type conversion found: int to short "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 3741: warning (dcc:1643): narrowing or signed-to-unsigned type conversion found: unsigned int to signed char "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4033: warning (dcc:1516): parameter inetAdrs is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4200: warning (dcc:1516): parameter devName is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4201: warning (dcc:1516): parameter unitNum is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4202: warning (dcc:1516): parameter startAddr is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4307: warning (dcc:1516): parameter pBootDev is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4308: warning (dcc:1516): parameter unitNum is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4309: warning (dcc:1516): parameter localAddr is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4310: warning (dcc:1516): parameter peerAddr is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4384: warning (dcc:1516): parameter pBootDev is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4385: warning (dcc:1516): parameter unitNum is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4386: warning (dcc:1516): parameter localAddr is never used "G:\Tornado2.2forColdFire\target\config\my5272\all\bootConfig.c", line 4387: warning (dcc:1516): parameter peerAddr is never used Program too big to fit in memory dcc -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab -Xpreprocess-assembly -Wa,-Xmnem-all -c -c -o sysALib.o sysALib.s Program too big to fit in memory dcc -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -Xlint -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab -c sysLib.c "sysLib.c", line 636: warning (dcc:1516): parameter intLevel is never used "sysLib.c", line 713: warning (dcc:1516): parameter motCpmAddr is never used "sysLib.c", line 731: warning (dcc:1516): parameter motCpmAddr is never used "sysLib.c", line 749: warning (dcc:1516): parameter motCpmAddr is never used "sysLib.c", line 769: warning (dcc:1521): missing return expression "sysLib.c", line 761: warning (dcc:1604): Useless assignment to variable return_status. Assigned value not used. Program too big to fit in memory dcc -c -tMCF5272FS:vxworks55 -Xmismatch-warning=2 -Xansi -Xstrings-in-text=0 -ew1554 -XO -Xsize-opt -Xmemory-is-volatile -Xlint -I/h -I. -IG:\Tornado2.2forColdFire\target\config\my5272\all -Ig:\Tornado2.2forColdFire\target/h -Ig:\Tornado2.2forColdFire\target/src/config -Ig:\Tornado2.2forColdFire\target/src/drv -DCPU=MCF5200 -DTOOL_FAMILY=diab -DTOOL=diab -o version.o G:\Tornado2.2forColdFire\target\config\my5272\all/version.c Program too big to fit in memory dld -tMCF5272FS:vxworks55 -X -N -Xgenerate-paddr -e _romInit -D_VX_START_TEXT=0x00200000 -o bootrom_uncmp romInit.o bootInit_uncmp.o version.o bootConfig.o sysALib.o sysLib.o motFecEnd.obj -Lg:\Tornado2.2forColdFire\target/lib/cf/MCF5200/diab -Lg:\Tornado2.2forColdFire\target/lib/cf/MCF5200/common -lcplus -ldiabcplus -lvxcom -lvxdcom -larch -lcommoncc -ldcc -ldrv -lnet -los -lrpc -ltffs -lvxfusion -lwdb -lwind -lwindview g:\Tornado2.2forColdFire\target/lib/libMCF5200diabvx.a g:\Tornado2.2forColdFire\target/h/tool/diab/ldscripts/link.RAM dld: Can't open file romInit. No error make: *** [bootrom_uncmp] Error 0x1
[align=right][color=#000066][此贴子已经被作者于2005-4-17 18:58:02编辑过][/color][/align]