8 Replies Latest reply on Jul 21, 2019 11:11 PM by KotnaniK_71

    PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced

    ShAb_4059181

      I am using the pioneer kit CY8CKIT_062 with WiFi-BT.

      When I compile and flash the kit using WICED, I get the following error

       

       

      Building apps lookup table

      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 resources filesystem ... build/demo.aws.iot.pub_sub.publisher-CY8CKIT_062/filesystem.bin at sector 1  size 97...

      tools/makefiles/wiced_apps.mk:334: recipe for target 'FILESYSTEM_IMAGE_DOWNLOAD' failed

      1. make.exe[1]: *** [FILESYSTEM_IMAGE_DOWNLOAD] Error 1
      2. make.exe[1]: *** Waiting for unfinished jobs....

      Makefile:351: recipe for target 'main_app' failed

      make: *** [main_app] Error 2

       

      10:59:23 Build Finished (took 20s.89ms)

       

       

      The content of the openOCD.log file is

      Open On-Chip Debugger 0.10.0+dev-00227-g0d15c62 (2018-03-27-15:19)

      Licensed under GNU GPL v2

      For bug reports, read

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

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

      adapter speed: 1000 kHz

      cortex_m reset_config sysresetreq

      cortex_m reset_config vectreset

      post_init_psoc6_setup

      Error: CMSIS-DAP: SWD not supported

       

       

      I am using Programmer 3.28.4.  A snapshot of what programmer shows is attached


        • 1. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
          KotnaniK_71

          Hi,

           

          Could you please provide the screenshot of your device manager window?

          • 3. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
            KotnaniK_71

            Hi,

             

            Could you please try to change the mode of SW4 switch and update us.

            • 4. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
              ShAb_4059181

              before pressing SW4, the state of the LEDs are as follows:

               

              LED2 Blinking yellow

              LED3 off

              LED1 off

              LED4 solid yellow

               

              When I press SW4

              LED2 Blinking Yellow

              LED3 Solid Green

              LED1 Solid Red

              LED4 Off

               

              WHen I compile and download, I get

               

              Building apps lookup table

              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 resources filesystem ... build/demo.aws.iot.pub_sub.publisher-CY8CKIT_062/filesystem.bin at sector 1  size 97...

              tools/makefiles/wiced_apps.mk:334: recipe for target 'FILESYSTEM_IMAGE_DOWNLOAD' failed

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

              make.exe[1]: *** Waiting for unfinished jobs....

              Makefile:351: recipe for target 'main_app' failed

              make: *** [main_app] Error 2

               

               

              08:41:30 Build Finished (took 19s.35ms)

               

               

              the content of the openocd_log.txt is

               

              Open On-Chip Debugger 0.10.0+dev-00227-g0d15c62 (2018-03-27-15:19)

              Licensed under GNU GPL v2

              For bug reports, read

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

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

              adapter speed: 1000 kHz

              cortex_m reset_config sysresetreq

              cortex_m reset_config vectreset

              post_init_psoc6_setup

              Error: unable to find CMSIS-DAP device

               

              Thank you for your help

              • 5. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
                KotnaniK_71

                Hi,

                 

                The firmware version required for CMSIS-DAP is 1.10.

                Info : CMSIS-DAP: FW Version = 1.10

                 

                It can be found from openocd_log.txt file in build folder.

                 

                Kindly update the DAPLink Firmware and to update the firmware, please refer the below KitProg3 user guide link :

                 

                https://www.cypress.com/file/452701/download

                 

                Thanks.

                • 6. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
                  ShAb_4059181

                  I try to use the programmer to upgrade the firmware, but I remain on the same version of the firmware.

                   

                  Would you kindly provide  specific instructions.

                   

                  Shukri

                  • 7. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
                    ShAb_4059181

                    I upgraded using the command below fw-loader.exe –update-kp3, but programmer wants me to revert.  See programmer’s output below

                     

                    C:\Users\sabdalla\ModusToolbox_1.1\tools\fw-loader-2.1\bin>fw-loader.exe --update-kp3

                    Cypress Firmware Updater, Version: 2.1.0.52

                    (C) Copyright 2018-2019 by Cypress Semiconductor

                    All Rights Reserved

                     

                    Info: Start API initialization

                    Info: Connected - KitProg3 CMSIS-DAP HID-04170E6C03227400

                    Info: Hardware initialization complete (633 ms)

                    Device 'KitProg3 CMSIS-DAP HID-04170E6C03227400' opened successfully

                    Info: Kit FW is 'KitProg3' ver. 1.01 b158.  Upgrade file is 'KitProg3' ver. 1.10 b2946. Upgrade file contains a Custom App.

                    Info: Disconnected - KitProg3 CMSIS-DAP HID-04170E6C03227400

                    Info: Connected - KitProg Bootloader-04170E6C03227400

                    Info: Bootloader Version: Major 1, Minor 1, Build 40

                    Info: FW Upgrade to version: 1.10 b2946. Upgrade of Custom App

                    Info: Bootloading of Custom App...

                    Info: Verifying of Custom App...

                    Info: Bootloading of KitProg FW...

                    Info: Verifying of KitProg FW...

                    Info: Upgrade completed

                    Info: Disconnected - KitProg Bootloader-04170E6C03227400

                    Info: Connected - KitProg3 CMSIS-DAP HID-04170E6C03227400

                    FW update completed successfully

                     

                     

                     

                     

                    • 8. Re: PSOC6 - CY8CKIT-062-WIFI-BT Cannot Program using Wiced
                      KotnaniK_71

                      Hi,

                       

                      Can you please try now programming through Wiced by using SW4 switch in DAP link mode and let us know if downloading the resource file system is happening or not.

                       

                      Thanks.