BOOTLOADER开发趣事。你正在做的东西,说不准这个世界某个角落也有人在干同样的事情

今天想写篇论文,写什么好呢?前几个月搞过bootloader(可见本博客的相关文章),所以就写bootloader吧。于是搜索一下网上的文章,看看有没有什么参考啥的。于是搜到一个是大脸阿莫的飞思卡尔板块,如下:

 发表于 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:

https://community.freescale.com/docs/DOC-328365

 

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

https://github.com/jenniezhjun/Kinetis-Bootloader.git

 

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

 

Enjoy Bootloader programming :-)

  • Kinetis Bootloader SW.zip 2.1 MB
  • Kinetis Bootloader Application Note - cortexm0-1030.pdf 1.0 MB


==========================================================================================

竟然还上传到了github,看看上传的时间:

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


可见这哥们弄的内容和我的基本差不多。不过我的不是STM32F4,是STM32F1.

那哥们弄的是RS485,我弄的是CAN。

我的开发时间为2015年8月到11月,基本上和那哥们开发时间重叠。呵呵,真够巧了!!!

你可能感兴趣的:(BOOTLOADER开发趣事。你正在做的东西,说不准这个世界某个角落也有人在干同样的事情)