How to use FlexNVM as data flash on mk64fx512?

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

How to use FlexNVM as data flash on mk64fx512?

1,588 Views
yqypower
Contributor I

I need to  use FlexNVM block as  basic data flash,my question is that:

FlexNVM block start address is : 0x1000 0000 ,

but In "Erase Flash Sector command" just have 23 bit adress,so how to erase and program FlexNVM block? 

The sincerity anticipates your reply!!!!!

0 Kudos
Reply
2 Replies

1,582 Views
jay_heng
NXP Employee
NXP Employee

The Flash Address[23:0] in below command seq is just offset address.

For P-Flash, the final AHB addr = 0x0 + Flash Address[22:0]

For FlexNVM, the final AHB addr = 0x10000000 + Flash Address[22:0].

When required by the command, Flash Address bit 23 selects between program flash memory (=0) and data flash memory (=1).

flash_addr.PNG

 

0 Kudos
Reply

1,580 Views
jay_heng
NXP Employee
NXP Employee

You can get reference from flexnvm_convert_start_address() API in SDK/flash driver (fsl_ftfx_flexnvm.c)

0 Kudos
Reply