这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » m5272 BootRom生成的问题!急等老大们回答!!

共4条 1/1 1 跳转至

m5272 BootRom生成的问题!急等老大们回答!!

菜鸟
2005-04-18 02:56:39     打赏

我现在想生成一个在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]



关键词: m5272     BootRom     生成     问题     老大     回答    

菜鸟
2005-04-19 04:05:00     打赏
2楼
vxwork需要打补丁

菜鸟
2005-04-20 19:16:00     打赏
3楼

啊,还需要补丁吗?哪里有补丁下啊!!!

内存设置如下:

/* memory configuration */

/* to determine the actual memory size use sysMemTop() */

#define LOCAL_MEM_LOCAL_ADRS 0x00000000 #define LOCAL_MEM_SIZE 0x01000000 /* 4Meg memory is default */ #define USER_RESERVED_MEM 0x00000000 /* see sysMemTop() */

/* * The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_HIGH_ADRS, and RAM_LOW_ADRS * are defined * in config.h and Makefile * The definitions for these constants must be identical. */

#define RAM_LOW_ADRS 0x00001000 /* base address of RAM */ #define ROM_BASE_ADRS 0xffc00000 /* base address of ROM */ #define ROM_TEXT_ADRS (ROM_BASE_ADRS + 8) /* with PC & SP */ #define ROM_WARM_ADRS (ROM_TEXT_ADRS + 8) /* warm reboot entry */ #define RAM_HIGH_ADRS 0x01000000 /* RAM address for ROM boot */ /* note: Rom size defined below assumes that half of the space is * reserved for the onboard Monitor/Debug firmware. This space * could be used by the application code if an alternate means of * loading flash is available (e.g. visionCLICK) */ #define ROM_SIZE 0x00200000 /* 1Meg ROM space (less 264 NV ROM)*/ #define MONITOR_ROM_SIZE 0x00100000 /* Rom space reserved for Mot debug */

#define EXTERNAL_SRAM_BASE 0x30000000 /* base of external SRAM */ #define EXTERNAL_SRAM_SIZE 0x01000000 /* size of external SRAM */ #define SDRAM_BASE 0x00000000 /* base of SDRAM */ #define NV_RAM_SIZE 0x00000108 /* size of NV_RAM = 264 */

/* Flash type */ #define AM29LV160

/* Internal addresses */ #define SIM_BASE 0x10000000 /* SIM base */ #define INTERNAL_SRAM_BASE 0x20000000 /* base of internal SRAM */


菜鸟
2005-04-21 03:39:00     打赏
4楼

还是没有用,设为

#define RAM_HIGH_ADRS 0x08000000 /* RAM address for ROM boot */

问题依然!!

[align=right][color=#000066][此贴子已经被作者于2005-4-20 20:30:11编辑过][/color][/align]

共4条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]