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

Have to run DFU OTA twice

Hi, I know there are already lots of threads around this but it seems none is like mine.

I'm running my toolchain on a Mac so I think I have a more challenging debug setup as I never found out how I can get RTT logger to log the normal app and still continue logging during DFU. However, this is the end of the DFU log:

<info> dfu_req_handling: Doing postvalidate
<info> dfu_req_handling: Current bank is bank 1
<info> dfu_req_handling: Running SD version check ============== 
<info> dfu_req_handling: Successfully ran the postvalidation check!
<info> dfu_req_handling: Invalidating old application in bank 0.
<debug> nrf_dfu_settings: Writing settings...
<debug> nrf_dfu_settings: Erasing old settings at: 0x0007F000
<debug> nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 3
<debug> nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, len=0x1B8 bytes), queue usage: 4
<debug> app: Sending Response: [0x4, 0x1]
<debug> nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 3
<debug> nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 2
<debug> dfu_req_handling: Response sent.
<debug> nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 1
<debug> nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0
<debug> nrf_dfu_flash: This operation had a callback, calling back to 0x00073445.
<debug> dfu_req_handling: All flash operations have completed.
<debug> dfu_req_handling: Starting reset timer.
<debug> dfu_req_handling: Attempting to reset the device.
<debug> app: In nrf_dfu_transports_close
<debug> app: num transports: 1
<debug> app: Shutting down BLE transport.
<debug> app: Disconnecting.
<debug> app: BLE transport shut down.
<debug> app: After nrf_dfu_transports_init
<debug> dfu_req_handling: Reset.

After that, I restart the logger to get my application log, and it still shows the old version.

As the log shows that it is actually marking the new bank as primary, I really don't know how to proceed with debugging

Parents Reply Children
No Data
Related