Hi,
I'm trying to make a bootloader to my application using KDS v1.1.1.
I'm able to erase flash sectors and read any addres on flash, but I can't to write any byte into internal flash.
I have tried to use on KDS both components Internal Flash (IntFLASH) and FLASH_LDD, but both do not work to write data into flash.
I'm using KDS v1.1.1, but there is not the correct target CPU of FRDM-K22F (MK22FN512VLH12), even the KDS Release Notes saying that this target is supported.
To MK22F family appears as availables CPUs MK22FN1M0xxx12 and MK22FX512xxx12.
Because of this I'm using a similar target, the MK22FX512VLH12, but without FlexMemory and MPU because my target MK22FN512 do not have these features.
I know that the flash sector size is different.
On MK22FN512 the sector size is 2KB and on both MK22FN1M0 and MK22FX512 the sector size is 4KB.
Can this affect the flash writing feature?
Is there any component to FRDM-K22F that works the erasing, reading and writing data into flash properly?
已解决! 转到解答。
Hi David,
If you install the KSDK1.0.0 on your system too, then you can use the example flash_demo_frdmk22f120m example code.
KSDK1.0.0 is at following link:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&tid=vanKSDK
Chapter 7 of C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK K22 User's Guide.pdf is very helpful.
Chapter 5 C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK Demo Applications User's Guide.pdf specifically reviews the flash demo.
Please review the Release Notes for KDS in that same folder. It has good overview of KDS.
Other docs to look at:
Kinetis Software Development Kit Then click on Content and then Documents.
Regards,
David
Hi David,
If you install the KSDK1.0.0 on your system too, then you can use the example flash_demo_frdmk22f120m example code.
KSDK1.0.0 is at following link:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&tid=vanKSDK
Chapter 7 of C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK K22 User's Guide.pdf is very helpful.
Chapter 5 C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK Demo Applications User's Guide.pdf specifically reviews the flash demo.
Please review the Release Notes for KDS in that same folder. It has good overview of KDS.
Other docs to look at:
Kinetis Software Development Kit Then click on Content and then Documents.
Regards,
David