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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------