Debugging Bootloader and Application with one Debug Session

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As described in Erich Styger's post, it's possible to add additional symbols to a running application in Eclipse.  This makes it possible to switch from bootloader to main application and still see where you are when it switches.

 

I'm looking for a similar technique in Atmel Microchip Studio, but haven't yet figured out how to do it.  Is it possible?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


I figured it out.  Here's what you need to do:

 

  • Create a "solution" with two projects in it:

    • Boot
    • App
  • Configure the linkerscripts for the app and the bootloader to build each project to the desired location in memory
  • Build your bootloader and application each once
  • Configure Boot project's GDB settings to tell GDB server to add the symbols from the app when launching:
    • Open Bootloader project's settings page
    • Go to Advanced tab
    • In the Additional modules section, click Add
    • Navigate to the app.elf file in the App project
    • Select it and click OK
    • Note that when the "module" you just added has focus, there is an additional checkbox that becomes available that allows you to select whether or not you want the debugger to write that symbol file to the device, or if you want it to just want to load the symbols from it (see screenshot)

 

 

I love the smell of burning silicon in the morning