2 Replies Latest reply on Apr 16, 2015 12:42 PM by seyhan

    Debug using Wiced 3.1.2 and STLink

    ckc006

      I have a board which has an ST microprocessor and BCM Wiced module. The ST Micro uses ST Link for debug. I followed the thread

      SN8000 WiFi Module with STM Discovery Board in my attempt to get STLink working. I know the OCD (V4) delivered with Wiced needs the configuration stlink.cfg to work so I grabbed the config file from the standard distribution of OCD to make it work.

      My command is "snip.gpio-BCM943362WCD4-debug JTAG=stlink-v2 download"

      I keep getting an error:

      I'm working with Wiced 3.1.2 and trying to connect to the board but I keep getting:

      Downloading Bootloader ...

      "**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"

      Downloading DCT ...

      "**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"

      Downloading Application ...

      "**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"

       

      I've also experimented with a couple of variants of the config files to get it working with no changes.

      Any ideas?