riscv-dbg icon indicating copy to clipboard operation
riscv-dbg copied to clipboard

behavior of testbench

Open ShraddhaDevaiya opened this issue 4 years ago • 14 comments

Hello, I am trying to run testbench of riscv debug module. For that, I have run command make veri-run. For this it is just stopped at following flow:

image

Is this in interactive mode, or all configurations and commands are passed in pulpissimo_debug.cfg file ? Can anyone please put some light on this?

ShraddhaDevaiya avatar Nov 03 '20 12:11 ShraddhaDevaiya

Now you can connect to it with openocd using one of the *.cfg openocd scripts

bluewww avatar Nov 03 '20 12:11 bluewww

Hi @bluewww , I am trying to run this command openocd -d 1 -f dm_debug.cfg after this prompt, but it is giving an output like this :

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 13 2 command.c:544 command_print(): debug_level: 3
Debug: 14 2 options.c:181 add_default_dirs(): bindir=/usr/bin
Debug: 15 2 options.c:182 add_default_dirs(): pkgdatadir=/usr/share/openocd
Debug: 16 2 options.c:183 add_default_dirs(): exepath=/usr/bin
Debug: 17 2 options.c:184 add_default_dirs(): bin2data=../share/openocd
Debug: 18 2 configuration.c:42 add_script_search_dir(): adding /home/adduser/.openocd
Debug: 19 2 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/site
Debug: 20 2 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/scripts
Debug: 21 6 configuration.c:82 find_file(): found dm_debug.cfg
Debug: 22 11 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_debug_level 4
Debug: 23 11 command.c:143 script_debug(): command - debug_level ocd_debug_level 4
Error: 25 11 log.c:238 handle_debug_level_command(): level must be between -3 and 3
Debug: 26 11 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_usage debug_level
Debug: 27 11 command.c:143 script_debug(): command - usage ocd_usage debug_level
User : 29 11 command.c:865 command_help_show(): debug_levelUser : 30 11 command.c:871 command_help_show():  User 
: 31 11 command.c:844 command_help_show_wrap(): number
User : 32 11 command.c:687 command_run_line():

Is this expected or I am missing something. can you please help?

ShraddhaDevaiya avatar Nov 04 '20 06:11 ShraddhaDevaiya

Debug: 23 11 command.c:143 script_debug(): command - debug_level ocd_debug_level 4 Error: 25 11 log.c:238 handle_debug_level_command(): level must be between -3 and 3

We set the debug level to 4 in the openocd script. Maybe openocd changed the allowable ranges recentl,

bluewww avatar Nov 04 '20 12:11 bluewww

Hi @bluewww, I have changed the debug level to 2 and then run the script. Then it is giving an some other error like following:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 13 2 command.c:544 command_print(): debug_level: 3
Debug: 14 2 options.c:181 add_default_dirs(): bindir=/usr/bin
Debug: 15 2 options.c:182 add_default_dirs(): pkgdatadir=/usr/share/openocd
Debug: 16 2 options.c:183 add_default_dirs(): exepath=/usr/bin
Debug: 17 2 options.c:184 add_default_dirs(): bin2data=../share/openocd
Debug: 18 2 configuration.c:42 add_script_search_dir(): adding /home/adduser/.openocd
Debug: 19 2 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/site
Debug: 20 2 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/scripts
Debug: 21 4 configuration.c:82 find_file(): found dm_debug.cfg
Debug: 22 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_debug_level 2
Debug: 23 8 command.c:143 script_debug(): command - debug_level ocd_debug_level 2
debug_level: 2
adapter speed: 10000 kHz
Warn : Adapter driver 'remote_bitbang' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
dm_debug.cfg:7: Error: can't read "::env(JTAG_VPI_PORT)": no such element in array
in procedure 'script'
at file "embedded:startup.tcl", line 60
at file "dm_debug.cfg", line 7

How can I resolve this?

ShraddhaDevaiya avatar Nov 05 '20 11:11 ShraddhaDevaiya

Hi @ShraddhaDevaiya,

See example in README.md. You should run the following command before running openocd:

export JTAG_VPI_PORT=<port_name_from 1>

If using csh/tcsh, you should use this command instead:

setenv JTAG_VPI_PORT <port_name_from 1>

noytzach avatar Nov 05 '20 15:11 noytzach

Hi @noytzach , I did the same as per your instructions. But still it is showing some error:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2   
For bug reports, read       
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
adapter speed: 10000 kHz
Warn : Adapter driver 'remote_bitbang' did not declare which transports it allows; assuming legacy JTAG-onlyInfo : only one transport option; autoselect 'jtag'
TAP: riscv.cpu

