KDS debugging a bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KDS debugging a bootloader

757件の閲覧回数
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!

ラベル(1)
0 件の賞賛
3 返答(返信)

442件の閲覧回数
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 件の賞賛

442件の閲覧回数
ohadbenjamin
Contributor III

Thanks I'll give it a try.

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

0 件の賞賛

442件の閲覧回数
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 件の賞賛