Generally, the default image size of the wince system is 32 MB. Generally, this size is enough. However, if many components are added, the generated NK. Bin will exceed 32 MB, and some modifications are required.
1. Check the Configuration Attribute "run-time image can be larger than 32 MB (imgram64 = 1)" of the project.
2. Modify loader. h under eboot.
# Define rom_ramimage_size 0x02300000
Here I adjust the image to 35 MB
3. Modify config. bib.
NK 80200000 02300000 ramimage
Ram 82500000 01b00000 Ram
......
......
Romstart = 80200000
Romwidth = 32
Romsize = 02300000
Modify rules:
NK start 80200000 starts with image and corresponds to eboot.
NK size 2300000 is the image size, which corresponds to ebbot
Ram start 82500000 is the ram start address, nkstart + nksize = 82500000
Ram size 01b00000 is the ram size, 84000000 (64 m flash)-ramstart = 01b00000
Romstart = nkstart
Romsize = nksize
From this, we can see that if NK is increased, Ram will be reduced. In addition, romsize is used to set the size of NK. nbx.
At this time, as long as your kernel does not exceed 35 MB, it will be OK.
In addition, codewarrior friends on csdn suggested putting some big components (such as Chinese characters) libraries into the user store (such as SD card and flash) to reduce the kernel size. This is also a good solution, when loading NK, You need to load it to the user store. Note that the driver of the storage device that saves the font should be loaded before loading the display driver. Otherwise, the Chinese font cannot be loaded. Save the font to the storage device in the registry because the driver of the storage device has been loaded for a long time.
Address: http://www.cnblogs.com/feishanm/archive/2009/08/04/1538284.html