File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
lib/dfu/src/main/java/no/nordicsemi/android/dfu Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,12 @@ public void performDfu(@NonNull final Intent intent)
454
454
response = readNotificationResponse ();
455
455
status = getStatusCode (response , OP_CODE_INIT_DFU_PARAMS_KEY );
456
456
mService .sendLogBroadcast (DfuBaseService .LOG_LEVEL_APPLICATION , "Response received (Op Code = " + response [1 ] + ", Status = " + status + ")" );
457
+ if (status == 6 && mInitPacketSizeInBytes > 14 ) {
458
+ // Note: nRF5 SDK 11 also supported Init Packet with a signature,
459
+ // which was longer than 14 bytes.
460
+ logw ("Hint: Most probably the Init packet is not supported by the DFU target. " +
461
+ "It may be, that you're sending a file from a newer SDK (e.g. Secure DFU)." );
462
+ }
457
463
if (status != DFU_STATUS_SUCCESS )
458
464
throw new RemoteDfuException ("Device returned error after sending init packet" , status );
459
465
}
You can’t perform that action at this time.
0 commit comments