2 Replies Latest reply on Jan 26, 2016 10:18 PM by mkochhal

    Unable to program the external serial flash by IDE

    clarkwu

      Hi all,

       

      I am working on WiCED SDK 3.3.1. My board equipped with STM32F417 + BCM43341, but no FT2232. I was using an external debugger (JLINK) to program the WiCED bootloader, DCT, and APP BIN files into STM32's internal flash. It works well so far. However, in OTA app, I need to program the external SPI flash (MX25L1606E, 2MB) by WiCED SDK IDE. When I building my target with "download download_apps run", the IDE console displays OpenOCD error message below.

       

      Downloading Bootloader ...

      Building apps lookup table

      "**** 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. ****"

      Downloading apps lookup table at 0x0000...

      tools/makefiles/wiced_apps.mk:143: recipe for target 'APPS_LUT_DOWNLOAD' failed

      make.exe[1]: *** [APPS_LUT_DOWNLOAD] Error 1

      Makefile:190: recipe for target 'main_app' failed

      make: *** [main_app] Error 2

       

      Is there any hint for me to solve the OpenOCD problem? Or, is any other way to program the external flash by JLINK debugger?

       

      Regards,

      Clark