Debugging Bootloader and Application using Kinetis Design Studio

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

Debugging Bootloader and Application using Kinetis Design Studio

Debugging Bootloader and Application using Kinetis Design Studio

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

Labels (1)
Attachments
Comments

This was very helpful.

You can do the same thing in IAR by going to the project "Options..." > Debugger > Images and selecting to download and extra image (and optionally to only include debug info).  When you start debugging, you will see all the symbols from both images in the disaasembly window.

Hi Kevin,

Thanks for sharing that information, that method seems to be similar to the one in CodeWarrior where you need to specify an extra executable using the ‘Other Executables’ option, here you can find more detailed information:

Adding Symbols to the CodeWarrior Debugger | MCU on Eclipse

Best regards!

Carlos Mendoza

Thanks, carlosmendoza‌.

In the pdf there's a reference to P&E only (when inserting another ELF file).

Is there a possibility doing so with Segger?

Thanks.

No ratings
Version history
Last update:
‎03-31-2016 04:37 PM
Updated by: