Hello
I am having a similar problem on a MPC5744P device . it does not seems like no matter what I do I can get this mapping to work . my code looks like the follows
PFLASH.PFCRD[0].Word0.R = 0x00ff0000; // enable remap of the Flash Address
PFLASH.PFCRD[0].Word1.R = 0x40005000; // Destination RAM address
PFLASH.PFCRD[0].Word2.R = 0xFFFF0006; // block 0 and 64 bytes
PFLASH.PFCRDE.R = 0x80000000; // Enable the first block of descriptors
PFLASH.PFCRCR.B.GRMEN = 1; // Global enable
The Flash address in 0x00ff0000 Ram address in ox40005000 I have currently ser the range for 64 bytes . ( I don't fully understand some of the settings of word 2 . I am using the first or the 0 block of descriptors ) But after I do this it does not seem to map . I am expecting the memory range at RAM to match the values in flash this does not happen. not can I modify values in the flash region? please help
If I try to write to the flash location I get an error which indicates to me it is not mapped .
appreciate your help . are there conditions under which the mapping will not work ?