Debugging Bootloader and Application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debugging Bootloader and Application

跳至解决方案
1,440 次查看
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 项奖励
1 解答
1,435 次查看
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 项奖励
4 回复数
1,436 次查看
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 项奖励
1,412 次查看
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 项奖励
1,407 次查看
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 项奖励
1,400 次查看
rnicolls
Contributor III

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

0 项奖励