MPC5744p device memory map feature does not work

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5744p device memory map feature does not work

1,428件の閲覧回数
abhayapremawardena
Contributor I

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 ?

0 件の賞賛
返信
3 返答(返信)

1,427件の閲覧回数
abhayapremawardena
Contributor I

I am having an issue uploading the prtscreens from the S32 studio. please let me know how to do this 

0 件の賞賛
返信

1,426件の閲覧回数
abhayapremawardena
Contributor I

 

abhayapremawardena_0-1621212432840.jpeg

 

 

abhayapremawardena_1-1621212433045.jpeg

 

 

If I try to write to the flash location I get this error which indicates to me it is not mapped .

 

abhayapremawardena_2-1621212433056.jpeg

 

0 件の賞賛
返信

1,415件の閲覧回数
abhayapremawardena
Contributor I

Hello, can someone please help? 

0 件の賞賛
返信