openocd for ADSP-SC589 gives Error: session transport was not selected. Use 'transport select <transport>'

I am following below document for environment setup, porting Uboot on ADSP-SC589 EZ Board:

https://download.analog.com/tools/LinuxAddInForCCES/documentation/Linux_Add-in_User's_Guide-1.2.0.pdf

When i run openocd command, I am getting following error:

root@nikesh:/opt/analog/cces/2.8.2/ARM/openocd/share/openocd/scripts# /opt/analog/cces/2.8.2/ARM/openocd/bin/openocd -f interface/ice1000.cfg target/adspsc58x.cfg


Open On-Chip Debugger (Analog Devices CCES 2.8.0 OpenOCD 0.9.0-g5030ad7) 0.9.0
Licensed under GNU GPL v2
Report bugs to <processor.tools.support@analog.com>
adapter speed: 1000 kHz
Info : ICE-1000 firmware version is 1.0.2
Info : clock speed 1000 kHz
Error: session transport was not selected. Use 'transport select <transport>'
Error: Transports available:
Error: jtag
Error: swd
in procedure 'init'
in procedure 'ocd_bouncer'

What would be the reason for this?

I did following connections,

  1. Connected power cable to P22.
  2. J2 port of ICE-1000 mounted on P3 port of ADSP-SC589 EZ Board’s P3 port.
  3. MicroUSB-to-USB cable connected to USB to UART port (P8) of EZ Board.
  4. MicroUSB-to-USB cable connected to P1 port of ICE-1000.
  5. Ethernet cable connected to J2 of EZ Board.

Let me know if I am missing any connection.

Thanks,

Nikesh

Top Replies

Parents Reply Children
  • Thanks Gregchen,

    Can you also share Patched 1.2.0 kernel images.

  • Thanks Gregchen, it worked with your uboot image, I am able to ping between host and board.

    I applied kernel patch and created uImage and loaded it on board using command "run ramboot". Kernel loaded successfully but I am not able to get console(shell prompt), kernel loading gets stucked at below log:

    dwmmc_adi mmc.0: num-slots property not found, assuming 1 slot is available
    dwmmc_adi mmc.0: IDMAC supports 32-bit address mode.
    dwmmc_adi mmc.0: Using internal DMA controller.
    dwmmc_adi mmc.0: Version ID is 270a
    dwmmc_adi mmc.0: DW MMC controller at irq 102, 32 bit host data width, 1024 deep fifo
    dwmmc_adi mmc.0: No vmmc regulator found
    dwmmc_adi mmc.0: No vqmmc regulator found
    dwmmc_adi mmc.0: 1 slots initialized
    Blackfin hardware CRC crypto driver
    bfin-hmac-crc 31001200.crc: initialized
    bfin-hmac-crc 31001300.crc: initialized
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    icc 20080000.icc: initialized
    TCP: cubic registered
    NET: Registered protocol family 17
    can: controller area network core (rev 20120528 abi 9)
    NET: Registered protocol family 29
    can: raw protocol (rev 20120528)
    can: broadcast manager protocol (rev 20120528 t)
    can: netlink gateway (rev 20130117) max_hops=1
    do_initcall_level level 7
    ThumbEE CPU extension supported.
    console [netcon0] enabled
    netconsole: network logging started
    rtc-adi2 310c8000.rtc: setting system clock to 1970-01-01 00:34:27 UTC (2067)
    IP-Config: Complete:
    device=eth0, hwaddr=02:80:ad:20:31:e8, ipaddr=192.168.0.15, mask=255.255.255.0, gw=192.168.0.1
    host=sc58x, domain=, nis-domain=(none)
    bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
    ALSA device list:
    No soundcards found.
    Freeing unused kernel memory: 16896K (c0524000 - c15a4000)
    random: dd urandom read with 37 bits of entropy available
    stmmaceth 3100c000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    random: nonblocking pool is initialized

    There is not progress after this and not able to get shell console. 

    Can you please share Patched 1.2.0 kernel images.

    Thanks Gregchen.

  • Hi Gregchen,

    I am able to boot the board with our patched uImage. I loaded uboot using tftp, and also able to load kernel but when i restart the board, uboot doesnt get loaded. I have to load it from gdb every time i reboot the board. Can you let me know how can I save uboot to flash memory so that it will get loaded every time i reboot the board.

    Regards,

    Nikesh

  • 0
    •  Analog Employees 
    on Jan 23, 2019 11:44 AM over 1 year ago in reply to nikeshspatil@eaton.com

    Hi Nikesh,

    this is documented in the User Guide (version 1.2.0 of the User Guide lists the steps in section 2.1.3 Flashing U-Boot for the first time).

    It is strongly recommended that when starting out that users follow all instructions in Chapter 2 of the User guide to avoid problems while getting the system up and running.

    Regards,

    Dave

  • Thanks Dave,

    I did these steps many times, its not working as expected. In document, in section "Flash U-Boot to SPI Flash", after loading uboot and saving it, its asked to "BMODE switch set to position 1". So what should be the position of BMODE switch while flashing U-Boot for first time?

    Regards,

    Nikesh