3 Replies Latest reply on Feb 3, 2016 6:17 AM by tdbconsulting_1416776

    Bootloader

    tdbconsulting_1416776

      Has anyone had any issues with the Cypress CYBLE-022001 Bootloader?

         

      A Bootloader and Bootloadable project have been created and compiled and the .hex file of the Bootloadable programmed into the device.

         

      After reset, the device does indeed wait for the WAIT_FOR_COMMAND_TIME till the application starts.

         

      However, when attempting to program the device using Tools/Bootloader Host or the bootloader_host.exe directly using the .cyacd file, the device does not send the correct response to the Enter Bootloader command (i.e. 0x38) and immediately starts the Bootloadable application instead.

         

      The same issue occurs when utilizing the Cypress source code to perform the Bootload process, also employing the .cyacd file.

         

      Thank you,

         

      Tim

        • 1. Re: Bootloader
          user_1377889

          A Bootloader and Bootloadable project have been created and compiled and the .hex file of the Bootloadable programmed into the device.

             

          You should have programmed the .hex file of the Bootloader instead.

             

           

             

          Bob

          • 2. Re: Bootloader
            tdbconsulting_1416776

            Bob: Thank you for your response.

               

            Programming the Bootloader .hex file will cause only the Bootloader to execute and wait forever till the Enter Bootloader (0x38) command is received.

               

            Programming the Bootloadable .hex file will cause the Bootloader to execute and wait till the Bootloader_WAIT_FOR_COMMAND_TIME expires to then execute the Bootloadable.

               

            Therefore, the device should be able to be programmed with the Tools/Bootloader Host whenever the device is in the Bootload mode (i.e. any time if just the Bootloader resides on the device and any time before the wait time has expired if the Bootloadable resides on the device (with the Bootloader)).

               

            Thanks,

               

            Tim

            • 3. Re: Bootloader
              tdbconsulting_1416776

              The solution to the issue has been found.

                 

              As Hima of Cypress suggested, the Bootloader UART RX and TX buffer size should be increased from 8 to 64 bytes.

                 

              With that change, the Tools/Bootload Host... application is now able to program the device with the .cyacd file when the device is in the Bootloader mode (i.e. before bootloader timeout or when the Bootloadable firmware is not residing in the device).

                 

              Thanks all,

                 

              Tim Ball