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

mesh examples/dfu merge to light_switch dfu failed

hi,

I use nrf5_SDK_for_Mesh_v4.0.0_src and pca10040 borad.

examples/dfu is successful.

But there was an error after the merge.

C:\Python27\Scripts>nrfutil dfu serial -pkg mesh/dfu_test.zip -p COM14 -b 115200 -fc --mesh

Upgrading target on COM14 with DFU package C:\Python27\Scripts\mesh\dfu_test.zip. Flow control is enabled.

Failed to upgrade target. Error is: Device returned an unknown status code (142) on a DFU state beacon packet.
Possible causes:
- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
- baud rate or flow control is not the same as in the target bootloader.
- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
this is light_switch/client source code.

Parents Reply
  • Hi Hung,

    nrfutil dfu genpkg --application mesh/blinky_nrf52832_xxAA_s132_7.0.1.hex ^
    --company-id 0x00000059 ^
    --application-id 1 ^
    --application-version 2 ^
    --key-file mesh/private_key.txt ^
    --sd-req 0x00CB ^
    --mesh mesh/dfu_test.zip

    Run results after I change.

    C:\Python27\Scripts>nrfutil dfu serial -pkg mesh/dfu_test.zip -p COM14 -b 115200 -fc --mesh
    Upgrading target on COM14 with DFU package C:\Python27\Scripts\mesh\dfu_test.zip. Flow control is enabled.

    Failed to upgrade target. Error is: Device returned an unknown status code (142) on a DFU state beacon packet.
    Possible causes:
    - bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
    - baud rate or flow control is not the same as in the target bootloader.
    - target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.

Children
Related