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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,611 Views
madhurhinge
Contributor I

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

Labels (1)
0 Kudos
Reply
1 Solution
1,357 Views
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!

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

View solution in original post

0 Kudos
Reply
2 Replies
1,358 Views
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 Kudos
Reply
1,357 Views
madhurhinge
Contributor I

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

0 Kudos
Reply