Hi Aunp.
Usually PFLASH is to store code, DFLASH is to store data.
User can use PFLASH store data, but it is not efficient.
I think you can refer the demo code attached in this thread:
DFlash on HCS12x
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------