MPC5746R OVERLAY is not effective

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

MPC5746R OVERLAY is not effective

Jump to solution
3,170 Views
liushiquan
Contributor III

As the picture shows,   address of YC_UTnkT_swtSrcCfg_C is 0x01015c3e,  that is remapping to 0x4003c03e.

Now 0x4003c03e is 0x56, and the mirror flash 0x09015c3e is also 0x56, but the point is not break.

 

Why?

liushiquan_2-1758033219159.png

 

Tags (2)
0 Kudos
Reply
1 Solution
3,056 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

To use calibration feature (i.e. overlay) you have to execute code or read data from mirrored address range, otherwise calibration is not applied. You can change linker command file configuration if you need to use it so.

View solution in original post

0 Kudos
Reply
8 Replies
3,118 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Pay attention to following example code:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5744P-Flash-Overlay-SRAM-S32DS-Power-...

It is the different device but same principle.

Hope it helps

0 Kudos
Reply
3,105 Views
liushiquan
Contributor III

 

the break point is not break

liushiquan_0-1758101237298.png

 

0 Kudos
Reply
3,116 Views
liushiquan
Contributor III
Yes, I has followed the code, to remap ram over flash, and I did it. When I write value to ram, the mirrored flash is changed too.
But the code is still executing as no-mirrored flash, not mirrored flash
0 Kudos
Reply
3,087 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

davidtosenovjan_0-1758128403896.png

You would have to execute the code from mirrored address range. 

0 Kudos
Reply
3,079 Views
liushiquan
Contributor III
but my code and data is not in mirrored address range.
0 Kudos
Reply
3,057 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

To use calibration feature (i.e. overlay) you have to execute code or read data from mirrored address range, otherwise calibration is not applied. You can change linker command file configuration if you need to use it so.

0 Kudos
Reply
3,041 Views
liushiquan
Contributor III
Will it make the mcu runninig a bit slower, Or is there any other impact?
0 Kudos
Reply
2,887 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, it should not run slower:

davidtosenovjan_0-1758528510769.png

 

0 Kudos
Reply