Skip to content

Unable to make openOCD and GDB work #4

@parisaeliasi

Description

@parisaeliasi

Hi,
I am using CW340 board and when I run
./bazelisk.sh run //third_party/openocd --
-f "util/openocd/board/cw340_ftdi.cfg"
-c "adapter speed 500; transport select jtag; reset_config trst_only"
-f util/openocd/target/lowrisc-earlgrey.cfg
I still get:
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: riscv.tap: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: dtmcontrol is 0. Check JTAG connectivity/board power.
Warn : target riscv.tap.0 examination failed
Info : starting gdb server for riscv.tap.0 on 3333
Info : Listening on port 3333 for gdb connections

I already run:
./bazel-bin/sw/host/opentitantool/opentitantool --logging info
--exec "gpio write TAP_STRAP0 false"
--exec "gpio write TAP_STRAP1 true"
no-op
Without error and with Command result: success.
However, when I check the value of TAP_STRAP0 I still have true. Perhaps something (not the software) is overwriting it. I am unable to find a solution to the issue.
The second issue is regarding OpenTitan. Do they remove the support for GDB for CW340? When installing the RISC-V toolchain, gdb is no longer installed, as it has been removed from the get-toolchain.py file. I can see only gcc there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions