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?
Solved! Go to Solution.
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
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.
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?
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