Hi Marco Coelho,
fsl_flash bean in KDS 3.0 is really very different from the FLASH_LDD in CW.
fsl_flash bean is the component for flash driver C90TFS, so the configuration should define the C90TFS items, then use the API function in C90TFS to operation the flash.
About the configuration items in fsl_flash, please refer to the following picture:

It is very sample, so there has no guidance now, the above configuration is for MKL25Z128, it is just define the data for the SSD structure in C90TFS.
2.3 Configuration parameter
The configuration parameters, used for the SSD are given in this section. They are handled as structure as bellow :
typedef struct _ssd_config
{
uint32_t ftfxRegBase;
uint32_t PFlashBlockBase;
uint32_t PFlashBlockSize;
uint32_t DFlashBlockBase;
uint32_t DFlashBlockSize;
uint32_t EERAMBlockBase;
uint32_t EEEBlockSize;
bool DebugEnable;
PCALLBACK CallBack;
} FLASH_SSD_CONFIG, *PFLASH_SSD_CONFIG;
flashSSDConfig is the name, you can change the name.
After the configuration in the above picture, you will get this struct:
FLASH_SSD_CONFIG flashSSDConfig = {
.ftfxRegBase = 1073872896U,
.PFlashBase = 0U,
.PFlashSize = 131072U,
.DFlashBase = 0U,
.DFlashSize = 0x00U,
.EERAMBase = 0U,
.EEESize = 0x00U,
.DebugEnable = false,
.CallBack = NULL_CALLBACK,
};
ftfxRegBase is KL25 FTFA register base address, you can find it from KL25 reference manual, it is 0X40020000
PFlashBlockBase = PFlashBase Pflash base address is 0x00000000;
PFlashBlockSize = PFlashSize , the block size of KL25, as you know KL25 have 128KB flash, so the size is 128KB= 0x00020000= 131072U
No data flash, so DflashBase =0, DFlashSize =0;
No FlexNVM, so EERAMBase =0, EEESize =0;
For more details about C90TFS, I think you can refer to the attached C90TFS document:
After you configure it, you can refer to the code in KSDK1.2.0 to write the flash code.
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------