Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to halt Hart 992 #1143

Open
RenatoBelmonte opened this issue Oct 4, 2024 · 6 comments
Open

Unable to halt Hart 992 #1143

RenatoBelmonte opened this issue Oct 4, 2024 · 6 comments

Comments

@RenatoBelmonte
Copy link

After I added a module to pulp_soc and synthesized PULPissimo for zcu102 I'm struggling with openocd, this is the result of the debug view. I've installed the patched version of openocd through pulp-sdk and I'm using the last version of PULPissimo

Error: 11368 1888 riscv-013.c:3090 riscv013_halt_go(): unable to halt hart 992
Error: 11369 1888 riscv-013.c:3091 riscv013_halt_go():   dmcontrol=0x83e00001
Error: 11370 1888 riscv-013.c:3092 riscv013_halt_go():   dmstatus =0x00000c82
Error: 11371 1888 riscv-013.c:1594 examine(): Fatal: Hart 992 failed to halt during examine()
Debug: 11372 1888 openocd.c:161 handle_init_command(): target examination failed
Debug: 11373 1888 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash init
Debug: 11374 1888 command.c:143 script_debug(): command - ocd_flash ocd_flash init
Debug: 11376 1888 tcl.c:1222 handle_flash_init_command(): Initializing flash devices...
Debug: 11377 1888 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_mflash init
Debug: 11378 1888 command.c:143 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 11380 1888 mflash.c:1377 handle_mflash_init_command(): Initializing mflash devices...
Debug: 11381 1888 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_nand init
Debug: 11382 1888 command.c:143 script_debug(): command - ocd_nand ocd_nand init
Debug: 11384 1888 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 11385 1888 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_pld init
Debug: 11386 1888 command.c:143 script_debug(): command - ocd_pld ocd_pld init
Debug: 11388 1888 pld.c:205 handle_pld_init_command(): Initializing PLDs...
Debug: 11389 1888 gdb_server.c:3425 gdb_target_start(): starting gdb server for riscv.cpu on 3333
Info : 11390 1888 server.c:310 add_service(): Listening on port 3333 for gdb connections
Debug: 11391 1889 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_halt
Debug: 11392 1889 command.c:143 script_debug(): command - halt ocd_halt
Debug: 11394 1889 target.c:3059 handle_halt_command(): -
Error: 11395 1889 target.c:573 target_halt(): Target not examined yet
@en-sc
Copy link
Collaborator

en-sc commented Oct 4, 2024

Please, attach a verbose OpenOCD log.
It can be obtained by adding -d3 in the command line or by specifying debug_level 3 in your config file (or via Telnet).
The log can be redirected to a file via -l or log_output respectively.

@RenatoBelmonte
Copy link
Author

openocd_d3.log

@en-sc
Copy link
Collaborator

en-sc commented Oct 4, 2024

I've installed the patched version of openocd

Can you please provide the link to this patched OpenOCD version's sources?

@RenatoBelmonte
Copy link
Author

https://github.com/pulp-platform/riscv-openocd

I think that the only change is the maximum number of harts

@en-sc
Copy link
Collaborator

en-sc commented Oct 4, 2024

Maybe you could attempt using RISCV OpenOCD?
04d8cfc adds support for up to 2048 harts (the same as the patch from the fork).

The version you are using is out of date. There are quite a few commits in RISC-V OpenOCD that could help with your issue (e.g. 418fcf1 makes DM examination compliant with RISC-V Debug Spec v1.0).

@RenatoBelmonte
Copy link
Author

Thank you for your reply. I'll try and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants