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

nrf Toolbox DFU unkown(8202)

Hello, When I try to use the DFU function, I received 8202 error from nrf Toolbox. My environment is as follow: SDK version: 12.2.0 SoftDevice version: S132 3.1.0.

The bootloader I used was the bootloader_secure example and my pulic key used is the debug version(I defined macro NRF_DFU_DEBUG_VERSION)

The uploaded zip I used was zip files in %SDK_PATH%\examples\dfu\ble_dfu_send_hex folder.

The micro-ecc I compiled was %SDK_PATH%\external\micro-ecc\nrf52_keil\armgcc. And I haven't change the makefile. Just directly compile it.

I searched other 8202 related question in this developer zone and the suggestion is that add some macro definition when compile micro-ecc. They are -DuECC_ENABLE_VLI_API -DuECC_VLI_NATIVE_LITTLE_ENDIAN=1 -DuECC_SQUARE_FUNC=1 -DuECC_SUPPORTS_secp256r1=1 -DuECC_SUPPORT_COMPRESSED_POINT=0 -DuECC_OPTIMIZATION_LEVEL=3 But I found that these kind of macro already be defined in current makefile. So I suppose that they have been defined.

Another clue I found is that this error is occued after NRF_DFU_OBJ_TYPE_COMMAND obj_type and NRF_DFU_OBJECT_OP_WRITE req_type. It means that the command data has been transferred successfully, but the board haven't received NRF_DFU_OBJECT_OP_EXECUTE command. It seems that this error is not related to the bootloader but something related to zip file and toolbox.

But the zip file I used was the file in SDK 12.2.0 without any change. It's so strange.

Best Regards Jerry

Parents Reply Children
No Data
Related