![]() |
Unable to compile and run applications on Zedboard with Pulpissimo - Printable Version +- PULP Community (https://pulp-platform.org/community) +-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1) +--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2) +--- Thread: Unable to compile and run applications on Zedboard with Pulpissimo (/showthread.php?tid=373) |
Unable to compile and run applications on Zedboard with Pulpissimo - victorgervasio - 03-16-2025 Hello, I'm a beginner and for the past two weeks I've been trying to compile applications on Zedboard (Pulpissimo), but I was unable to execute the "make" command for the pulp-sdk without getting errors. I've tried to build the pulp-sdk commit 3256fe7, since newer commits apparently don't support board_targets anymore and tried to build the pulp-sdk on both Ubuntu 16.04 (fresh distribution, on VM using VirtualBox, as recommended in pulp-sdk's git commit id 3256fe7 Readme) and Ubuntu 18.04 (fresh distribution, on VM using VirtualBox, after changing my default gcc, gcc-7, to gcc-5, as recommended in pulp-sdk's git commit id 3256fe7 Readme an with conda environment with python3.5 and correspondent version pip installed). I've successfully built the pulp-riscv-gnu-toolchain (the toolchain's version referenced by the pulp-sdk's git commit id 3256fe7 Readme) and I've also been able to generate and flash the Pulpissimo bitstream to the Zedboard. However, I can't make the SDK work, which I assume is the only supported way to compile applications on the FPGA with Pulpissimo. On Ubuntu 16.04, this is the error message that keeps showing after "make all" for pulp-sdk (on root shell, since it's installation path is /opt/riscv, which lacks writing permissions unless I'm root): Traceback (most recent call last): File "./pulp-tools/bin/plpbuild", line 3, in <module> import plptools as plp File "/opt/riscv/pulp-sdk/pulp-tools/bin/plptools.py", line 23, in <module> import plptools_builder File "/opt/riscv/pulp-sdk/pulp-tools/bin/plptools_builder.py", line 19, in <module> from twisted.internet import protocol, reactor, endpoints File "/usr/local/lib/python3.5/dist-packages/twisted/__init__.py", line 10, in <module> from twisted._version import __version__ as version File "/usr/local/lib/python3.5/dist-packages/twisted/_version.py", line 8, in <module> from incremental import Version File "/usr/local/lib/python3.5/dist-packages/incremental/__init__.py", line 469 opt_in: bool ^ SyntaxError: invalid syntax Makefile:6: recipe for target 'all' failed make: *** [all] Error 1 On Ubuntu 18.04, this is the error message that keeps showing after "make all" for pulp-sdk (also on root shell): make[2]: /opt/riscv/pulp-sdk/pkg/pulp_riscv_gcc/1.0.13/bin/riscv32-unknown-elf-gcc: Command not found /opt/riscv/pulp-sdk/build/sdk/pulp-rt/pulpissimo/__rules.mk:58: recipe for target '/opt/riscv/pulp-sdk/build/sdk/pulp-rt/pulpissimo/rt/fc/kernel/init.o' failed make[2]: *** [/opt/riscv/pulp-sdk/build/sdk/pulp-rt/pulpissimo/rt/fc/kernel/init.o] Error 127 make[2]: Leaving directory '/opt/riscv/pulp-sdk/runtime/pulp-rt' Makefile:115: recipe for target 'build_all' failed make[1]: *** [build_all] Error 2 make[1]: Leaving directory '/opt/riscv/pulp-sdk/runtime/pulp-rt' Reached EOF with exit status 2 FATAL ERROR: the command 'build' has failed Makefile:6: recipe for target 'all' failed make: *** [all] Error 255 I'd like to know if it is still possible nowadays to compile and run applications for the Zedboard with Pulpissimo and, if so, I'd like some advice on what I'm doing wrong. Thanks in advance! RE: Unable to compile and run applications on Zedboard with Pulpissimo - kgf - 03-17-2025 The first one seems to be some sort of Python package incompatibility, the second one is that the tool chain (gcc) is not in the address you have specified. I would not take random commits, but the tagged releases if you want less issues. There is a very recent step by step tutorial by Ievgen Korotkyi from Kyiv School of Economics: https://dspdev.io/en/posts/pulp-sdk-examples/ It should get you started, Hope that helps RE: Unable to compile and run applications on Zedboard with Pulpissimo - victorgervasio - 03-25-2025 Hi, thanks for the fast and helpful reply! Following the step by step tutorial I have been able to simulate the "Hello !" example on QuestaSim! However, compiling and running applications on the FPGA (Zedboard) with Pulpissimo is a requirement for an undergraduate research project which I am currently taking part of, so I need to go further. In the step by step tutorial, the use Pulpissimo's v7.0.0 release is instructed (git checkout v7.0.0), since that is the release "which supports working with pulp-sdk", but over at https://github.com/pulp-platform/pulpissimo/releases/tag/v7.0.0 , it is stated that support for Xilinx Zedboard is removed, due to Zedboard's lack of space to fit the Pulpissimo design. It is also said that "the bitstream generation flow will fail due to insuffienct LUTs available", statement which I guess I have empirically verified. Code: 53 Infos, 54 Warnings, 6 Critical Warnings and 3 Errors encountered. Because of that, I have tried to use Pulpissimo's v6.0.0 release, since it is my goal to work with the Zedboard. I have, then, been able to build pulp-sdk, generate the bitstream for Pulpissimo and flash it to the Zedboard without errors. However, I am unable to set and use OpenOCD as instructed on Pulpissimo's v6.0.0 ReadMe file. I am citing my commands and the error that I can't still make sense of:
That last command gives me the following error: Code: Open On-Chip Debugger 0.10.0+dev-00615-g53a17c1bb (2025-03-24-17:22) Then, I have tried to use Pulpissimo v7.0.0 to compile OpenOCD (but doing git checkout v7.0.0 this time) and got the same error: Code: Open On-Chip Debugger 0.10.0+dev-00615-g2785f0f5c (2025-03-24-18:06) I was wondering if you could enlighten me regarding this problem. Maybe there is some misconception on my behalf about the process to compile OpenOCD, but I am not sure if it is possible to use it to load binaries into Pulpissimo v6.0.0 on the Zedboard. Thank you again for your attention! |