embedded:startup.tcl:21: Error: Unknown target type riscv, try one of arm7tdmi, arm9tdmi, arm920t, arm720t, 
arm966e, arm946e, arm926ejs, fa526, feroceon, dragonite, xscale, cortex_m, cortex_a, cortex_r4, arm11, ls1_sap, mips_m4k, avr, dsp563xx, dsp5680xx, testee, avr32_ap7k, hla_target, nds32_v2, nds32_v3, nds32_v3m, or1k, quark_x10xx,  or quark_d20xx
in procedure 'script'
at file "embedded:startup.tcl", line 60
in procedure 'target' called at file "dm_compliance_test.cfg", line 18
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 21

I think riscv target is unrecongnized, do I need to install some dependencies for this? is this expected, or I am missing something?

ShraddhaDevaiya avatar Nov 06 '20 02:11 ShraddhaDevaiya

You have to install riscv-openocd

And run this one (using fullpath) and not the one you already have, which does not support riscv.

noytzach avatar Nov 06 '20 08:11 noytzach

Hi, Sorry for the delay. I have installed openocd which has riscv support, and then I tried to run same command to run file dm_compliance_test.cfg . Now I am getting following error:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 13 13 command.c:544 command_print(): debug_level: 3
Debug: 14 13 options.c:181 add_default_dirs(): bindir=/usr/bin
Debug: 15 13 options.c:182 add_default_dirs(): pkgdatadir=/usr/share/openocd
Debug: 16 13 options.c:183 add_default_dirs(): exepath=/usr/bin
Debug: 17 13 options.c:184 add_default_dirs(): bin2data=../share/openocd
Debug: 18 13 configuration.c:42 add_script_search_dir(): adding /home/adduser/.openocd
Debug: 19 13 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/site
Debug: 20 13 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/scripts
User : 21 35 command.c:687 command_run_line(): embedded:startup.tcl:60: Error: Can't find openocd.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 60
Debug: 22 35 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 23 35 command.c:143 script_debug(): command - init ocd_init
Debug: 25 35 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 26 35 command.c:143 script_debug(): command - ocd_target ocd_target init
Debug: 28 35 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names        
Debug: 29 35 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 30 35 target.c:1324 handle_target_init_command(): Initializing targets...
Error: 31 35 core.c:1332 adapter_init(): Debug Adapter has to be specified, see "interface" command       
Debug: 32 35 command.c:626 run_command(): Command failed with error code -101
User : 33 35 command.c:687 command_run_line(): embedded:startup.tcl:60: Error:
in procedure 'script'
at file "embedded:startup.tcl", line 60

Can you please help me?

ShraddhaDevaiya avatar Nov 10 '20 13:11 ShraddhaDevaiya

It looks like you did not use the -f option (as in the README) so openocd is looking for the default script (openocd.cfg).

/path/to/riscv-openocd/bin/openocd -f dm_compliance_test.cfg

noytzach avatar Nov 11 '20 07:11 noytzach

Yeah got that. I am facing issue to install riscv target in openocd. Let me complete that, then will check again. Thanks for helping.

ShraddhaDevaiya avatar Nov 13 '20 10:11 ShraddhaDevaiya

@ShraddhaDevaiya Hello! Do you solve all the problems? Below is my new issue: environment: 1.cenos7 2.bashrc set: (1)export RISCV=/opt/tools/riscv/toolchain export PATH=$PATH:$RISCV/bin

(2)export OPENOCD_HOME=/opt/tools/riscv-openocd export PATH=$PATH:$OPENOCD_HOME/bin

