KDS - attach debugger issue

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

KDS - attach debugger issue

1,019 Views
randyhermes
Contributor III

Using KDS 3.0, SDK 1.3, PE Multilink JTAG.

 

I just started using my app with the Kinetis bootloader.

Prior to using the bootloader I was able to use a debug configuration to attach to an already installed application that was linked starting at address 0.

 

The new configuration was moved to starting address 0xA000 to allow room for the bootloader.

The bootloader loads and runs the app fine.

 

I created a debug configuration to attach to the running app.  It attaches fine, but will not execute a breakpoint.  It appears the breakpoint is set, but it never breaks.

I've tried using symbol offsets of 0 and 0xA000.  Neither works.

 

So what am I doing wrong.

 

Thank You

Randy

Labels (1)
3 Replies

753 Views
lucasrangit
Contributor III

randyhermes‌ , did the above fix your issue debugging? Did you also have to set SCB->VTOR to m_interrupts?

0 Kudos

753 Views
randyhermes
Contributor III

Sorry I don't remember what the final fix was.

Randy

0 Kudos

753 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Randy,

Please try adding the following gdb command to the debugger settings:

add-symbol-file filename address

Example:

add-symbol-file C:\\Users\\b38285\\workspace.kds\\Application2\\Debug\\Application2.elf  0x0000a410

132395_132395.pngpastedImage_1.png

0x0000a410 is the origin of the m_text section of my second application.

132396_132396.pngpastedImage_6.png

Let me know if it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos