Hello Randy Hermes:
Attached there are 3 files I took from the C90TFS standalone installation (not the one that comes with KSDK). Those files are an example for the K21FX512xxx10. The example demonstrates several uses of the Flash driver (erase, program, checksum, read resource, etc) but you may use the FlexNVM part and refer to the use of DEFlashPartition().
The code will respond to your questions as next:
- The parameter pFlashCommandSequence is a function pointer. In the example the pointer used is called g_FlashLaunchCommand and it's the result of calling RelocateFunction().
- The partition should only be done once. In the example project there is a check for partition as next:
if (0x0U == flashSSDConfig.EEEBlockSize)
{
...
Also for your reference there is a user manual for the C90TFS driver in KSDK installation:
C:\Freescale\KSDK_1.2.0\platform\drivers\src\flash\C90TFS\FSL_eNVM_FTFx_UM.pdf
I hope this helps. Let me know if you have any questions.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------