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

DFU issue with Android 7.0

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.

Parents
  • 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?

Reply
  • 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?

Children
No Data
Related