Yet another Pulpissimo (on Zedboard) bring-up thread
#5
(12-20-2019, 07:16 PM)bluewww Wrote: Are you running this with the mhartid set to 0? If not, do you use openocd master (atleast with this patch https://github.com/riscv/riscv-openocd/c...52438fec6a).
Regarding the instruction decode error, what is your output of "riscv32-unknown-elf-gcc --verbose --version"?
Unfortunately I don't have a zedboard so I can't really help you debug. Internally we use genesys2 and the other FPGA ports are contributions, which besides running synthesis I can't verify.

Yes, as described in the issue and below. I don't think that openocd's handling of the ID is to blame. I am using e03dd199 (from 2019-11-28) of the UCB riscv-openocd. I have emailed Marek (the original zedboard porter) to chime in... let's see. Apart from the hart ID modification the hardware is unchanged so I don't think this is necessarily a Zedboard-specific problem.

Code:
-    localparam FC_Core_CLUSTER_ID    = 6'd31;
+    localparam FC_Core_CLUSTER_ID    = 6'd0;
-    localparam NrHarts                               = 1024;
+    localparam NrHarts                               = 1;


The gcc version output as used by the hello makefile:

Code:
.../pulp-rt-examples/hello$ riscv32-unknown-elf-gcc --verbose --version
Using built-in specs.
COLLECT_GCC=riscv32-unknown-elf-gcc
COLLECT_LTO_WRAPPER=.../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/lto-wrapper
riscv32-unknown-elf-gcc (GCC) 7.1.1 20170509
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Target: riscv32-unknown-elf
Configured with: .../pulp-riscv-gnu-toolchain/riscv-gcc/configure --target=riscv32-unknown-elf --prefix=.../pulp-riscv-gnu-toolchain-build --disable-shared --disable-threads --enable-languages=c,c++ --with-system-zlib --enable-tls --with-newlib --with-headers=.../pulp-riscv-gnu-toolchain-build/riscv32-unknown-elf/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --enable-checking=yes --enable-multilib --with-abi=ilp32 --with-arch=rv32imc 'CFLAGS_FOR_TARGET=-Os  -mcmodel=medlow'
Thread model: single
gcc version 7.1.1 20170509 (GCC)
COLLECT_GCC_OPTIONS='-v' '--version' '-march=rv32imc' '-mabi=ilp32'
 .../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/cc1 -quiet -v help-dummy -quiet -dumpbase help-dummy -march=rv32imc -mabi=ilp32 -auxbase help-dummy -version --version -o /tmp/ccek0sdN.s
GNU C11 (GCC) version 7.1.1 20170509 (riscv32-unknown-elf)
    compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.20-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
COLLECT_GCC_OPTIONS='-v' '--version' '-march=rv32imc' '-mabi=ilp32'
 .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/bin/as -v --traditional-format -march=rv32imc -mabi=ilp32 --version -o /tmp/ccnINujK.o /tmp/ccek0sdN.s
GNU assembler version 2.28.0 (riscv32-unknown-elf) using BFD version (GNU Binutils) 2.28.0.20170505
GNU assembler (GNU Binutils) 2.28.0.20170505
Copyright (C) 2017 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `riscv32-unknown-elf'.
COMPILER_PATH=.../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/:.../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/:.../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/:.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/:.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/:.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/bin/
LIBRARY_PATH=.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/:.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/lib/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '--version' '-march=rv32imc' '-mabi=ilp32'
 .../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/collect2 -plugin .../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/liblto_plugin.so -plugin-opt=.../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccMIfxqH.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgloss -plugin-opt=-pass-through=-lgcc -melf32lriscv -dT riscv.ld --march=rv32imc --version .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/lib/crt0.o .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/crtbegin.o -L.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1 -L.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/lib /tmp/ccnINujK.o -lgcc --start-group -lc -lgloss --end-group -lgcc .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/crtend.o
collect2 version 7.1.1 20170509
.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/bin/ld -plugin .../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/liblto_plugin.so -plugin-opt=.../pulp-riscv-gnu-toolchain-build/libexec/gcc/riscv32-unknown-elf/7.1.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccMIfxqH.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgloss -plugin-opt=-pass-through=-lgcc -melf32lriscv -dT riscv.ld --march=rv32imc --version .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/lib/crt0.o .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/crtbegin.o -L.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1 -L.../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/../../../../riscv32-unknown-elf/lib /tmp/ccnINujK.o -lgcc --start-group -lc -lgloss --end-group -lgcc .../pulp-riscv-gnu-toolchain-build/lib/gcc/riscv32-unknown-elf/7.1.1/crtend.o
GNU ld (GNU Binutils) 2.28.0.20170505
Copyright (C) 2017 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
COLLECT_GCC_OPTIONS='-v' '--version' '-march=rv32imc' '-mabi=ilp32'
Reply


Messages In This Thread
RE: Yet another Pulpissimo (on Zedboard) bring-up thread - by stefanct - 12-21-2019, 12:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)