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

Updating gateway example using DFU (serial)

Hi: I am trying to update the HEX file of gateway example using DFU bootloader(serial),i found that nrf51822 don't run to bootloader after reset, but i flash SD and BL using nRFgo Studio, nrf51822 will run to bootloader after reset . my nrfjprog version is 7.5.0, Please help me regarding this. thanks in advance.

Here are my steps:

>nrfjprog --program s110_softdevice.hex
Parsing hex file.
Checking that the area to write is not protected.
Reading flash area to program to guarantee it is erased.
Programing device.

>nrfjprog --program bootloader_serial_debug_xxAC.hex
Parsing hex file.
Checking that the area to write is not protected.
Reading flash area to program to guarantee it is erased.
Programing device.

>nrfjprog --program example.hex
Parsing hex file.
Checking that the area to write is not protected.
Reading flash area to program to guarantee it is erased.
Programing device.

>nrfjprog --program rbc_gateway_example_serial_blinky_PCA1
0028_nRF51422_xxAC.hex
Parsing hex file.
Checking that the area to write is not protected.
Reading flash area to program to guarantee it is erased.
Programing device.

>nrfjprog --reset
Applying system reset.
Run.

the Jlink RTT Client print message as follow: image description

i flashed SD and BL use nRFgo Stdio , an error accurred when update with serial. the log as fellow:

nrfutil dfu serial -pkg dfu_test.zip -p COM3 -b 115200 --mesh

image description

Parents
  • Hi Mr_sev,

    I assume you are talking about the bootloader for mesh included in the mesh github repo ? Not the serial bootloader included in the nRF5 SDK ?

    As far as I know after you flash your application (rbc_gateway_example_serial_blinky_PCA1) , the application should run, not the bootloader. The bootloader only takes place when the DFU images is received and the device switch to bootloader to swap the application.

    Could you follow the guide in dfu_quick_start.adoc and let me know the result ?

Reply
  • Hi Mr_sev,

    I assume you are talking about the bootloader for mesh included in the mesh github repo ? Not the serial bootloader included in the nRF5 SDK ?

    As far as I know after you flash your application (rbc_gateway_example_serial_blinky_PCA1) , the application should run, not the bootloader. The bootloader only takes place when the DFU images is received and the device switch to bootloader to swap the application.

    Could you follow the guide in dfu_quick_start.adoc and let me know the result ?

Children
Related