Windows Atmel Studio 6.2.1502 Sp1 does not take a linux elf for debugging.

Go To Last Post
54 posts / 0 new

Pages

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

Just creating an Ubuntu VM now in Vmware. Will install the Microchip 5.4.0 .tar.gz copy of avr-gcc into it and see what happens when I try to build a small test program.

 

EDIT: <much later!> well I don't know if it's lack of RAM or lack of disk space or what but the VM and Ubuntu 18 are stuck in the middle of the Ubuntu install so I think I need to dig out another laptop with more resources.

 

I'm sure someone around here with Linux and the Atmel 5.4 .tar.gz can build a small test prog in Linux using -g2 and verify that normally it does generate .debug_line: references.

Last Edited: Tue. Jul 16, 2019 - 03:33 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bbogdanmircea wrote:
Hello, where can I find a guide of how to debug a file that I generated from a Linux setup?
Once again: Debugging with GDB | AVR Freaks

is one of several (many?) threads about that.

AVaRICE as an AVR GDB server; IIRC, AVaRICE built from a recent commit since that enables Atmel-ICE.

AVR GDB client should be somewhat simple to obtain for statics, maybe automatics, and stack backtraces (that functionality may be enough)

An AVR GDB GUI might not be much effort to build.

Further is AVR GDB integration into an IDE.

 

https://sourceforge.net/p/avarice/code/HEAD/tree/trunk/avarice/src/devdescr.cc#l587 (AT90CAN128)

 

edit :

Debian -- Package Search Results -- AVaRICE (current is svn375)

 

edit2 :

MPLAB X v5.20 has AT90CAN128 as 'tested' for simulator; Atmel-ICE and MPLAB PICkit 4 are still beta though may be functional enough over JTAG.

Should be able to configure MPLAB X for your AVR GCC toolchain.

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2698706

Configuring Project Build Options - Developer Help

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Jul 16, 2019 - 06:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman thanks for the info, but this looks like just some open roads without any solution, and to be honest I barely understand how to use Linux in the most basic way, build-ing avarice is totally unknown to me.

I would prefer to convince my compiler to generate properly the .elf for debugging in Atmel Studio, this looks the quickest way to my goal at this point, as I am pressed by time to get the debugging going.

If there is some clear step by step guide how to "install" avarice in Linux and make gdb work with my ATMEL ICE debugger, then I will gladly give it a try, as I already have avrdude and gdb installed.

 

Pages