1 Reply Latest reply on Feb 20, 2017 11:11 PM by operationred1991_1569406

    Bootloader - force active application

    stefano.vou

      Hello,
      we have been successful in implementing and deploying the OTA bootloader in Upgradable Stack use case - great module!

         

      Depending on a specific system state (and/or a GPIO), we'd like to forcibly launch the Stack Application or the User Application from within the Launcher (i.e., the bootloader).

         

      We found no explicit function in Loader's code to achieve this, so after a bit of analysis we ended up adding the following calls to the code:

         

      Launcher_Exit(Launcher_EXIT_TO_BTLDB_1);

         

      or

         

      Launcher_Exit(Launcher_EXIT_TO_BTLDB_2);

         

      depending on which application we want to force.

         

      Is this a suitable approach or does anyone have a better/alternate solution?
      Best regards,
      Stefano Voulaz