DATA_SEG initializing data to zeros.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DATA_SEG initializing data to zeros.

ソリューションへジャンプ
1,441件の閲覧回数
MPeppard
Contributor I
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
718件の閲覧回数
CrasyCat
Specialist III

Hello

 

What is the question here exactly?

- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
   To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog. 

 

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
718件の閲覧回数
Lundin
Senior Contributor IV
"DATA_SEG initializing data to zeros."

If you placed the variables at file scope (global), they will indeed be set to zero in the C/C++ language, as enforced by the standard.

If you don't want this, you will have to remove initialization of static varibles at project creation. The startup file will then not copy any init values into static/global variables. Note that with this setting you must set all values in runtime and you can't import code relying on static initalization into your project.
0 件の賞賛
返信
718件の閲覧回数
CrasyCat
Specialist III

Hello

 

If you are looking for a way to define global variables, which are not initialized at startup, please look at FAQ-27438 on www.freescale.com.

 

Using the NO_INIT attribute instead on READ_WRITE in the .prm file should help you to achieve that.

 

CrasyCat

0 件の賞賛
返信
719件の閲覧回数
CrasyCat
Specialist III

Hello

 

What is the question here exactly?

- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
   To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog. 

 

CrasyCat

0 件の賞賛
返信