Error occurred during enumeration of RISC-V harts (no harts found)
My OS is Ubuntu 22.04 with kernel version 6.5.0-28-generic, and I'm using the Arria® 10 GX FPGA Development Kit (10AX115S2F45I1SG). My Quartus Prime version is 23.4.
Following the 'AN 985: Nios® V Processor Tutorial', I went through the flow of Quartus Prime and RiscFree. The simulation was successful. However, after programming the .sof file into the device and attempting to use RiscFree for debugging, I encountered an error stating 'error occurred during enumeration of RISC-V harts.' Additionally, when I tried
niosv-download -g ./hello.elf -c 1
it also displayed an error.
INFO: Generating OpenOCD config file. Running "openocd-cfg-gen --cable=1 /tmp/tmpbb8fmj5o/niosv.cfg". INFO: Starting OpenOCD. Running "openocd -c tcl_port disabled -c gdb_port 0 -c telnet_port 0 -f /tmp/tmpbb8fmj5o/niosv.cfg". [OpenOCD output] Open On-Chip Debugger 0.11.0-R22.4 [OpenOCD output] Licensed under GNU GPL v2 [OpenOCD output] For bug reports, read [OpenOCD output] http://openocd.org/doc/doxygen/bugs.html [OpenOCD output] Info : only one transport option; autoselect 'jtag' [OpenOCD output] Info : Application name is OpenOCD.20240513171413 [OpenOCD output] Info : Attempting to find 'USB-BlasterII [1-5.1]' [OpenOCD output] [OpenOCD output] Info : Cable 1: device_name=(null), hw_name=USB-BlasterII, server=(null), port=1-5.1, chain_id=0x5fa2a2898c70, persistent_id=1, chain_type=1, features=2048, server_version_info=(null) [OpenOCD output] Info : TAP position 0 (2E660DD) has 2 SLD nodes [OpenOCD output] Info : node 0 idcode=08986E00 position_n=0 [OpenOCD output] Info : node 1 idcode=0C006E00 position_n=0 [OpenOCD output] Info : TAP position 1 (20A40DD) has 2 SLD nodes [OpenOCD output] Info : node 0 idcode=1C106E00 position_n=0 [OpenOCD output] Info : node 1 idcode=30286E00 position_n=0 [OpenOCD output] Info : Discovered 2 TAP devices [OpenOCD output] Info : Detected device (tap_position=0) device_id=02e660dd, instruction_length=10, features=4, device_name=10AX115H(1|2|3|4|4E3)/.. [OpenOCD output] Info : Found an Intel device at tap_position 0.Currently assuming it is SLD Hub [OpenOCD output] Info : Detected device (tap_position=1) device_id=020a40dd, instruction_length=10, features=4, device_name=5M(1270ZF324|2210Z)/EPM2210 [OpenOCD output] Info : Found an Intel device at tap_position 1.Currently assuming it is SLD Hub [OpenOCD output] Info : This adapter doesn't support configurable speed [OpenOCD output] Info : JTAG tap: tap_02E660DD.0 tap/device found: 0x02e660dd (mfg: 0x06e (Altera), part: 0x2e66, ver: 0x0) [OpenOCD output] Info : JTAG tap: tap_020A40DD.0 tap/device found: 0x020a40dd (mfg: 0x06e (Altera), part: 0x20a4, ver: 0x0) [OpenOCD output] Info : JTAG tap: tap_02E660DD.0 Parent Tap found: 0x02e660dd (mfg: 0x06e (Altera), part: 0x2e66, ver: 0x0) [OpenOCD output] Info : Virtual Tap/SLD node 0x08986E00 found at tap position 0 vtap position 0 [OpenOCD output] Error: DMI operation didn't complete in 120 seconds. The target is either really slow or broken. You could increase the timeout with riscv set_command_timeout_sec. ERROR: Found error in OpenOCD, exiting.
juart-terminal also stucked and showed nothing.
This is the platform designer:
As a first-time user, I hope this issue can be resolved. Additionally, I've been experimenting with oneAPI. However, when I attempted to do 'aocl install intel_a10gx_pac,' it returned an error stating 'Error: unsupported OS.' Could this mean that my OS version is not supported, or should I try using a different BSP? (oneAPI 2024.1)
Thanks.
Hi
Did you met any error when downloading the sof file?
Another thing could you try the niosV-download command without any parameter as below:
"niosv-download sw/app_hal/build/hello.elf"
Regards
Jingyang, Teh