Hello,
There's any known issue realated with DFU and Android 7.0? When we try to update firmware with nRF Connect or our APP we get an error (hex file error), but when we try the same hex file with the same apps on Android 6 there's no problem.
Hello,
There's any known issue realated with DFU and Android 7.0? When we try to update firmware with nRF Connect or our APP we get an error (hex file error), but when we try the same hex file with the same apps on Android 6 there's no problem.
We are using v4.4.0 in our Android v6 devices, but with this versions we don't have any problem to upload firmware from an ".hex" file, we only have problems in Android 7, but maybe it's caused by the issue you comented. We will comment to our users that use Android 7 to downgrade to v4.3.0 and try to upload the firmware again. Thanks for the answer!
Happy to help. Let me know if the customer is able to perform the DFU with v4.3.0 on Android v7.0
I'm also facing the same "Not a HEX file" error when performing DFU on Android v7.0. However, when using the same .hex file, I'm able to perform DFU on previous Android versions. When performing DFU on Android v7.0 I'm getting the following stacktrace:
An exception occurred while calculating file size no.nordicsemi.android.dfu.internal.exception.HexFileValidationException: Not a HEX file at no.nordicsemi.android.dfu.internal.HexInputStream.checkComma(HexInputStream.java:323) at no.nordicsemi.android.dfu.internal.HexInputStream.calculateBinSize(HexInputStream.java:97) at no.nordicsemi.android.dfu.internal.HexInputStream.(HexInputStream.java:72) at no.nordicsemi.android.dfu.DfuBaseService.openInputStream(DfuBaseService.java:1992) at no.nordicsemi.android.dfu.DfuBaseService.onHandleIntent(DfuBaseService.java:1205) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61)
I'm using the no.nordicsemi.android.dfu package version 0.6.2 to perform the DFU. Does anyone have a clue on this error? Could it be something related to the encoding of the stream reader used by the Nordic's package?
Just noticed that this issue was fixed in the Android-DFU-Library on 14 Sep. (Commid SHA 373f86ec82da475a160f65c44700225c78128e79)
Any chance of having a new package available in Maven (above 0.6.2) ?
The current version on maven is 1.0.4, isn't it?