Altera_Forum
Honored Contributor
15 years agoNios2 IDE produces different binaries in Windows vs. Linux
We develop Nios code in a mixed-os environment using Nios 2 IDE version 9.0 sp2. Recently, I needed to debug some running code using attach mode on a windows laptop and could not get the debugger to recognize the addresses in the running binary (built on linux). After some experimentation, I discovered that the Windows and Linux editions of the same version create quite different binaries from identical code and project settings. As a sanity check, I verified that different Linux machines create identical binaries from identical code and that I was able to attach to binaries built by a different machine. I also noticed that the windows nios2-elf-gcc reports a different build from the linux nios2-elf-gcc (b111 vs b132, respectively).
Is there anything I can do to get the Win/Linux versions on the same page? It is desirable to debug using a laptop, and this situation makes it impossible to do it natively. Also, has this problem perhaps been addressed in newer versions of the Nios2 tools? Thanks for your help, -AJP