SThor8Occasional ContributorJoined 6 years ago28 Posts7 LikesLikes received4 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: USB-Blaster: Unable to read device chain - JTAG chain broken I do nto have the 'jtagd' command either but 'killall jtagd' works I do not know why it is so nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object fil Hi When I try to use "Debug configuration" in eclipse when trying to run my niios application, I get the error message Error creating session nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory I do have libncursesw.so.5 but not in /usr/lib/x86_64-linux-gnu/ instead they are placed in /snap/core/10126/lib/x86_64-linux-gnu/ How do I get them from the /snap/core/10126/lib/x86_64-linux-gnu/ to /usr/lib/x86_64-linux-gnu/ ? If they should be in /snap/core/10126/lib/x86_64-linux-gnu/, should I modify the LD_LIBRARY_PATH ? LD_LIBRARY_PATH does not exist at the moment. Regards Plafrom $ uname -a Linux Frela 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ sudo apt-get install libncurses5 libncurses5:i386 [sudo] password for stefan: Reading package lists... Done Building dependency tree Reading state information... Done libncurses5 is already the newest version (6.2-0ubuntu2). libncurses5:i386 is already the newest version (6.2-0ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded. /$ sudo find . | grep "libncursesw.so" find: ‘./proc/3388/task/3388/net’: Invalid argument find: ‘./proc/3388/net’: Invalid argument ./usr/lib/x86_64-linux-gnu/libncursesw.so ./usr/lib/x86_64-linux-gnu/libncursesw.so.6.2 ./usr/lib/x86_64-linux-gnu/libncursesw.so.6 find: ‘./run/user/1000/doc’: Permission denied find: ‘./run/user/1000/gvfs’: Permission denied ./snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5 ./snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5.9 ./snap/core/10185/lib/x86_64-linux-gnu/libncursesw.so.5 ./snap/core/10185/lib/x86_64-linux-gnu/libncursesw.so.5.9 ./snap/core18/1885/lib/x86_64-linux-gnu/libncursesw.so.5 ./snap/core18/1885/lib/x86_64-linux-gnu/libncursesw.so.5.9 ./snap/core18/1932/lib/x86_64-linux-gnu/libncursesw.so.5 ./snap/core18/1932/lib/x86_64-linux-gnu/libncursesw.so.5.9 $ ls -lsa snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5 0 lrwxrwxrwx 1 root root 18 feb 19 2016 snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5 -> libncursesw.so.5.9 $ ls -lsa snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5.9 187 -rw-r--r-- 1 root root 191464 feb 19 2016 snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5.9 SolvedRe: Nios II SBT Crashing on Linux The following workaround seems to work, it essentially replace Quartus included java engine with Java 8 cd ..../intelFPGA/20.1/quartus/linux64 mv jre64 jre64_old ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64 the path to Java 8 jre might be machine specific, mine is at least placed there Re: Quartos Prime Pro 19.04 on Ububtu 16.04 LTS - Eclipse crashes on startup "free(): invalid pointer" Hi I have a similar error, my solution was to replace Quartus java engine with Java 8 It must be java 8 The following workaround seems to work, it essentially replace Quartus included java engine with Java 8 cd ..../intelFPGA/20.1/quartus/linux64 mv jre64 jre64_old ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64 the path to Java 8 jre might be machine specific, mine is at least placed there Re: Nios Eclipse crashes, free(): invalid pointer The following workaround seems to work, it essentially replace Quartus included java engine with Java 8 cd ..../intelFPGA/20.1/quartus/linux64 mv jre64 jre64_old ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64 the path to Java 8 jre might be machine specific, mine is at least placed there Nios Eclipse crashes, free(): invalid pointer Hi When starting nios ii from quartus the eclipse splash screen appear a short moment and then nothing happend. Starting eclipse from the prompt result in the following error message > ~/intelFPGA/20.1/nios2eds/bin$ ./eclipse-nios2 OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 free(): invalid pointer Why the error message "free(): invalid pointer"? Is it possible to get more information to trying trace the error? Is there a fix? $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal Quartus 20.1 Standard edition with valid license file Quartus was installed according to the installation instructions with all lib add-on installations Added fix according to https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base/tools/2019/why-does-the-nios--ii-not-installed-after-full-installation-of-t.html > java -version openjdk version "1.8.0_265" OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01) OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode) > javac -version javac 1.8.0_265 > update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure. > ./eclipse-nios2 -debug Start VM: /home/stefan/intelFPGA/20.1/quartus//linux64/jre64/bin/java -Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -Dosgi.configuration.cascaded=true -Dosgi.instance.area.default=@user.home/sbt4e-20.1-workspace -Dosgi.user.area=@user.home/.altera.sbt4e/20.1.0.711-linux64 -Dosgi.configuration.area=@user.home/.altera.sbt4e/20.1.0.711-linux64/configuration -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -jar /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar -os linux -ws gtk -arch x86_64 -showsplash /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.platform_4.5.2.v20160212-1500/splash.bmp -launcher /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/eclipse -name Eclipse --launcher.library /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so -startup /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar --launcher.appendVmargs -exitdata 68008 -product org.eclipse.epp.package.cpp.product -pluginCustomization /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugin_customization.ini -debug -vm /home/stefan/intelFPGA/20.1/quartus//linux64/jre64/bin/java -vmargs -Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -Dosgi.configuration.cascaded=true -Dosgi.instance.area.default=@user.home/sbt4e-20.1-workspace -Dosgi.user.area=@user.home/.altera.sbt4e/20.1.0.711-linux64 -Dosgi.configuration.area=@user.home/.altera.sbt4e/20.1.0.711-linux64/configuration -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -jar /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Configuration location: file:/home/stefan/.altera.sbt4e/20.1.0.711-linux64/configuration/ Configuration file: file:/home/stefan/.altera.sbt4e/20.1.0.711-linux64/configuration/config.ini loaded Install location: file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/ Configuration file: file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/configuration/config.ini loaded Loading timestamp file from: file:/home/stefan/.altera.sbt4e/20.1.0.711-linux64/configuration/ .baseConfigIniTimestamp No timestamp file found Timestamps found: config.ini in the base: 1591430169000 remembered -1 Shared configuration location: file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/configuration/ Framework located: file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar eclipse.properties not found Framework classpath: file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/ file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar Splash location: /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.platform_4.5.2.v20160212-1500/splash.bmp Debug options: file:/home/stefan/intelFPGA/20.1/nios2eds/bin/.options not found Time to load bundles: 34 Starting application: 2950 Application Started: 4714 free(): invalid pointer SolvedRe: Nios II Software Build Tools for Eclipse does not start on Linux It have been solved, it was related to wrong file name in catalouge ./nioseds/bin But one question remain, is there a log window available to see what happen when for example eclipse is started from Quartus. Regards Nios II Software Build Tools for Eclipse does not start on Linux Hi Nios II Software Build Tools for Eclipse does not start on Linux, I have followed https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base/tools/2019/why-does-the-nios--ii-not-installed-after-full-installation-of-t.html but no luck. When I select the menu choice nothing happends. Is it possible to start some log window to see whats going on or is it possible to start eclipse from the command prompt to see what is comming out on stdout and stderr? Regards SolvedRe: Having a problem when creating a new Nios ii Application and BSP from template There is a, since 2 month, a well known problem with detailed description of the issue with later windows updates and wsl in combination with quartus, see https://community.intel.com/t5/Nios-II-Embedded-Design-Suite/Error-s0-Error-during-execution-of-quot-C-intelfpga-20-1-quartus/m-p/1207193#M50127 It have been assured that people are working this since early July. Unless programmers at Intel have 2 months forced vacation it must be a extremely difficult problem that uses almost all resources, working 24h on this. Re: Error: s0: Error during execution of "{C:/intelfpga/20.1/quartus/../nios2eds/Nios II Command Shell.b Hi Before you guys create a patch, remember there are several issues, at least 3 1. Some of the building scripts is using uname-r to check the platform, this is where the big M and little m problem occur. One example is nios2_command_shell.sh others are 2. Some scripts is not using uname -r but other ways to determinate the platform and they also get the problems with the M and m Most notable is reading the /proc/version file, like some perl scripts which fails because of the M and m One example is intelFPGA/20.1/nios2eds/bin/nios2-stackreport.pl which use open my $handle, "<", "/proc/version" || return; my $first_line = <$handle>; close $handle; return ($first_line =~ /Microsoft/); 3. There is a hickup from the earlier used cygwin remains to the new wsl when it looks for "/bin/gnu/H-x86_64-pc-linux-gnu/bin" to create the build env variables. 4. Paths problem for gcc at the very bottom. nios2-elf-gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory gcc can not find the cc1 executable, it is not copied to the temporary build directory structure that is on the fly created when compiling nios. Regards Stefan