KDS debugging a bootloader

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

KDS debugging a bootloader

875 Views
ohadbenjamin
Contributor III

Hello all,

I used to work with CW where there was a way to create a task for the debug configuration to run before starting the debug session.

In the task I used to flash another executable (In my case it was a bootloader application) that I wanted to debug.

 

What's the proper way to do this in KDS? I want to be able to run my application and debug it as well as the bootloader.

 

This is a picture of this option in CW:

93179_93179.jpgDebuggerOption.jpg

 

Thanks!

Labels (1)
0 Kudos
3 Replies

560 Views
BlackNight
NXP Employee
NXP Employee

KDS is using GDB which has a lot of functions with command lines.

Both in the Startup and Debugger tab you have ways to execute gdb commands:

pastedImage_0.png

pastedImage_1.png

The commands for the server depend on your debug connection (see Command Line Programming and Debugging with GDB | MCU on Eclipse ).

I have not explored the details, but I think you should be able to do what you need with these commands.

I hope this helps,

Erich

0 Kudos

560 Views
ohadbenjamin
Contributor III

Thanks I'll give it a try.

I'll post back, if I get it working...

0 Kudos

560 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Ohad,

Unfortunately this is a CodeWarrior feature that was not implemented in KDS. One alternative is to flash both the bootloader and application to the MCU but you will only be able to normally debug one of them, for the other you will just see the assembly information.

Please take a look to the following document, it might be helpful for you: Merging applications using Kinetis Design Studio

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 Kudos