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

Secure Serial DFU not working

I am using the bootloader_secure_serial example from the SDK 14.0.0 on a 523832 DK. I have erased the device and flashed the softdevice and bootlader on it. The LED1 is turned on after restart, so the bootloader is in DFU mode.  

I am having trouble testing the example with the nrfutil. I installed it using pip and tried running the command

nrfutil dfu serial -pkg name.zip - /dev/ttyUSB0 -b 115200 -fc 1

I get the "No ping response after opening COM port". Its not a problem with the UART or USB2UART module, as the ble_app_uart example is working fine on the same setup.

Parents
  • Hi,

    Are LED 1 and LED 4 on the DK lit to indicate that the bootloader is in DFU mode? If not, have you remembered to flash the SoftDevice? It is needed by the bootloader in SDK 14 even if it is not using BLE. The following set of commands should work out of the box with the serial DFU example images from SDK 14.0.0 (<SDK 14.0.0>\examples\dfu\secure_dfu_test_images\serial\nrf52832):

    λ nrfjprog.exe -e
    Erasing user available code and UICR flash areas.
    Applying system reset.
    
    λ nrfjprog.exe --program softdevice_s132.hex
    Parsing hex file.
    Reading flash area to program to guarantee it is erased.
    Checking that the area to write is not protected.
    Programming device.
    
    λ nrfjprog.exe --program bootloader_secure_serial_debug_without_bonds_s132.hex --reset
    Parsing hex file.
    Reading flash area to program to guarantee it is erased.
    Checking that the area to write is not protected.
    Programming device.
    Applying system reset.
    Run.
    
    λ nrfutil dfu serial -pkg ble_app_buttonless_dfu_without_bonds_s132.zip -p COM25 -b 115200 -fc 1
      [####################################]  100%
    Device programmed.

  • Thanks Einar! This got me a bit further now. LED1 and 4 are lit, but I am now gettint the following error: 

    raise NordicSemiException('Did not receive checksum response from DFU target. '
    pc_ble_driver_py.exceptions.NordicSemiException: Did not receive checksum response from DFU target. If MSD is enabled on the target device, try to disable it ref. wiki.segger.com/index.php

  • I have disabled the HW flow control and I am now getting this error: 

    NordicSemiException: Unexpected Executed OP_CODE.
    Expected: 0x03 Received: 0x60
    

    Can you guys give me any pointers as to what is wrong here. I am using the _debug project and the ble_app_buttonless_duf_without_bonds zip file.

Reply Children
No Data
Related