各位大虾好,俺是vxworks方面的新手,正在做arm 44b0x的bsp,结果遇到如下问题:
在冷启动时,romstart.c中需要将高端的ram清零,可是我的程序却死在
fillLongs ((UINT *)((UINT)romInit + ROM_COPY_SIZE),
((UINT)SYS_MEM_TOP - ((UINT)romInit + ROM_COPY_SIZE))
/ sizeof(long), 0);
请问为什么?谢谢了
btw:我的ram是16m
config。h中的定义如下
#undef LOCAL_MEM_AUTOSIZE /* run-time memory sizing */
#define LOCAL_MEM_SIZE 0x01000000 /* 16M */
#define USER_RESERVED_MEM 0x0 /* see sysMemTop() */
#define DRAM_TYPE 1 /* 1 - SDRAM, 0 - EDO DRAM */
#define ROM_BASE_ADRS 0x00000000 /* base of Flash/EPROM 2m MB */
#define ROM_TEXT_ADRS ROM_BASE_ADRS /* code start addr in ROM */
#define ROM_SIZE 0x00100000 /* size of ROM holding VxWorks 512k */
#define ROM_COPY_SIZE ROM_SIZE
#define ROM_SIZE_TOTAL 0x00200000 /* total size of ROM 2MB */
#define RAM_LOW_ADRS 0x0c001000 /* VxWorks image entry point */
#define RAM_HIGH_ADRS 0x0c500000 /* RAM address for ROM boot */