1 Reply Latest reply on Nov 20, 2018 2:18 AM by GeonaM_26

    Reset to start bootloader

    gashc_293351

      In order to start the bootloader, can it be done with a software reset? Or do I need a hardware reset?

        • 1. Re: Reset to start bootloader
          GeonaM_26

          (1) To start bootloader from bootloadable via fimware, user needs to schedule bootloader in metadata and software reset the device. Bootloadable component supports Bootloadable_Load() API for this.

           

          void Bootloadable_Load(void)

          {

              /* Schedule Bootloader to start after reset */

              Bootloadable_SET_RUN_TYPE(Bootloadable_SCHEDULE_BTLDR);

           

              CySoftwareReset();

          }

           

          (2) Upon power on reset, the bootloader will wait for new image for 'Wait for command time' specified in configuration window.