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.
Hello, where can I find a guide of how to debug a file that I generated from a Linux setup?
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.
Debian -- Package Search Results -- AVaRICE (current is svn375)
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.
Configuring Project Build Options - Developer Help
"Dare to be naïve." - Buckminster Fuller
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.
© 2020 Microchip Technology Inc.