发表于 2015-10-29 14:16:07 | 只看该作者 回帖奖励
      Bootloader例程方案,如之前的AN2295(Developer's Serial Bootloader)、AN4638(USB Mass Storage Device Host Bootloader)等, 以及最新的KBOOT,都是基于单个芯片的,而这次,将与小伙伴们分享一种针对多芯片的bootloader方案(Fig 1),具体实现细节请小伙伴通过以下链接了解。
Kinetis Bootloader to Update Multiple Devices in a Network for Cortex-M4

This article describes how to do in-system reprogramming of Kinetis devices using standard communication media such as SCI. Most of the codes are written in C so that make it easy to migrate to other MCUs. The solution has been already adopted by customers.


The pdf document is based on FRDM-KL26 demo board and Codewarrior 10.6.  The bootloader and user application source codes are provided. GUI and video show are also provided. Now the bootloader source code is ported to KDS3.0, Keil5.15 and IAR7.40 which are also enclosed in the SW package. Customer can make their own bootloader applications based on them. The application can be used to upgrade single target board and multi boards connected through networks such as RS485. The bootloader application checks the availability of the nodes between the input address range, and upgrades firmware nodes one by one automatically.

Key features of the bootloader:

  • Able to update (or just verify) either single or multiple devices in a network.
  • Application code and bootloader code are in separated projects, convenient for mass production and firmware upgrading.
  • Bootloader code size is small, only around 2K, which reduces the requirement of on chip memory resources.
  • Source code available, easy for reading and migrating.
  • GUI supports S19,HEX and BIN format burning images.



For more information, please see attached document and code.

The attached demo code is for KL26 which is Cortex - M0+ core. For Cortex-M4 core demo, refer this url:


User can also download the document and source code from Github:


Thank you from the great support from Chaohui Guo and his team.


Enjoy Bootloader programming :-)



Kinetis Bootloader SW revise 2 months ago
.gitattributes :lollipop: Added .gitattributes & .gitignore files 4 months ago
.gitignore :lollipop: Added .gitattributes & .gitignore files 4 months ago
Kinetis Bootloader revise 2 months ago
read me.txt revise 2 months ago