How to update the program without using JTAG?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to update the program without using JTAG?

跳至解决方案
1,358 次查看
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 项奖励
回复
1 解答
1,320 次查看
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 项奖励
回复
3 回复数
1,349 次查看
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 项奖励
回复
1,323 次查看
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 项奖励
回复
1,321 次查看
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 项奖励
回复