13 Replies Latest reply on Oct 28, 2016 3:26 PM by ghouse

    Unable to flash in MurataYD using Olimex ARM-USB-OCD-H (OpenOCD)

    pranay

      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 ?