How to update the program without using JTAG?

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

How to update the program without using JTAG?

Jump to solution
1,355 Views
jake111
Contributor I

I've finished a project using MK64FN1M0VMD12.I may fix some bugs in the future,but I can't let user update the program by JTAG.

I will write my fixed program to SDCard by BLE module on my board.Then How can I download the program to the flash?Do you have any example?

 

0 Kudos
Reply
1 Solution
1,317 Views
ErichStyger
Specialist I

The KinetisFlashTool is a low level communication protocol with the bootloader. You might check out the SDK documentation or https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcu-bootload...

Or have a look at https://mcuoneclipse.com/2018/03/03/flash-resident-usb-hid-bootloader-with-the-nxp-kinetis-k22-micro...

 

As for loading the binary from the SD card: you won't need that KinetisFlashTool.

 

I hope this helps,

Erich

View solution in original post

0 Kudos
Reply
3 Replies
1,346 Views
ErichStyger
Specialist I

you have several ways to do this, but in essence you need to implement a bootloader loading the new image from the SD card. Have a look at the MCU-Boot/SDK which gives you a starting point.

0 Kudos
Reply
1,320 Views
jake111
Contributor I

It seems the bootloader in the SDK has its protocol,does the software "KinetisFlashTool" transfer the program binary file according to the protocol?Do you have any PDF explaining this protocol?

I don't know if it's necessary to have a protocol when the program is from SDCard,downloading program from bluetooth to SDCard might need a protocol.What do you think of this?

0 Kudos
Reply
1,318 Views
ErichStyger
Specialist I

The KinetisFlashTool is a low level communication protocol with the bootloader. You might check out the SDK documentation or https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcu-bootload...

Or have a look at https://mcuoneclipse.com/2018/03/03/flash-resident-usb-hid-bootloader-with-the-nxp-kinetis-k22-micro...

 

As for loading the binary from the SD card: you won't need that KinetisFlashTool.

 

I hope this helps,

Erich

0 Kudos
Reply