AnsweredAssumed Answered

MPC5777M Modifying Calibration in Runtime by Remap the Calibration region

Question asked by Dhanesh Pandian on Nov 14, 2019
Latest reply on Nov 20, 2019 by Dhanesh Pandian

Use Case: To Remap the Calibration Region
Tools: Lauterbach Debugger
Target: MPC5777M Microcontroller
Calibration: ENGINE_01_Calibration [Address: 0x09457E99--0x09457E99]

 

Description:
We would like to Remap the Calibration region and got information from the MPC5777M reference Manual that we should use “PFlash Calibration Remap Descriptor Enable Register (PFCRDE)”. We would like to use either
Extended Overlay RAM [Address: 0x0C000000 0x0C1FFFFF and Size: 2 MB]
OR
Internal Overlay RAM [Address: 0x0D000000 0x0D003FFF and Size: 16 KB]

 

Source: https://www.nxp.com/files-static/32bit/doc/ref_manual/MPC5777MRM.pdf (Page: 164)

 

Steps Followed to Remap the Calibration ENGINE_01_Calibration [Address: 0x09457E99--0x09457E99] using PFlash Calibration Remap Descriptor Enable Register (PFCRDE):
1. Enable Calibration Remap Descriptor 0,1,2 == 01

2. Platform Flash Calibration Region Descriptor n Word0 (PFLASH_PFCRDn_Word0):
While setting this PFLASH_PFCRDn_Word0, we are not sure about the “LSTARTADDR” which needs to be specified to configure the descriptors.
Address: 0h base + 100h offset + (16d × i), where i=0d to 31d
Similarly, we are also unclear about the address, which needs to be set to configure the PFLASH_PFCRDn_Word1 & PFLASH_PFCRDn_Word2.

3. Platform Flash Calibration Region Descriptor n Word1 (PFLASH_PFCRDn_Word1):

4. Platform Flash Calibration Region Descriptor n Word2 (PFLASH_PFCRDn_Word2):

5. Enabled global remap enable PFCRCR[GRMEN] == 01

 

 

Regards,
Dhanesh.

Outcomes