When I import the ksdk_platform_lib_K64F12 project into KSDK, I do not see the flash folder under platform (See screen shot):
But it does show up in the platform/drivers folder (see screen shot):
So, what't the proper way to add the flash driver support into the KSDK platform library? And why wasn't it there by default?
Solved! Go to Solution.
Hello Raj Batra:
The C90TFS flash driver included with KSDK is developed separately from the rest of drivers and it uses a different API format than the rest of drivers. This is why it is not included as part of the platform library.
The flash driver is delivered as an option for your project and in order to use it you need to copy or link the driver files to your project. There are example flash projects in KSDK installation, in particular for the FRDM-K64F:
C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps\flash_demo
C:\Freescale\KSDK_1.2.0\examples\frdmk64f\driver_examples\flash
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Raj Batra:
The C90TFS flash driver included with KSDK is developed separately from the rest of drivers and it uses a different API format than the rest of drivers. This is why it is not included as part of the platform library.
The flash driver is delivered as an option for your project and in order to use it you need to copy or link the driver files to your project. There are example flash projects in KSDK installation, in particular for the FRDM-K64F:
C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps\flash_demo
C:\Freescale\KSDK_1.2.0\examples\frdmk64f\driver_examples\flash
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Yes, I ended up just importing the driver into my project and it worked. Would be nice to have it be part of the library in the future as a feature request. I'll probably create my own library as every time I do a make, I see it revisiting each of these files which slows the build process down.
Also, I wanted to read the FMC_PFB0CR and FMC_PFB1CR registers and print them out.
However, this didn't work
value = READ32(FMC_PFB0CR);
Just hangs the K64F.
Does the ReadResource() API help with this?