4 Replies Latest reply on Jul 11, 2016 9:19 AM by GeSc_2134251

    OpenOCD with Olimex in WICED 3.5.2

    GeSc_2134251

      Hello Community,

       

      I already have a project running fine in WICED Version 2.4.1

      I'm using a murata SN8205-Board with Olimex ARM-USB-TINY-H as JTAG Adapter.

       

      Now I want to migrate to WICED 3.5.2 and it fails in getting OpenOCD running at the moment.

      I installed the new libusb-drivers from  libusb-win32 -  Browse /libusb-win32-releases/1.2.6.0 at SourceForge.net  as it was suggested in tools/OpenOCD/Olimex_README.txt. I also tried different drivers such as WinUSB installed via zadig, but nothing I tried leads to success.

       

      Usig the libusb-driver I get the following openocd_log:

      Open On-Chip Debugger 0.9.0-00029-gafd5db2-dirty (2015-05-29-18:47)
      Licensed under GNU GPL v2
      For bug reports, read
          http://openocd.org/doc/doxygen/bugs.html
      Info : only one transport option; autoselect 'jtag'
      trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
      adapter speed: 1000 kHz
      adapter_nsrst_delay: 100
      jtag_ntrst_delay: 100
      Warn : target name is deprecated use: 'cortex_m'
      jtag_init
      Warn : Using DEPRECATED interface driver 'ft2232'
      Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
      Info : max TCK change to: 30000 kHz
      Info : clock speed 1000 kHz
      Error: JTAG scan chain interrogation failed: all ones
      Error: Check JTAG interface, timings, target power, etc.
      Error: Trying to use configured scan chain anyway...
      Error: stm32f2xxx.cpu: IR capture error; saw 0x0f not 0x01
      Warn : Bypassing JTAG setup events due to errors
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      Warn : Invalid ACK 0x7 in JTAG-DP transaction
      embedded:startup.tcl:21: Error: 
      in procedure 'init' called at file "./tools/OpenOCD/stm32f2x-flash-app.cfg", line 10
      in procedure 'ocd_bouncer' 
      in procedure 'jtag_init' called at file "../../../openocd/src/jtag/core.c", line 1578
      in procedure 'stm32f2xxx.cpu' called at file "./tools/OpenOCD/stm32f2x.cfg", line 94
      in procedure 'ocd_bouncer' 
      at file "embedded:startup.tcl", line 21
      embedded:startup.tcl:21: Error: 
      in procedure 'jtag_init' called at file "../../../openocd/src/jtag/core.c", line 1578
      in procedure 'stm32f2xxx.cpu' called at file "./tools/OpenOCD/stm32f2x.cfg", line 94
      in procedure 'ocd_bouncer' 
      at file "embedded:startup.tcl", line 21
      

       

      Anyone who can give me a hint with this?

       

      Regards,

      Georg

        • 1. Re: OpenOCD with Olimex in WICED 3.5.2
          GeSc_2134251

          FYI: Meanwhile I solved the Problem. Actually I just had to use the correct driver...

          1 of 1 people found this helpful
          • 2. Re: OpenOCD with Olimex in WICED 3.5.2
            shra_2185826

            Hi,

             

            I have a MurataYD chip with an external serial flash.

            I am trying to flash it using OLIMEX ARM-USB-OCD-H but getting below error.

            >>set JTAG_CFG=/WICED-SDK-3.5.2/tools/OpenOCD/scripts/interface/olimex-arm-usb-ocd-h.cfg

            >>set MCU_CFG=/WICED-SDK-3.5.2/tools/OpenOCD/stm32f2x.cfg

            >>set FLASH_CFG=/WICED-SDK-3.5.2/tools/OpenOCD/stm32f2x-flash-app.cfg

            >>.\tools\OpenOCD\Win32>openocd-all-brcm-libftdi.exe -f %JTAG_CFG% -f %MCU_CFG% -f %FLASH_CFG% -c "flash write_image erase ../../../build/waf.bootloader-NoOS-MurataTypeYD/binary/waf.bootloader-NoOS-MurataTypeYD.elf" -c shutdown

            Open On-Chip Debugger 0.9.0-00029-gafd5db2-dirty (2015-05-29-18:47)

            Licensed under GNU GPL v2

            For bug reports, read

                    http://openocd.org/doc/doxygen/bugs.html

            Info : only one transport option; autoselect 'jtag'

            trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst

            adapter speed: 1000 kHz

            adapter_nsrst_delay: 100

            jtag_ntrst_delay: 100

            Warn : target name is deprecated use: 'cortex_m'

            jtag_init

            Warn : Using DEPRECATED interface driver 'ft2232'

            Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...

            Error: unable to open ftdi device: device not found

             

            When I changed the JTAG_CFG to ftdi interface than error is removed, but now I am getting different error as below:-

            >>set JTAG_CFG=/WICED-SDK-3.5.2/tools/OpenOCD/scripts/interface/ftdi/olimex-arm-usb-ocd-h.cfg

            >>.\tools\OpenOCD\Win32>openocd-all-brcm-libftdi.exe -f %JTAG_CFG% -f %MCU_CFG% -f %FLASH_CFG% -c "flash write_image erase ../../../build/waf.bootloader-NoOS-MurataTypeYD/binary/waf.bootloader-NoOS-MurataTypeYD.elf" -c shutdown

            Open On-Chip Debugger 0.9.0-00029-gafd5db2-dirty (2015-05-29-18:47)

            Licensed under GNU GPL v2

            For bug reports, read

                    http://openocd.org/doc/doxygen/bugs.html

            adapter speed: 1000 kHz

            adapter_nsrst_delay: 100

            Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

            jtag_ntrst_delay: 100

            Warn : target name is deprecated use: 'cortex_m'

            jtag_init

            Info : clock speed 1000 kHz

            Error: BUG: can't assert SRST

            in procedure 'init' called at file "D:/BISSELL/SVN_BISSELL/WICED-SDK-3.5.2/WICED-SDK-3.5.2/tools/OpenOCD/stm32f2x-flash-app.cfg", line 10

            in procedure 'ocd_bouncer'

             

            My question is:-

            Is it OK to flash with Olimex ARM-USB-OCD-H ?

            Or support is available only for TINY, TINY-H and OCD, not OCD-H ?

            • 3. Re: OpenOCD with Olimex in WICED 3.5.2
              SeyhanA_31

              Hi,

               

              Make sure the correct driver is loaded for the EVK.

              Driver is located in the SDK, .../tools/drivers/BCM9WCD1EVAL1

               

              If the you do not see the "WICED USB JTAG Port" in your "Device Manager", assuming you are using Windows as host, take a look at WICED FTDI Chip Programming (2) via Script  and run the provided "Prog_BCM9WCD1EVAL1.bat" file to program the FTDI chip on the EVK.

               

              Seyhan

              • 4. Re: OpenOCD with Olimex in WICED 3.5.2
                GeSc_2134251

                After I got WICED 3.5.2 working with Olimex_ARM-USB-TINY-H using the libusb driver from sourcefourge.net (Version 1.2.6.0) I now have the same trouble when moving to WICED 3.7.0 Every attempt to flash the WiFi-Board with Olimex leads to the same entry in openocd_log I wrote in the original post.

                 

                SeyhanA_31 the driver in the .../tools/drivers/BCM9WCD1EVAL1 directory don't work with the Olimex flasher...

                 

                Help, please...

                 

                Georg