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!!!!!
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).
You can get reference from flexnvm_convert_start_address() API in SDK/flash driver (fsl_ftfx_flexnvm.c)