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

Yaml file not found even existed #16

Open
sreenivasa-0623 opened this issue Jun 26, 2021 · 9 comments
Open

Yaml file not found even existed #16

sreenivasa-0623 opened this issue Jun 26, 2021 · 9 comments

Comments

@sreenivasa-0623
Copy link

prabath@prabath-VirtualBox:~/openocd_riscv$ src/openocd -c 'set VEXRISCV_YAML /home/verilator/Vexriscv/cpu0.yaml' -f tcl/target/vexriscv_sim.cfg
Open On-Chip Debugger 0.10.0+dev-01236-gc974c1b7-dirty (2021-06-25-19:56)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
/home/verilator/Vexriscv/cpu0.yaml
DEPRECATED! use 'adapter driver' not 'interface'
Info : only one transport option; autoselect 'jtag'
DEPRECATED! use 'adapter speed' not 'adapter_khz'
DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'
Info : set servers polling period to 50ms
Error: cpuConfigFile /home/verilator/Vexriscv/cpu0.yaml not found
Error: target 'fpga_spinal.cpu0' init failed

What to do even if the yaml file exists in the given location

@Dolu1990
Copy link
Member

Very weird,

What give
ls /home/verilator/Vexriscv/cpu0.yaml
?

@sreenivasa-0623
Copy link
Author

sreenivasa-0623 commented Jun 28, 2021 via email

@Dolu1990
Copy link
Member

So basicay, there is where things goes wrong :
https://github.com/SpinalHDL/openocd_riscv/blob/riscv_spinal/src/target/vexriscv.c#L507

I can't reproduce the issue myself.

@sreenivasa-0623
Copy link
Author

sreenivasa-0623 commented Jun 29, 2021 via email

@Dolu1990
Copy link
Member

Shouldn't quote them, but that's a starting point to start debug

@sreenivasa-0623
Copy link
Author

sreenivasa-0623 commented Jun 29, 2021 via email

@Dolu1990
Copy link
Member

That fopen fail on your environnement, which is realy weird.
You may try to hardcode some path there, to see if you can read a file.

@sreenivasa-0623
Copy link
Author

sreenivasa-0623 commented Jun 29, 2021 via email

@Dolu1990
Copy link
Member

Dolu1990 commented Jul 8, 2021

You can try to tweek the source code i pointer, to try understanding what is happing, prinf is your friend ^^

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