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

UART DFU FAIL

Dears:

I test the uart dfu by examples\dfu\secure_bootloader\pca10056_uart

After I enter command like below:

nrfutil dfu serial -pkg Sena_app_uart_s140.zip -p COM5 -b 115200

then there is no response....

My environment is as below:

nRF5_SDK_15.3.0_59ac345, s140_nrf52_6.1.1_softdevice,  keil5, computer os is win7.

I use .bat file to program bin to flash.

::merge bootloader and settings
mergehex.exe --merge bootloader.hex settings.hex --output bl_temp.hex
::merge bootloader, app and softdevice
mergehex.exe --merge bl_temp.hex app.hex s140_nrf52_6.1.1_softdevice.hex --output whole.hex

nrfjprog.exe --eraseall -f NRF52
nrfjprog.exe --program whole.hex --verify -f NRF52
::the following two commands are used to enable PIN RESET
::nrfjprog.exe --memwr 0x10001200 --val 0x00000015 --verify -f NRF52
::nrfjprog.exe --memwr 0x10001204 --val 0x00000015 --verify -f NRF52
nrfjprog.exe --reset -f NRF52

pause

By the way,BLE DFU and USB DFU are both ok on my board.....

Do I need to program mbr.hex??  if so ,how can I get ths file and program.

Parents
  • Hi, 

    Is the LED3 on? DFU mode is indicated by LED 3 being lit. If a valid application is installed on the device, hold Button 4 during startup to prevent the bootloader from starting the application and force it to enter DFU mode instead.

    Do you get  any error code returned after typing "nrfutil dfu serial -pkg Sena_app_uart_s140.zip -p COM5 -b 115200 "?

     

    Do I need to program mbr.hex??  if so ,how can I get ths file and program.

     No, the SoftDevice hex already contains the MBR

    -Amanda 

  • Hi Amanda:

    After I hold button 4 and reset,LED 3 is on. so I think it enter DFU mode.

    There is no error code return after typing this program command.

    I connect pin8 RX, pin6 TX and GND to computer serial port line.

    Besides, I try to DFU by  nRFgo stdio like below picture, it returned some errors.

Reply Children
Related