This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Skip bootloader start

Hello, I would like to know if there is any way to avoid bootloader start in secureDFU firmware transfer. All the checks on init file and control point are on the application side and I would like to bypass the bootloader initialization. Thanks for any help

Parents
  • Thanks for the reply. Are you talking about the android app side or the application firnware side? At the moment in the android app I'm doing as follows:

      @OnClick(R.id.btUpdate)
        public void startDfuService(){
            final DfuServiceInitiator starter = new DfuServiceInitiator(mSingletonBLE.getDevice().getAddress())
                    .setDeviceName(mSingletonBLE.getDevice().getName())
                    .setKeepBond(true)
                    .setZip(mFileUri, mFileUri.toString())
                    // disables experimental buttonless feature in Secure DFU.
                    .setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(false);
            mDfuServiceController = starter.start(this, DfuService.class);
        }
    

    As you can see, I'm not using the experimental buttonless feature.

Reply
  • Thanks for the reply. Are you talking about the android app side or the application firnware side? At the moment in the android app I'm doing as follows:

      @OnClick(R.id.btUpdate)
        public void startDfuService(){
            final DfuServiceInitiator starter = new DfuServiceInitiator(mSingletonBLE.getDevice().getAddress())
                    .setDeviceName(mSingletonBLE.getDevice().getName())
                    .setKeepBond(true)
                    .setZip(mFileUri, mFileUri.toString())
                    // disables experimental buttonless feature in Secure DFU.
                    .setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(false);
            mDfuServiceController = starter.start(this, DfuService.class);
        }
    

    As you can see, I'm not using the experimental buttonless feature.

Children
No Data
Related