Program the K2 family chip

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Program the K2 family chip

Jump to solution
2,030 Views
danielcheng
Contributor II

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

Labels (2)
0 Kudos
1 Solution
1,571 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

Kinetis Bootloader|NXP

     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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
1,571 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

AN4379sw

3. AN2295 Developer’s Serial Bootloader

http://cache.nxp.com/files/microcontrollers/doc/app_note/AN2295.pdf?fsrch=1&sr=1&pageNum=1

   AN2295SW

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!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,571 Views
danielcheng
Contributor II

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

0 Kudos
1,572 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

Kinetis Bootloader|NXP

     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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,571 Views
danielcheng
Contributor II

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?

0 Kudos
1,571 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

0 Kudos