Anyone who have used __pmem qualifier to initialize constant array in program memory?Need help.

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

Anyone who have used __pmem qualifier to initialize constant array in program memory?Need help.

ソリューションへジャンプ
2,163件の閲覧回数
madhurhinge
Contributor I

Anyone who have used __pmem qualifier to initialize constant array in program memory?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,909件の閲覧回数
TICS_Fiona
NXP Employee
NXP Employee

To place a variable or constant in program memory, user will need to use the __pmem qualifier to declare the variable or constant.  Also user needs to add sections for these data (e,g.data.pemem, .const.data.pmem…)in link command file.

The DSC compiler manual contains how to declare variables in P memory and how to link them by link command file, please see section <4.5 Variables in Program Memory>  in this document:

http://cache.freescale.com/files/soft_dev_tools/doc/ref_manual/CWMCUDSCCMPREF.pdf

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,910件の閲覧回数
TICS_Fiona
NXP Employee
NXP Employee

To place a variable or constant in program memory, user will need to use the __pmem qualifier to declare the variable or constant.  Also user needs to add sections for these data (e,g.data.pemem, .const.data.pmem…)in link command file.

The DSC compiler manual contains how to declare variables in P memory and how to link them by link command file, please see section <4.5 Variables in Program Memory>  in this document:

http://cache.freescale.com/files/soft_dev_tools/doc/ref_manual/CWMCUDSCCMPREF.pdf

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,909件の閲覧回数
madhurhinge
Contributor I

I am using MC56F84763 which has 128KB flash. I want to place an 64KB constant array into flash.

0 件の賞賛
返信