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

Problem with serial DFU when performing from nrfutil

We were use secure ble DFU and it work fine, recently we added serial DFU code with BLE DFU. Tested serial DFU with nrfutil and it also works.
but problem in serial DFU is when it stop in between mean serial DFU is running and due to some problem(power cycle or else) it stop then we will start it but it will not start again and reported this error

"pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0x64"

Error Image:

our modification in serial DFU code is,
1. 9600 baudrate
2. Flow control off(turning off serial port flow control because our hardware does not have two pins for flow control)

nrfutil command: nrfutil dfu serial -pkg <App_file_name>.zip -p COM6 -b 9600 -fc 0 (we use latest version of nrfutil i.e v6.1.0)

Config:
MCU : nRF52840
SDK : SDK16
Softdevice : s140_nrf52_7.0.1_softdevice (SDK16)

Thanks,

Sandip Divani

Parents Reply Children
No Data
Related