Automated ROM/RAM page swapping MPC/SPC 560xB

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

Automated ROM/RAM page swapping MPC/SPC 560xB

1,211 Views
DIvanov
Contributor I

Hi,

I would need a solution to implement an automated ROM/RAM page swapping during run-time.

By default I will keep the calibration parameters in ROM, but on a request via a single manual cal change I would like to relocate the Read-Only cal parameters from ROM to RAM and allow calibration changes.

If I build the code as Position-Independent, will I be able to copy the calibration section to RAM and access the calibration parameters?

Compiler: Wind River Diab 5.9

0 Kudos
Reply
1 Reply

1,198 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Daniel,

this needs to be completely managed by software because there's no hardware feature which would help with remapping. Devices with e200z0 core does not have Memory Management Unit (MMU).

This can be easily done on other MPC56xx devices with other cores (different from e200z0) because those have MMU. In case of MPC57xx only MPC5777C, MPC5775E, MPC5775B have MMU. Other MPC57xx have Overlay feature for this purpose.

Easiest option I can see is to use a base address to read the parameters which can be changed as needed.

Regards,

Lukas

0 Kudos
Reply