How to update the program without using JTAG?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to update the program without using JTAG?

ソリューションへジャンプ
1,356件の閲覧回数
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,318件の閲覧回数
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,347件の閲覧回数
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,321件の閲覧回数
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,319件の閲覧回数
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 件の賞賛
返信