sifive / freedom

Source files for SiFive's Freedom platforms
Apache License 2.0
1.11k stars 286 forks source link

Error: Target not examined yet #127

Open nf9 opened 5 years ago

nf9 commented 5 years ago

Hello, I have successfully build and uploaded Freedom E300 on my Arty Rev. C board using Vivado 2018.3. OpenOCD can detect the core but when I send telnet command to it, it returns Error: Target not examined yet

nf@ubuntu:~/opt/FreedomStudio/SiFive/riscv-openocd/riscv-openocd-0.10.0-2019.05.1/bin$ ./openocd -f /home/nf/ws/RISCV/freedom-e310-arty-hello/bsp/openocd.cfg 
Open On-Chip Debugger 0.10.0+dev (SiFive OpenOCD 0.10.0-2019.05.1)
Licensed under GNU GPL v2
For bug reports:
    https://github.com/sifive/freedom-tools/issues
adapter speed: 10000 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
1
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 10000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x20000913 (mfg: 0x489 (SiFive, Inc.), part: 0x0000, ver: 0x2)
Info : Listening on port 3333 for gdb connections
Info : accepting 'telnet' connection on tcp/4444
Error: Target not examined yet

Any ideas?

erikdanie commented 5 years ago

Hi,

For issues like this, I recommend posting on the SiFive Forums

How are you sending a telnet command to it? And does that Error line only pop up when you try to send a command?

nf9 commented 5 years ago

I open another terminal and run telnet to the target OpenOCD. That is correct. When I try to send a command (init, reset, flash, etc) it returns Error: Target not examined yet

erikdanie commented 5 years ago

Can you add the -d flag to the terminal where you are running openocd (i.e. openocd -f xxx.cfg -d) and see the results that get spit out when it errors out?

nf9 commented 5 years ago

please see on SiFive Forums