Debugging Bootloader and Application

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

Debugging Bootloader and Application

Jump to solution
1,351 Views
rnicolls
Contributor III

Hi,

I'm running a bootloader in a debug session and jumping to an application. I'd like to load symbols for the application so that I can step through the application's code. Is there a way that I can do this?

The application and the bootloader are two separate projects. 

I'm using the LinkServer debugger

Thanks

0 Kudos
1 Solution
1,346 Views
ErichStyger
Senior Contributor V

See an article I wrote here: https://mcuoneclipse.com/2020/11/03/debugging-bootloader-and-application-with-one-debug-session/

Same principle works with LinkServer connection.

I hope this helps,

Erich

View solution in original post

0 Kudos
4 Replies
1,347 Views
ErichStyger
Senior Contributor V

See an article I wrote here: https://mcuoneclipse.com/2020/11/03/debugging-bootloader-and-application-with-one-debug-session/

Same principle works with LinkServer connection.

I hope this helps,

Erich

0 Kudos
1,323 Views
rnicolls
Contributor III

Hi Erich,

Thank you for the article, it was helpful. I have the bootloader running on the target and was able to connect with the application's debug configuration and see the bootloader code. It worked well a couple of times but now I'm consistently getting the attached error. Is this something you've experienced before?

0 Kudos
1,318 Views
ErichStyger
Senior Contributor V

Yes, I have seen these in other contexts. To my understanding, it indicates a problem between the debug probe and the target. It could be the cable or some noise on the connection line.

What helped on my case was using a different debug probe, e.g. J-Link or P&E.

0 Kudos
1,311 Views
rnicolls
Contributor III

Great, thank you for the help. I'll see if switching up the debug probe helps with the issue. 

0 Kudos