Process: 1.one Terminal [gzl@gzl tb]$ make veri-run verilator --cc --sv --exe
--Wno-lint --Wno-UNOPTFLAT --Wno-BLKANDNBLK
--Wno-MODDUP +incdir+riscv/rtl/include --top-module
tb_top_verilator --Mdir cobj_dir
-CFLAGS "-std=gnu++11 -O2"
fpnew/src/fpnew_pkg.sv dm_tb_pkg.sv riscv/rtl/include/cv32e40p_apu_core_pkg.sv riscv/rtl/include/cv32e40p_pkg.sv riscv/rtl/include/../../bhv/include/cv32e40p_tracer_pkg.sv ../src/dm_pkg.sv boot_rom.sv dp_ram.sv mm_ram.sv SimJTAG.sv tb_top_verilator.sv riscv/rtl/../bhv/cv32e40p_sim_clock_gate.sv riscv/rtl/../bhv/cv32e40p_tracer.sv riscv/rtl/cv32e40p_if_stage.sv riscv/rtl/cv32e40p_cs_registers.sv riscv/rtl/cv32e40p_register_file_ff.sv riscv/rtl/cv32e40p_load_store_unit.sv riscv/rtl/cv32e40p_id_stage.sv riscv/rtl/cv32e40p_aligner.sv riscv/rtl/cv32e40p_decoder.sv riscv/rtl/cv32e40p_compressed_decoder.sv riscv/rtl/cv32e40p_fifo.sv riscv/rtl/cv32e40p_prefetch_buffer.sv riscv/rtl/cv32e40p_hwloop_regs.sv riscv/rtl/cv32e40p_mult.sv riscv/rtl/cv32e40p_int_controller.sv riscv/rtl/cv32e40p_ex_stage.sv riscv/rtl/cv32e40p_alu_div.sv riscv/rtl/cv32e40p_alu.sv riscv/rtl/cv32e40p_ff_one.sv riscv/rtl/cv32e40p_popcnt.sv riscv/rtl/cv32e40p_apu_disp.sv riscv/rtl/cv32e40p_controller.sv riscv/rtl/cv32e40p_obi_interface.sv riscv/rtl/cv32e40p_prefetch_controller.sv riscv/rtl/cv32e40p_sleep_unit.sv riscv/rtl/cv32e40p_core.sv common_cells/src/cdc_2phase.sv common_cells/src/fifo_v2.sv common_cells/src/fifo_v3.sv common_cells/src/rstgen.sv common_cells/src/rstgen_bypass.sv tech_cells_generic/src/cluster_clock_inverter.sv tech_cells_generic/src/pulp_clock_mux2.sv tech_cells_generic/src/cluster_clock_gating.sv ../debug_rom/debug_rom.sv ../src/dm_csrs.sv ../src/dmi_cdc.sv ../src/dmi_jtag.sv ../src/dmi_jtag_tap.sv ../src/dm_mem.sv ../src/dm_sba.sv ../src/dm_top.sv ../src/dm_obi_top.sv
-LDFLAGS "-L../remote_bitbang
-Wl,--enable-new-dtags -Wl,-rpath,remote_bitbang -lrbs_veri"
tb_top_verilator.cpp cd cobj_dir && make -f Vtb_top_verilator.mk make[1]: Entering directory /home/gzl/20201120/riscv-dbg/tb/cobj_dir' g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o tb_top_verilator.o ../tb_top_verilator.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o verilated.o /opt/tools/verilator/share/verilator/include/verilated.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o verilated_dpi.o /opt/tools/verilator/share/verilator/include/verilated_dpi.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o Vtb_top_verilator.o Vtb_top_verilator.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o Vtb_top_verilator__1.o Vtb_top_verilator__1.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o Vtb_top_verilator___024unit.o Vtb_top_verilator___024unit.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -Os -c -o Vtb_top_verilator__Dpi.o Vtb_top_verilator__Dpi.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -c -o Vtb_top_verilator__Slow.o Vtb_top_verilator__Slow.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -c -o Vtb_top_verilator__1__Slow.o Vtb_top_verilator__1__Slow.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -c -o Vtb_top_verilator___024unit__Slow.o Vtb_top_verilator___024unit__Slow.cpp g++ -I. -MMD -I/opt/tools/verilator/share/verilator/include -I/opt/tools/verilator/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -std=gnu++11 -O2 -std=gnu++11 -c -o Vtb_top_verilator__Syms.o Vtb_top_verilator__Syms.cpp Archive ar -cr Vtb_top_verilator__ALL.a Vtb_top_verilator.o Vtb_top_verilator__1.o Vtb_top_verilator___024unit.o Vtb_top_verilator__Dpi.o Vtb_top_verilator__Slow.o Vtb_top_verilator__1__Slow.o Vtb_top_verilator___024unit__Slow.o Vtb_top_verilator__Syms.o g++ tb_top_verilator.o verilated.o verilated_dpi.o Vtb_top_verilator__ALL.a -L../remote_bitbang -Wl,--enable-new-dtags -Wl,-rpath,remote_bitbang -lrbs_veri -o Vtb_top_verilator make[1]: Leaving directory /home/gzl/20201120/riscv-dbg/tb/cobj_dir' cp cobj_dir/Vtb_top_verilator testbench_verilator ./testbench_verilator
"+firmware=prog/test.hex" scopesDump: SCOPE 0x13cc2f0: TOP.tb_top_verilator.mm_ram_i SCOPE 0x13cc328: TOP.tb_top_verilator.mm_ram_i.dp_ram_i DPI-EXPORT 0x41eef4: read_byte DPI-EXPORT 0x41ef06: write_byte

finished dumping memory JTAG remote bitbang server is ready Listening on port 9999 Attempting to accept client socket

