12
Return list

65

Posts

0

Resources
21
我将config.bib修改成如下:

MEMORY
    ;--------------------------------------------------------
        ; NK name
        ;--------------------------------------------------------
                #define                NKNAME           NK
IF IMGFLASH !
        IF WINCEDEBUG=debug
        ;--------------------------------------------------------
        ; NK Start address  length = 40M
        ;--------------------------------------------------------
        #define                NKSTART                80100000
        #define                NKLEN                02800000
               
        #define                RAMSTART        82900000
        #define                RAMLEN                01700000   
        ELSE
        ;-------------------------------------------------------
        ; length = 30M
        ;-------------------------------------------------------
        #define                NKSTART                80100000
        #define                NKLEN                01B00000
               
        #define                RAMSTART        81F00000
        #define                RAMLEN                02100000
        ENDIF
ELSE ;IMGFLASH
    #define NKSTART      9CB00000
    #define NKLEN        01B00000   
    #define RAMSTART     81F00000
        #define RAMLEN       06900000     
ENDIF ;IMGFLASH
;--------------------------------------------------------------
;   Name        Start       Size        Type
;   -------     --------    --------     ----
    RSVD        80000000    00050000     RESERVED
    EPKTBUF     80050000    00040000     RESERVED
    RSVD        80090000    0006F000     RESERVED
    ARGS        800FF000    00001000     RESERVED

    $(NKNAME)   $(NKSTART)  $(NKLEN)     RAMIMAGE
    RAM         $(RAMSTART) $(RAMLEN)    RAM

   
; Reserve ZBANK virtual block (No physical memory
; is required to back this virtual range).
    ZBANK                96500000        00100000         RESERVED
CONFIG
    AUTOSIZE=ON
    KERNELFIXUPS=ON

; @CESYSGEN IF !NK_NKNOCOMP
        COMPRESSION=ON
; @CESYSGEN ENDIF !NK_NKNOCOMP
; @CESYSGEN IF NK_NKNOCOMP
        COMPRESSION=OFF
; @CESYSGEN ENDIF NK_NKNOCOMP

IF IMGPROFILER   
    PROFILE=ON
ELSE
    PROFILE=OFF
ENDIF

IF IMGFLASH
    ROMSTART = 9CB00000              
    ROMSIZE  = 01B00000
    ROMWIDTH = 16

ELSE
    AUTOSIZE = ON

ENDIF

;---------------------------------------------------------------------
;   ROMFLAGS is a bitmask of options for the kernel
;   ROMFLAGS    0x0001      Disallow Paging
;   ROMFLAGS    0x0002      Not all KMode
;   ROMFLAGS    0x0010      Trust Module only
;---------------------------------------------------------------------
IF IMGTRUSTROMONLY
    IF IMGNOTALLKMODE
       ROMFLAGS=12
    ELSE
       ROMFLAGS=10
    ENDIF
ELSE
    IF IMGNOTALLKMODE
       ROMFLAGS=02
    ELSE
       ROMFLAGS=00
    ENDIF
ENDIF

其中的IMGFLASH 这个宏,我并没有在其他地方如.dat文件中定义,因为我看settings中的builder oPtion中如果选上最后一项
IMGFLASH = 1

可是系统编译报错,而且报的错并不是哪行有错误或者链接错误, 不知道是为什么,请问我这样修改config.bib是否正确呢?
This post is from Embedded System

42

Posts

0

Resources
22
报错如下:8265dffc        4   8302cffc        4   8300cffc        4   820c1ffc        4   
82e63ffc        4   82177ffc        4   82404ffc        4   82d3affc        4   
82e67ffc        4   82235ffc        4   821a0ffc        4   82d90ffc        4   
82224ffc        4   
total space 429868 in 221 ranges
Writing C:\WINCE500\PBWorkspaces\SMDK270Test\RelDir\SMDKPXA270_ARMV4I_Release\NK.bin
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
makeimg: FATAL ERROR: Command returned non-zero exit code 3 (dec).
makeimg: FATAL ERROR: Command returned non-zero exit code 3 (dec).
?????÷ C ?????í????±ê????
?í???ò?????? AC2D-DB30
C:\WINCE500\PBWorkspaces\SMDK270Test\RelDir\SMDKPXA270_ARMV4I_Release ??????
2009-06-05  15:34        24,743,067 NK.bin
               1 ??????     24,743,067 ×???
               0 ??????  4,899,254,272 ????×???
BLDDEMO: SMDK270Test build complete.

SMDK270Test - 2 error(s), 343 warning(s)
This post is from Embedded System

80

Posts

0

Resources
23
看不出來有什麼明顯的錯誤, 不過 LZ 為什麼 ROMWIDTH=16?? 可否改為 ROMWIDTH = 32 再試試看.

Paul, Chao @ Techware
This post is from Embedded System

94

Posts

0

Resources
24
ROMWIDTH=16 My FLASH is 16 bits.
This post is from Embedded System

71

Posts

0

Resources
25
Paul_Chao: Please help me check my other post, that one has posted all the wrong information, I am going crazy!!!
This post is from Embedded System

63

Posts

0

Resources
26
According to Online help

The following table shows how Romimage.exe splits the run-time image depending on the value of width.

Value  Description  
32     Romimage.exe puts the entire run-time image into one file.
16     Romimage.exe splits the run-time image into two files of even and odd 16-bit words.
8      Romimage.exe splits the run-time image into four files of even and odd 8-bit bytes.

所以 LZ 应该还是用 ROMWIDTH=32.

Paul, Chao @ Techware

This post is from Embedded System

78

Posts

0

Resources
27
Quote from paul_chao on the 25th floor: According to Online help The following table shows how Romimage.exe splits the run-time image depending on the value of width. Value Description 32 Romimage.exe puts the entire run-time image into one file. 16 Romimage.exe splits the run-time image into two files of even and odd 16-bit words. 8 Romimage.exe splits the run-time image into four files of even and odd 8-bi…
I’d like to ask, Paul, Chao How long have you been doing WINCE research and development?
This post is from Embedded System

12
Return list
Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list