Hi, we started a new project using K20 sub-family chip (MK20DN32VLH5). From the datasheet (K20P64M50SF0), Ezport (JTAG) is the serial interface to use in order to flash (erase, program, verify) the chip initially during the first power-on test. But since this family has USB communication interfaces available, and the bootloader is one of the built-in features, can we program the chip over USB serial connection from PC instead? In other words, do we have to use JTAG interface with cyclone flash programmer to program the chip every time? Thank you very much.
DC
解決済! 解決策の投稿を見る。
Hi Daniel Cheng,
Yes, if the chip don't have the ROM bootloader, you need to use the JTAG or SWD to program the bootloader code to the flash at first.
K64 also don't have the ROM bootloader, you can find the chip which support ROM bootloader from this link
Normally we said K2 as the Next Generation of Kinetis Solutions, just the concept, for details, please refer to the attached document. Not all the K2x is the K2 chip.
But now I check the Kinetis K series chip, just K8x have the ROM bootloader, and some new KLx series have the ROM bootloader.
If you want to use the K64, you still need to use the flash bootloader.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Daniel Cheng,
Take care, MK20DN32VLH5 is not the K2 chip, it don't have the ROM bootloader, so you just can use the flash bootloader which is just the small bootloader code put in the flash by yourself before. Even you use the flash bootloader, you still need to use the JTAG or SWD to program the chip at first, then you can use the according flash bootloader to program your application code.
About the flash bootloader, there has some application notes for your reference without the JTAG or SWD:
1. AN4764 USB Human Interface Device Boot Loader for ColdFire Plus, Kinetis K, and Kinetis L MCUs
http://cache.nxp.com/files/32bit/doc/app_note/AN4764.pdf?fsrch=1&sr=1&pageNum=1
2. AN4379 Freescale USB Mass Storage Device Bootloader
http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4379.pdf?fsrch=1&sr=1&pageNum=1
3. AN2295 Developer’s Serial Bootloader
http://cache.nxp.com/files/microcontrollers/doc/app_note/AN2295.pdf?fsrch=1&sr=1&pageNum=1
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Kerry,
Thank you very much for the quick response.
I am a starter to this Kinetis chip. Are you saying we need to use JTAG to put the bootloader code in the flash at first and then use the flash bootloader to program the application code? Thanks.
We are also planning to use MK64FN1M0VMD12. Does the abovementioned info apply to this K6 chip as well?
In addition, you mentioned MK20DN32VLH5 is not K2 chip. But the chip was listed in the K2x subfamily. Are you saying K2x is not part of K2 family? Thanks again.
Regards
Xiaoyang
This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, do not use the information, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. If you are authorized to use this information, please keep it confidential and use it only for its intended purpose
Hi Daniel Cheng,
Yes, if the chip don't have the ROM bootloader, you need to use the JTAG or SWD to program the bootloader code to the flash at first.
K64 also don't have the ROM bootloader, you can find the chip which support ROM bootloader from this link
Normally we said K2 as the Next Generation of Kinetis Solutions, just the concept, for details, please refer to the attached document. Not all the K2x is the K2 chip.
But now I check the Kinetis K series chip, just K8x have the ROM bootloader, and some new KLx series have the ROM bootloader.
If you want to use the K64, you still need to use the flash bootloader.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks again.
Can we send a customer request to have the chips (K2x and K6X) pre-loaded with the bootloader by the vendor (NXP) before the shipment?
Hi Daniel Cheng,
About this question, you may contact with your vendor, whether they would like to help you do these things, but normally, the pre-loaded code should be downloaded by the customer, or you can help your customer do it before.
Wish it helps you!
Jingjing