Hello,
I am looking for a flash example for the k20 (specifically for TWR-K20D72M.) Is it different than for the k60 or is writing to the flash the same for the kinetis family?
Thanks.
Solved! Go to Solution.
Hello Robert:
If you installed CodeWarrior v10.6, there is a Flash example for your board using processor expert at the next path:
C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K20D72M\FLASH
In case you do not like or simply don't want to use PEx, you can always download the C90TFS Driver from the next link:
http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe
The package includes examples and instructions on how to use the flash APIs.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Robert
Flash writing is identical for the K20D72 and K60 (without FPU).
The following gives some details Re: Re: Serial number programming in production - Kinetis K10 (towards end)
Generally the differences (valid for KE, KL and K parts) are:
- parts with FPU and KE parts use phrase programming (8 bytes at a time) and other parts use long word programming (4 bytes at a time)
- the sector size varies between 512 bytes (KE parts), 1k (KL parts and some slower K parts - <= 50MHz), 2k most other parts, and 4k for FPU parts
There is a Flash driver that supports (automatically adapts itself to) all KE, KL and K parts in kinetis.c at http://www.utasker.com/forum/index.php?topic=1721.0
Regards
Mark
Hello Robert:
If you installed CodeWarrior v10.6, there is a Flash example for your board using processor expert at the next path:
C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K20D72M\FLASH
In case you do not like or simply don't want to use PEx, you can always download the C90TFS Driver from the next link:
http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe
The package includes examples and instructions on how to use the flash APIs.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------