What is the correct way to assign a variable to a specific address with CW 10.xx?  In classic CW the following works "  int    variable name    @0x0070;  "  Importing the project into CW10 give syntax errors

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

What is the correct way to assign a variable to a specific address with CW 10.xx?  In classic CW the following works "  int    variable name    @0x0070;  "  Importing the project into CW10 give syntax errors

ソリューションへジャンプ
1,062件の閲覧回数
ISUEE
Contributor I

I am importing a project from classic CW to CW 10.  With classic CW the following assigns a global variable to a designated address

 

#pragma   DATA_SEG  RAM

int     variable_name      @0x0070;

 

The CW 10.  gives syntax errors and bad character sequence encountered: @

 

What is the correct method of assigning a variable to a specific address with CW 10.

 

Thanks in advance.

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 解決策
822件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

which CW10 version do you work with? if you use CW10.4 with 8/16bit MCU, this will not produce this message.

and is CW10.4 is our recommendation. here is the 10.4 webpage and download:

https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
823件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

which CW10 version do you work with? if you use CW10.4 with 8/16bit MCU, this will not produce this message.

and is CW10.4 is our recommendation. here is the 10.4 webpage and download:

https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS

0 件の賞賛
返信
822件の閲覧回数
ISUEE
Contributor I

Thanks to all for the help and responses.  Updated to version 10.4 from 10.2 and the errors are gone.

0 件の賞賛
返信
822件の閲覧回数
TICS_Fiona
NXP Employee
NXP Employee

This code is built well in my CW10.4. What's the your CodeWarrior version? Could you please attach a simple project to help us reproudce this error? Thanks!

822件の閲覧回数
JimDon
Senior Contributor III

What MCU is it?

0 件の賞賛
返信
822件の閲覧回数
JimDon
Senior Contributor III

Try generating a project for that MCU then see how interrupt vectors are places.

0 件の賞賛
返信