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

Upload failed: UNKNOWN (8202)

Hi,

I am working on implementing secure DFU. I have complied and loaded the secure DFU using gcc and am trying to upload a package using nRF Toolbox on android.

I have a package zip file which I built from an example hex (dfu_test_softdevice_s132.hex) using nrfutil. I can connect to the DFU and start the upload then I get the message. Upload failed: UNKNOWN (8202) from the app in the phone.

Not sure how to solve this one.

Parents
  • I just retested. With the sample package and the default key it does work in the bootloader. I was able to get full bootload. (sample package dfu_test_softdevice_s132.zip) so I think the issue is my building the package. It would be nice to have the private key for the sample packages so I could test my building of packages on the sample hex files. I ran through the process of generating a new key private and public and rebuilding the bootloader and the package but still get the same error. This is the command line:

    1. Generate new key "nrfutil keys generate Key2.pem"

    2. Generate new public key "nrfutil keys display --key pk --format code Key2.pem --out_file public_key2.c"

    3. Build Package "nrfutil pkg generate --hw-version 52 --sd-req 0x80 --application-version 4 --application Test4.hex --key-file Key2.pem DFU_test4.zip"

    Also double checked that the default image would now not work (the default key has been changed to the new key) this gives the error "UPLOAD FAILED: Remote DFU Invalid CRC ERROR"

    I would appreciate any further help you can give me?

Reply
  • I just retested. With the sample package and the default key it does work in the bootloader. I was able to get full bootload. (sample package dfu_test_softdevice_s132.zip) so I think the issue is my building the package. It would be nice to have the private key for the sample packages so I could test my building of packages on the sample hex files. I ran through the process of generating a new key private and public and rebuilding the bootloader and the package but still get the same error. This is the command line:

    1. Generate new key "nrfutil keys generate Key2.pem"

    2. Generate new public key "nrfutil keys display --key pk --format code Key2.pem --out_file public_key2.c"

    3. Build Package "nrfutil pkg generate --hw-version 52 --sd-req 0x80 --application-version 4 --application Test4.hex --key-file Key2.pem DFU_test4.zip"

    Also double checked that the default image would now not work (the default key has been changed to the new key) this gives the error "UPLOAD FAILED: Remote DFU Invalid CRC ERROR"

    I would appreciate any further help you can give me?

Children
No Data
Related