10 Replies Latest reply on Sep 23, 2019 3:53 AM by AnjanaM_61

    how to use CyBluetool to download the firmware by the uart

    mawu_4270096

      Hi:

         as I know, the CyBluetool can download the bt mesh firmware by the uart interface. I have carefully read the cybluetool user guide. however I still don't know how to use the Cybluetool to download the fireware.the fireware download  steps as follows:

           The tool provides a way for the user to download firmware onto a device via a 'Firmware Download' feature which can be

      accessed from the 'Tools' menu on the menu bar.

          In order to download a firmware onto a device, the tool need not be connected to the device in prior. The Firmware Download

          interface provides options for the user to select the device and baud rate.

         The user can select the files required for downloading the firmware onto the device. On selecting a BTP file, the tool looks for

         information about the paths to the other files (minidriver, config and firmware file). If the paths to these files are provided, the

         corresponding path fields are automatically populated by the tool.

         If the user does not wish to use one of the files, it can be deselected. But at least one of config file or firmware file must be

         provided for the firmware download to be executed.

         The status progress of firmware download is displayed on the status bar. Any errors during firmware download are also

          displayed here.

       

          there are some files that need to be loaded  to the CyBluetool download

          1.  BTP file:  I don't know what is the BTP file and where I can get this file

          2.  Minidriver file: I don't know what is the BTP file and where I can get this file

          3. Config file:   I don't know what is the BTP file and where I can get this file

          4. Filewire file:  I think this is downloading  xxx.hex

        • 1. Re: how to use CyBluetool to download the firmware by the uart
          AnjanaM_61

          Hi,

           

          If you are using CYW20819 and Modus Tool box is installed,

           

          BTP file - C:\Users\......\ModusToolbox_1.1\libraries\bt_sdk-1.1\components\BT-SDK\208XX-A1_Bluetooth\platforms\208XX_OCF.btp

          Minidriver file - C:\Users\......\ModusToolbox_1.1\libraries\bt_sdk-1.1\components\BT-SDK\208XX-A1_Bluetooth\platforms\minidriver-20819A1-uart-patchram.hex

          Config file - cgs file available in the same location

          Firmware file - hex file of your application

           

          Refer to appnote : AN226546 for the file format details. : https://www.cypress.com/documentation/application-notes/an226546-cyw20819-feature-and-peripheral-guide

           

          Thanks,

          Anjana

          • 2. Re: how to use CyBluetool to download the firmware by the uart
            mawu_4270096

            Hi Anjana:

               I use the CYW20735 and wiced studio 6.4 is installed.

             

            I want to know  if there is any other tool to download the firmwire by the uart.

             

            thanks.

            mandy

            • 3. Re: how to use CyBluetool to download the firmware by the uart
              AnjanaM_61

              Hi Mandy,

               

              Below are the tool available :

              1. CyBluetool as you referred already. The file locations are same in WICED studio also. Let me know if you can't get the location

              2. Cypress Programmer: refer https://www.cypress.com/products/psoc-programming-solutions

              3.  Chipload : refer Programming using ChipLoad.exe

               

              Thanks,
              Anjana

              • 4. Re: how to use CyBluetool to download the firmware by the uart
                mawu_4270096

                Hi  Anjana:

                    when I use Cybluetooth to download the firmware ,there are some errors.the detail error information is below:

                    85648df3916827cc00a771412f952e2.jpg

                 

                how to solve this question

                 

                thanks

                 

                mandy

                • 5. Re: how to use CyBluetool to download the firmware by the uart
                  mawu_4270096

                  Hi Anjana:

                     When I use the cypress programmer to download fireware,there is also a error during the programming

                     

                  01 18 14 00 02 04 00

                  Info : Download config successfully had written 249 bytes to address 0x0001A71B:  28 00 18 15 00 02 07 03 28 02 16 00 00 2A 16 00 02 02 00 2A 17 00 02 07 03 28 02 18 00 01 2A 18 00 02 02 01 2A 30 00 02 04 00 28 28 18 31 00 02 07 03 28 04 32 00 DD 2A 32 00 05 02 00 DD 2A 33 00 02 07 03 28 10 34 00 DE 2A 34 00 05 02 00 DE 2A 35 00 0A 02 00 02 29 40 00 02 04 00 28 0A 18 41 00 02 07 03 28 02 42 00 29 2A 42 00 02 02 29 2A 43 00 02 07 03 28 02 44 00 24 2A 44 00 02 02 24 2A 45 00 02 07 03 28 02 46 00 23 2A 46 00 02 02 23 2A 50 00 02 04 00 28 D3 7F 51 00 02 07 03 28 14 52 00 CB 7F 52 00 05 02 00 CB 7F 53 00 0A 02 00 02 29 00 FF 02 12 00 28 1F 38 A1 38 AD 82 35 86 A0 43 13 5C 47 1E 5D AE 01 FF 02 15 03 28 38 02 FF 1B 66 6C 08 0A 57 8E 83 99 4E A7 F7 BF 50 DD A3 02 FF 89 10 00 1B 66 6C 08 0A 57 8E 83 99 4E A7 F7 BF 50 DD A3 03

                  Info : Download config successfully had written 249 bytes to address 0x0001A814:  FF 0A 02 00 02 29 04 FF 02 15 03 28 08 05 FF 26 FE 2E E7 09 24 4F B7 91 40 61 D9 7A 6C E8 A2 05 FF A9 10 00 26 FE 2E E7 09 24 4F B7 91 40 61 D9 7A 6C E8 A2 01 00 01 00 00 00 A5 6C 22 00 20 07 04 00 03 00 00 00 00 08 12 00 00 00 00 08 12 00 00 00 60 00 60 00 00 00 60 00 60 00 00 00 60 00 30 00 1E 00 00 08 12 00 1E 00 18 00 28 00 00 00 BC 02 07 00 30 00 30 00 1E 00 00 04 00 04 3C 00 90 01 20 03 30 00 30 00 1E 00 A0 00 A0 00 1E 00 00 08 00 08 00 00 00 02 01 01 65 01 68 01 00 00 00 00 00 00 00 00 00 00 00 00 05 04 00 00 00 00 00 00 42 52 43 4D 63 66 67 44 4F BC 00 EE AA C8 D1 CC E4 D2 74 7D 08 44 C9 48 F6 C6 88 C5 EC 77 FE 50 1C 28 D6 A9 33 66 D0 60 51 25 63 FC C2 CA B9 F3 84 9E 17 A7 AD FA E6 BC FF FF FF FF FF FF FF FF 00 00 00 00 FF FF FF

                  Info : Download config successfully had written 154 bytes to address 0x0001A90D:  FF A2 EE 79 BE 95 4C 24 83 A6 6F BD 49 9C 79 99 46 59 EC 6B 2B 39 B2 45 28 20 56 D9 F3 94 2D E1 66 03 01 6C 1C 85 22 00 0E 48 0F 49 88 42 08 B5 02 D0 0E 4A E6 F5 C4 FA 0D 4A 0E 48 00 21 E6 F5 C7 FA 0D 4B 0D 4A 23 F0 0F 03 13 60 E1 F6 DC FE 10 B9 0B 4B 0B 4A 1A 60 E8 F7 E0 F9 0A 4B 0B 4A 1A 60 08 BD 1C 72 22 00 1C 72 22 00 30 06 00 00 CC 0C 00 00 50 78 22 00 3C 85 22 00 64 04 20 00 B0 07 28 00 34 38 28 00 F0 28 20 00 C9 FF 20 00 06 01 04 1D 85 22 00 FE 00 00

                  Info : Downloaded 0 code bytes ( 0.0%) and 108967 data bytes (100.0%). Verified 0 code bytes ( 0.0%) and 0 data bytes ( 0.0%).   Current state: Terminated with error

                  Info : A total of 1 contiguous memory areas were filled:

                  Info : [00000000..0001A9A6] DATA (108967 bytes)

                  Info : CRC timeout while checking 108967 bytes starting at address 0x00000000

                  Error: in procedure 'program_device'

                  Error: at file "C:/Program Files (x86)/Cypress/Cypress Programmer/scripts/WICED-BT/kit_CYW920735Q60EVB_01.tcl", line 50

                   

                   

                  • 6. Re: how to use CyBluetool to download the firmware by the uart
                    mawu_4270096

                    Info : program_device "C:/Users/YYWu/Documents/WICED-Studio-6.4/20735-B1_Bluetooth/build/mesh_vendor_specific_app-CYW920735Q60EVB_01-rom-ram-Wiced-release/mesh_vendor_specific_app-CYW920735Q60EVB_01-rom-ram-Wiced-release.ota.hex" "0"

                    Info : Downloading FW ...

                    Info : status=1

                    Error: cyp status: ERROR

                    Info : Program device failed

                    Error: C:/Program Files (x86)/Cypress/Cypress Programmer/scripts/WICED-BT/kit_CYW920735Q60EVB_01.tcl:50: Error: Download minidriver successfully had written 249 bytes to address 0x00220000

                    • 7. Re: how to use CyBluetool to download the firmware by the uart
                      mawu_4270096

                      Hi  Anjana:

                           when I open  the chipload.exe  and the chipload flashback. if this is a system compatibility issue,my computer  system is win8.1

                      • 8. Re: how to use CyBluetool to download the firmware by the uart
                        mawu_4270096

                        Hi Anjana:

                           when I  use the cybluetooth to download firmware and the cybooltooth mentions some errors,the error information is bellow:

                                 71ccfea6119c1700f2642484b7bb4ee.jpg

                        • 9. Re: how to use CyBluetool to download the firmware by the uart
                          mawu_4270096

                          Hi :

                            as we know, the  CYW20735 can  download the firmware from the  uart by the Cypress programmer ,  when I use the CYW920735Q60EVB-01 to connect the Cypress programmer,and the Cypress programmer can find the uart. when I use the CYW20735 BT MESH module to connect the Cypress programmer,however the Cypress programmer can't  find the uart.

                          I use the HCI uart to connect the Cypress programmer and  the baurd rate is 115200, and turn on hardware flow control.

                          • 10. Re: how to use CyBluetool to download the firmware by the uart
                            AnjanaM_61

                            Hi Mandy,

                             

                            1. If you double click and open Chipload.exe , it will flash back. You need to go to the folder location, open the command line and run the Chipload.exe in command prompt. And then follow the steps mentioned in Blog : Programming using ChipLoad.exe

                             

                            2. 20735 will be able to program from CyProgrammer. I am not sure which 20735 mesh board you are referring. There is no Cy Mesh board available for 20735. We have mesh boards with 20819 chip.

                             

                            3.  In CyBluetool , please check the file locations are correct or not.

                             

                            Thanks,

                            Anjana

                            1 of 1 people found this helpful