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 ?

  • @Mr Sev: Which hardware board are you testing with ? Which chip is on the board ? Have you made sure you setup the device page correctly with the memory layout you have with your board ?

    What kind of error do you have when you flash the bootloader with nrfjprog? Please take a screenshot.

    I also can reproduce the issue here that occasionally the device crash when DFU got to 1% , I will try to find the reason.

    Please remove your answer and long comment, and put them into the question (edit the question and put information there) . It's very hard to read the thread now.

Reply
  • @Mr Sev: Which hardware board are you testing with ? Which chip is on the board ? Have you made sure you setup the device page correctly with the memory layout you have with your board ?

    What kind of error do you have when you flash the bootloader with nrfjprog? Please take a screenshot.

    I also can reproduce the issue here that occasionally the device crash when DFU got to 1% , I will try to find the reason.

    Please remove your answer and long comment, and put them into the question (edit the question and put information there) . It's very hard to read the thread now.

Children
No Data
Related