Debugging Bootloader and Application using Kinetis Design Studio

Document created by Carlos_Mendoza Employee on Mar 31, 2016Last modified by ebiz_ws_prod on Dec 13, 2017
Version 4Show Document
  • View in full screen mode

Hello community!

 

Attached is a document that explains how to use Kinetis Design Studio to debug both a bootloader and application at the same time, this will be done using GDB commands to specify an additional symbol file to be used in the debug session.

 

The bootloader used for this example is the project for the FRDM-K64F board provided in the KBOOT 1.2.0 named freedom_bootloader and the application is a bareboard led demo that was adapted to work with this bootloader by following the steps described in this document:

 

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

 

The document was created using the MK64FN1M0VLL12 MCU like the one in the FRDM-K64F board, but the same principles are applicable to any Kinetis MCU.

 

Software versions

The steps described in this document are valid for the following versions of the software tools:

  • KDS v3.2.0
  • KBOOT v1.2.0

 

 

Contents

     1. Overview and concepts.

1.1 Kinetis Bootloader.

1.2 GDB Server.

     2. Flashing Bootloader and Application.

2.1 Flashing freedom_bootloader project.

2.2 Loading demo application using the Kinetis Updater.

2.3 Flashing demo application and bootloader using the P&E advanced programming options.

     3. Debugging Bootloader and Application.

3.1 Debugging bootloader and demo application projects using the P&E interface.

3.2 Debugging bootloader and demo application projects using the Segger interface.

     4. Conclusion.

     Appendix A - References.

 

 

I hope you can benefit from this post, if you have questions please let me know.

 

Best Regards!

Carlos Mendoza

Original Attachment has been moved to: K64F12_Led_Demo.zip

5 people found this helpful

Outcomes