Forum Discussion
Altera_Forum
Honored Contributor
20 years agoSince we don't have access to any of the Altera Linux tools for the moment, we always load the target using a Windows system. Typically, we load it directly into flash, but when debugging is required, we'll load it into ram using GDB.
So the basic sequence of events is: (1) nios2-gdb-server --tcpport xxxx --tcppersist (2) nios2-elf-gdb vmlinux From nios2-elf-gdb: (gdb) target remote yyy.yyy.yyy.yyy:xxxx (gdb) load (gdb) c We've also had success running the nios2-elf-gdb client from Linux and connecting to a copy of nios2-gdb-server on Windows. Which raises more interesting choices for GDB clients. One of our developers here has been using ddd for the last little while to do his debugging work. (and yes, we do have linefeed issues... its been a thorn in our side for ages but it so low priority on our list of things to do that it just never gets done... sigh)