2.open one new Terminal [gzl@gzl tb]$ export JTAG_VPI_PORT=9999 [gzl@gzl tb]$ openocd -f dm_debug.cfg Open On-Chip Debugger 0.10.0+dev-01405-gc56aa66 (2020-11-20-15:05) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Debug: 13 0 command.c:146 script_debug(): command - echo DEPRECATED! use 'adapter speed' not 'adapter_khz' User : 15 0 command.c:767 jim_echo(): DEPRECATED! use 'adapter speed' not 'adapter_khz' Debug: 16 0 command.c:146 script_debug(): command - adapter speed 10000 Debug: 18 0 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 19 0 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 20 0 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 21 1 command.c:146 script_debug(): command - echo DEPRECATED! use 'adapter driver' not 'interface' User : 23 1 command.c:767 jim_echo(): DEPRECATED! use 'adapter driver' not 'interface' Debug: 24 1 command.c:146 script_debug(): command - adapter driver remote_bitbang Debug: 26 1 command.c:352 register_command_handler(): registering 'remote_bitbang_port'... Debug: 27 1 command.c:352 register_command_handler(): registering 'remote_bitbang_host'... Info : 28 1 transport.c:117 allow_transports(): only one transport option; autoselect 'jtag' Debug: 29 1 command.c:352 register_command_handler(): registering 'jtag_flush_queue_sleep'... Debug: 30 1 command.c:352 register_command_handler(): registering 'jtag_rclk'... Debug: 31 1 command.c:352 register_command_handler(): registering 'jtag_ntrst_delay'... Debug: 32 1 command.c:352 register_command_handler(): registering 'jtag_ntrst_assert_width'... Debug: 33 1 command.c:352 register_command_handler(): registering 'scan_chain'... Debug: 34 1 command.c:352 register_command_handler(): registering 'runtest'... Debug: 35 1 command.c:352 register_command_handler(): registering 'irscan'... Debug: 36 1 command.c:352 register_command_handler(): registering 'verify_ircapture'... Debug: 37 1 command.c:352 register_command_handler(): registering 'verify_jtag'... Debug: 38 1 command.c:352 register_command_handler(): registering 'tms_sequence'... Debug: 39 1 command.c:352 register_command_handler(): registering 'wait_srst_deassert'... Debug: 40 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 41 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 42 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 43 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 44 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 45 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 46 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 47 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 48 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 49 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 50 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 51 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 52 1 command.c:352 register_command_handler(): registering 'jtag'... Debug: 53 1 command.c:352 register_command_handler(): registering 'svf'... Debug: 54 1 command.c:352 register_command_handler(): registering 'xsvf'... Debug: 55 1 command.c:146 script_debug(): command - remote_bitbang_host localhost Debug: 57 1 command.c:146 script_debug(): command - remote_bitbang_port 9999 Debug: 59 1 command.c:146 script_debug(): command - jtag newtap riscv cpu -irlen 5 -expected-id 0x249511C3 Debug: 60 1 tcl.c:567 jim_newtap_cmd(): Creating New Tap, Chip: riscv, Tap: cpu, Dotted: riscv.cpu, 4 params Debug: 61 1 tcl.c:591 jim_newtap_cmd(): Processing option: -irlen Debug: 62 1 tcl.c:591 jim_newtap_cmd(): Processing option: -expected-id Debug: 63 1 core.c:1488 jtag_tap_init(): Created Tap: riscv.cpu @ abs position 0, irlen 5, capture: 0x1 mask: 0x3 Debug: 64 1 command.c:146 script_debug(): command - jtag names TAP: riscv.cpu

Debug: 65 1 command.c:146 script_debug(): command - target create riscv.cpu riscv -chain-position riscv.cpu -rtos riscv Debug: 66 1 target.c:2004 target_free_all_working_areas_restore(): freeing all working areas Debug: 67 1 riscv_debug.c:25 riscv_create_rtos(): RISC-V Debug 'RTOS' created: this doesn't mean you're running an RTOS, just that you have multi-hart support on RISC-V Error: 68 1 riscv_debug.c:34 riscv_create_rtos(): -rtos riscv is deprecated and will be removed at the end of 2020! Until Error: 69 1 riscv_debug.c:35 riscv_create_rtos(): then, you can still use it by adding enable_rtos_riscv to your Error: 70 1 riscv_debug.c:36 riscv_create_rtos(): configuration. Error: 71 1 riscv_debug.c:37 riscv_create_rtos(): Please change your configuration to use -rtos hwthread instead. To do Error: 72 1 riscv_debug.c:38 riscv_create_rtos(): that, you will have to explicitly list every hart in the system as a separate Error: 73 1 riscv_debug.c:39 riscv_create_rtos(): target. See Error: 74 1 riscv_debug.c:40 riscv_create_rtos(): https://github.com/riscv/riscv-tests/blob/ec6537fc4a527ca88be2f045e01c460e640ab9c5/debug/targets/SiFive/HiFiveUnleashed.cfg#L11 Error: 75 1 riscv_debug.c:41 riscv_create_rtos(): for an example. User : 76 1 command.c:692 command_run_line(): [gzl@gzl tb]$

############################################################# I don't know how to solve the problem.@ShraddhaDevaiya @noytzach,do you any ideas? Thank you very much!

gz2023 avatar Nov 20 '20 10:11 gz2023