Post Go back to editing

Can OpenOCD connect to SC594 without ICE-1000/2000?

Category: Software
Product Number: ADSP-SC594
Software Version: Linux 3.0.0

I'd like to flash a Linux 3.0.0 U-Boot image without ICE-1000/2000.

Because I'm using on-board debug agent of EV-SOMCRR-EZKIT.

I tried to connect to my development board by OpenOCD and adi-dbgagent.cfg, but following error was happened.

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 064b:2503 Analog Devices, Inc. (White Mountain DSP)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ /opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/bin/openocd -f /opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/share/openocd/scripts/interface/adi-dbgagent.cfg -f /opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/share/openocd/scripts/target/adspsc59x.cfg

Open On-Chip Debugger (PKGVERSION) OpenOCD 0.10.0-gf73da81ab (2023-11-29-05:28)
Licensed under GNU GPL v2
Report bugs to <processor.tools.support@analog.com>
Info : only one transport option; autoselect 'jtag'
adapter speed: 5000 kHz

Info : halt and restart using CTI
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: cannot connect to the degug agent

Is there any solution for the problem?

  • I resolved the issue.

    The device's access permission was not allowed.
    So I did following command then succeeded.

    $ sudo /opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/bin/openocd -f /opt/adi-distro-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/share/openocd/scripts/interface/adi-dbgagent.cfg -f /opt/adi-distr
    o-glibc/3.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/share/openocd/scripts/target/adspsc59x.cfg
    Open On-Chip Debugger (PKGVERSION) OpenOCD 0.10.0-gf73da81ab (2023-11-29-05:28)
    Licensed under GNU GPL v2
    Report bugs to <processor.tools.support@analog.com>
    Info : only one transport option; autoselect 'jtag'
    adapter speed: 5000 kHz

    Info : halt and restart using CTI
    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 4444 for telnet connections
    Info : ADI Debug Agent firmware version is 0.0.8
    Info : clock speed 5000 kHz
    Info : JTAG tap: adspsc59x.adjc tap/device found: 0x028240cb (mfg: 0x065 (Analog Devices), part: 0x2824, ver: 0x0)
    Info : JTAG tap: adspsc59x.cpu enabled
    Info : DAP adspsc59x.cpu DPIDR indicates ADIv5 protocol is being used
    Info : adspsc59x.cpu: hardware has 3 breakpoints, 2 watchpoints
    Info : starting gdb server for adspsc59x.cpu on 3333
    Info : Listening on port 3333 for gdb connections

    Thank you.