KBOOT learning diary

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KBOOT learning diary

KBOOT learning diary

KBOOT learning diary

  • Overview

     FSL’s already released the KBOOT v1.1.0 in Dec, 2014 and the v1.2.0 will be released in Jun, 2015. KBOOT is an innovation bootloader solution instead of former and it just seems like a platform for quick and easy programming the Kinetis MCUs. KBOOT will make the developers to save the effort for design the bootloader, even it support the developers to customize the bootloader.

       KBOOT provides two ways for implementing, ROM bootloader and Flash bootloader, ROM bootloader is only applicable to the Kinetis MCUs which already integrate the ROM and the KBOOT application reside in it. So the ROM bootloader is available during the entire product life cycle.  The opposite side, the Kinetis MCUs without ROM can be programmed through the Flash bootloader. For the Flash bootloader, it runs into RAM and receive the application image, after it program the image into the Flash completely, then it Flash bootloader will go to die, in another word, it will no longer be available again. Table 1 shows supported Kinetis MCUs.

Table 1 Support Kinetis Devices

2015-04-08_9-10-29.jpg

       KBOOT’s supported to program the target through the UART, SPI, I2C, USB HID communication and it will also support the MSD Device and MSD HOST mode, Ethernet, etc in future. And developers can use blhost application or GUI tool as the host tool to communicate with the bootloader, then program the application code in flash via the bootloader.

  • Implementing

       In these user guides as follow: Getting Started with the Kinetis ROM Bootloader, Getting Started with the Kinetis Flashloader, Kinetis blhost User's Guide, Kinetis Updater User's Guide, you can find a completely procedure to program the application code via bootloader.

  • Exception
    However I’ve encountered an issue when I tried to use the blhost application to communicate the FRDM-KL03Z (Fig1), it still couldn’t establish a connection, as Fig 2 shows.

1.jpg

Fig 1

2015-04-03_17-06-57.jpg

Fig 2

  • Workaround

      The issue will disappear after choose a lower baud rate when blhost application communicate with the FRDM-KL03Z board after I validated. And the whole procedure to program application code as follow.

      1. Establishes the connection

pastedImage_88.png

       2. Erases the entire flash array

pastedImage_97.png

      3. Programs the application code

pastedImage_102.png

      4. Application code runs

pastedImage_107.png

Attachments
No ratings
Version history
Last update:
‎04-07-2015 06:42 PM
Updated by: