I have installed the OpenOCD from the link given in the Makefile of the tutorials (https://github.com/openrisc/tutorials/releases/download/2016.1/openocd.tgz). I have programmed the De0_ano board with the de0_nano.jic file generated by the FuseSoC using the Altera programmer. Then, I tried to start the OpenOCD using the command given in the tutorials :
openocd -s ${OPENOCD}/share/openocd/scripts/ -f interface/altera-usb-blaster.cfg -f ../or1k-dev.tcl
But, when I run this, I am getting the following errors. Can someone please help me with this ?
$sudo ../../tools/openocd/bin/openocd -s ../../tools/openocd/share/openocd/scripts/ -f interface/altera-usb-blaster.cfg -f ../or1k-dev.tcl
Open On-Chip Debugger 0.10.0-dev-00247-g73b676c (2016-03-20-13:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
Info : vjtag tap selected
Info : adv debug unit selected
Info : Option 7 is passed to adv debug unit
Info : set servers polling period to 1ms
Info : No lowlevel driver configured, will try them all
Info : usb blaster interface using libftdi
Info : This adapter doesn't support configurable speed
Error: ftdi_read_data: usb bulk read failed
Info : TAP or1200.cpu does not have IDCODE
Info : TAP auto0.tap does not have IDCODE
Info : TAP auto1.tap does not have IDCODE
Info : TAP auto2.tap does not have IDCODE
Info : TAP auto3.tap does not have IDCODE
Info : TAP auto4.tap does not have IDCODE
Info : TAP auto5.tap does not have IDCODE
Info : TAP auto6.tap does not have IDCODE
Info : TAP auto7.tap does not have IDCODE
Info : TAP auto8.tap does not have IDCODE
Info : TAP auto9.tap does not have IDCODE
Info : TAP auto10.tap does not have IDCODE
Info : TAP auto11.tap does not have IDCODE
Info : TAP auto12.tap does not have IDCODE
Info : TAP auto13.tap does not have IDCODE
Info : TAP auto14.tap does not have IDCODE
Info : TAP auto15.tap does not have IDCODE
Info : TAP auto16.tap does not have IDCODE
Info : TAP auto17.tap does not have IDCODE
Info : TAP auto18.tap does not have IDCODE
Info : TAP auto19.tap does not have IDCODE
Warn : Unexpected idcode after end of chain: 21 0x00000000
Warn : Unexpected idcode after end of chain: 53 0x00000000
Warn : Unexpected idcode after end of chain: 85 0x00000000
Warn : Unexpected idcode after end of chain: 117 0x00000000
Warn : Unexpected idcode after end of chain: 149 0x00000000
Warn : Unexpected idcode after end of chain: 181 0x00000000
Warn : Unexpected idcode after end of chain: 213 0x00000000
Warn : Unexpected idcode after end of chain: 245 0x00000000
Warn : Unexpected idcode after end of chain: 277 0x00000000
Warn : Unexpected idcode after end of chain: 309 0x00000000
Warn : Unexpected idcode after end of chain: 341 0x00000000
Warn : Unexpected idcode after end of chain: 373 0xfffff800
Error: double-check your JTAG setup (interface, speed, ...)
Error: Trying to use configured scan chain anyway...
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x00000000"
Error: auto0.tap: IR capture error; saw 0x0003 not 0x0001
Warn : Bypassing JTAG setup events due to errors
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Error: Couldn't read the CPU state
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 1 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 2 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 3 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 4 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 5 of 5
Error: Could not re-establish communication with target
Error: Error while calling or1k_is_cpu_running
Polling target or1200.cpu failed, trying to reexamine
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Error: Couldn't read the CPU state
Examination failed, GDB will be halted. Polling again in 100ms
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 1 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 2 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 3 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 4 of 5
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : Debug IF CPU control reg read failure.
Warn : Resetting JTAG TAP state and reconnectiong to debug IF.
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Warn : ...attempt 5 of 5
Error: Could not re-establish communication with target
Error: Error while calling or1k_is_cpu_running
Polling target or1200.cpu failed, trying to reexamine
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Error: Couldn't read the CPU state
Examination failed, GDB will be halted. Polling again in 300ms
Halting processor
Warn : Target was in unknown state when halt was requested
Error: No VJTAG TAP instance found !
Error: TAP initialization failed
Error: Impossible to stall the CPU
Hello All,
I have installed the OpenOCD from the link given in the Makefile of the tutorials (https://github.com/openrisc/tutorials/releases/download/2016.1/openocd.tgz). I have programmed the De0_ano board with the de0_nano.jic file generated by the FuseSoC using the Altera programmer. Then, I tried to start the OpenOCD using the command given in the tutorials : openocd -s ${OPENOCD}/share/openocd/scripts/ -f interface/altera-usb-blaster.cfg -f ../or1k-dev.tcl
But, when I run this, I am getting the following errors. Can someone please help me with this ? $sudo ../../tools/openocd/bin/openocd -s ../../tools/openocd/share/openocd/scripts/ -f interface/altera-usb-blaster.cfg -f ../or1k-dev.tcl Open On-Chip Debugger 0.10.0-dev-00247-g73b676c (2016-03-20-13:27) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Warn : Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only Info : only one transport option; autoselect 'jtag' Info : vjtag tap selected Info : adv debug unit selected Info : Option 7 is passed to adv debug unit Info : set servers polling period to 1ms Info : No lowlevel driver configured, will try them all Info : usb blaster interface using libftdi Info : This adapter doesn't support configurable speed Error: ftdi_read_data: usb bulk read failed Info : TAP or1200.cpu does not have IDCODE Info : TAP auto0.tap does not have IDCODE Info : TAP auto1.tap does not have IDCODE Info : TAP auto2.tap does not have IDCODE Info : TAP auto3.tap does not have IDCODE Info : TAP auto4.tap does not have IDCODE Info : TAP auto5.tap does not have IDCODE Info : TAP auto6.tap does not have IDCODE Info : TAP auto7.tap does not have IDCODE Info : TAP auto8.tap does not have IDCODE Info : TAP auto9.tap does not have IDCODE Info : TAP auto10.tap does not have IDCODE Info : TAP auto11.tap does not have IDCODE Info : TAP auto12.tap does not have IDCODE Info : TAP auto13.tap does not have IDCODE Info : TAP auto14.tap does not have IDCODE Info : TAP auto15.tap does not have IDCODE Info : TAP auto16.tap does not have IDCODE Info : TAP auto17.tap does not have IDCODE Info : TAP auto18.tap does not have IDCODE Info : TAP auto19.tap does not have IDCODE Warn : Unexpected idcode after end of chain: 21 0x00000000 Warn : Unexpected idcode after end of chain: 53 0x00000000 Warn : Unexpected idcode after end of chain: 85 0x00000000 Warn : Unexpected idcode after end of chain: 117 0x00000000 Warn : Unexpected idcode after end of chain: 149 0x00000000 Warn : Unexpected idcode after end of chain: 181 0x00000000 Warn : Unexpected idcode after end of chain: 213 0x00000000 Warn : Unexpected idcode after end of chain: 245 0x00000000 Warn : Unexpected idcode after end of chain: 277 0x00000000 Warn : Unexpected idcode after end of chain: 309 0x00000000 Warn : Unexpected idcode after end of chain: 341 0x00000000 Warn : Unexpected idcode after end of chain: 373 0xfffff800 Error: double-check your JTAG setup (interface, speed, ...) Error: Trying to use configured scan chain anyway... Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x00000000" Error: auto0.tap: IR capture error; saw 0x0003 not 0x0001 Warn : Bypassing JTAG setup events due to errors Error: No VJTAG TAP instance found ! Error: TAP initialization failed Error: Couldn't read the CPU state Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 1 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 2 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 3 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 4 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 5 of 5 Error: Could not re-establish communication with target Error: Error while calling or1k_is_cpu_running Polling target or1200.cpu failed, trying to reexamine Error: No VJTAG TAP instance found ! Error: TAP initialization failed Error: Couldn't read the CPU state Examination failed, GDB will be halted. Polling again in 100ms Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 1 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 2 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 3 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 4 of 5 Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : Debug IF CPU control reg read failure. Warn : Resetting JTAG TAP state and reconnectiong to debug IF. Error: No VJTAG TAP instance found ! Error: TAP initialization failed Warn : ...attempt 5 of 5 Error: Could not re-establish communication with target Error: Error while calling or1k_is_cpu_running Polling target or1200.cpu failed, trying to reexamine Error: No VJTAG TAP instance found ! Error: TAP initialization failed Error: Couldn't read the CPU state Examination failed, GDB will be halted. Polling again in 300ms Halting processor Warn : Target was in unknown state when halt was requested Error: No VJTAG TAP instance found ! Error: TAP initialization failed Error: Impossible to stall the CPU