Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks jofasa,
got it... with this solution, the elf2flt function will work properly.I try to do the DEBUG Apps " nios2-linux-uclibc-gcc -g hello.c -o hello -elf2flt" again and it should work this time.. do you think this is also the reason why I couldnt run properly the make gcc elf2flt gdb-host on building the toolchain? some clarification.. ALL of below should be all in my .bash_profile.. correct? /******************************* PATH_TOOLCHAIN_NIOS2=/opt/nios2-toolchain/build_nios2/staging_dir/bin/ PATH=$PATH:$PATH_TOOLCHAIN_NIOS2 export PATH M_ARCH=nios2nommu M_SYSPTF=$M_DIR_BASE/ptf/NIOS.ptf M_TOOLCHAIN=/opt/nios2-toolchain/build_nios2/staging_dir/bin/nios2-linux- make ARCH=${M_ARCH} CROSS_COMPILE=${M_TOOLCHAIN} vendor_hwselect SYSPTF=${M_SYSPTF} make ARCH=${M_ARCH} CROSS_COMPILE=${M_TOOLCHAIN}