Windows CE编译问题的解决(1)

1.Ram start overlaps rom binary编译问题的解决

编译WinCE时,经常会出现这样的问题,选择Release的版本,编译没有问题,编译Debug的时候报错:Ram start overlaps rom binary。
原因:因为编译Debug版本时文件太大,超过29M时就会报错,原因是ROM和RAM空间的冲突。

国外网站找到的解决方法:

When I build my Windows CE image in Platform Builder I get the following error:

Error: Ram start overlaps rom binary
Rom end : 0x81217d4c
Ram start: 0x8105c000
NK
physfirst 800e0000
physlast 81217d4c

How can I fix this?

 

Problem:

This error is given because you're image size is bigger than the allowed size contained in the XXXXX_XX_config_bib.h file. The specific file for your card engine can be found at the following path:

WINCE500PLATFORMLoCEsrcinccard_engine

Resolution:

There are two options to resolving this:

1) Decrease your image size by removing components that are taking up a lot of space. If you have unecessary features you can take them out and Re-Sysgen your platform.

2) If you require a larger image than the default size of 15MB you can edit the config_bib.h file. Please refer to the RAM build memory map for an explanation on how memory is broken down while Windows CE is running.

Specifically these lines are what you will need to edit.

#define RAM_BUILD_RAM_START 0x81000000
#define RAM_BUILD_RAM_SIZE 0x00C00000

#define RAM_BUILD_IMAGE_START 0x800E0000
#define RAM_BUILD_IMAGE_SIZE 0x00F00000

For example, the edited configuration below will allow for a 16MB image to be built.

#define RAM_BUILD_RAM_START 0x82000000
#define RAM_BUILD_RAM_SIZE 0x00B00000

#define RAM_BUILD_IMAGE_START 0x800E0000
#define RAM_BUILD_IMAGE_SIZE 0x01000000

我的解决方法:
使用环境WinCE4.2,打开开发环境,打开config.bib文件,改一下下面这句话:
;;; Tarzan Debug mode
 NK   8C200000  02600000  RAMIMAGE
; NK   80040000  01E00000  RAMIMAGE
; CHAIN   81E40000  00001000  RESERVED
; DRIVERS   81E41000  001BF000  RAMIMAGE

; RESERVE       8df00000  00080000
; RAM           8c200000  01D00000  RAM
 RAM           8F800000  01700000  RAM//就是这一句,原来是8E800000,现在改为8F800000

重新编译之后问题解决。 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值