Debug SAMD21 Atmel Studio project with command line GDB

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

Is there a way to use command line GDB with an Atmel Studio project?

I want to use command line GDB so I can do the following: jump to different parts of the code, set registers and variables, call functions, and to automatically execute commands at a breakpoint. 

I know I can set registers and variables in a watch window, but I want more flexibility. 

Does anyone have any experience doing this? 

As the title says, I am using a SAMD21 micro

Last Edited: Wed. Jul 19, 2017 - 10:51 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.avrfreaks.net/forum/once-again-debugging-gdb should contain the pointers needed...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

I did see that, but the Atmel SAMD21 is an ARM not an AVR

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

python scripting is intriguing though

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

Yes, but when using atbackend, you just use the armM ports and arm-gdb...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Looks like setting and evaluating variables is easy with the python script, but I don't see how to jump or call functions

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

I see I just needed to keep scrolling. RTFM!