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

NRF Connect 3.0.0 and Secure Bootloader

Hi, I'm using a PCA10056 DK board to start new development. I try to program DFU secure bootloader and SoftDevice using nRF Connect 3.0.0
My issue:
- configure both hex files on programmer

- start programming (Erase and Write)

- the program procedure starts, but after few seconds the blue bar is freezed, and the nRF Connect stops work. (see video here attached)

- I must force the nRF Connect termination (using task manager), restart program and reconnect the DK boards but nRF Connect is not able to show correctly the FW inside boards

What I wrong?

Parents Reply Children
  • Hi, the nRF Connect stops working and I'm not be able to save the log file.
    Here below the screen of log when both hex file are programming.
    Attached the other 2 logs

    2019-08-09T14:27:47.368Z INFO Application data folder: C:\Users\Abe_Work\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2019-08-09T14:27:47.492Z DEBUG App pc-nrfconnect-programmer v1.2.1 official
    2019-08-09T14:27:47.492Z DEBUG App path: C:\Users\Abe_Work\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2019-08-09T14:27:47.492Z DEBUG nRFConnect 3.0.0 is supported by the app (^3.0.0)
    2019-08-09T14:27:47.492Z DEBUG nRFConnect path: C:\Users\Abe_Work\AppData\Local\Programs\nrfconnect\resources\app.asar
    2019-08-09T14:27:47.492Z DEBUG HomeDir: C:\Users\Abe_Work
    2019-08-09T14:27:47.492Z DEBUG TmpDir: C:\Users\Abe_Work\AppData\Local\Temp
    2019-08-09T14:27:47.533Z INFO Using nrfjprog library 10.2.1, pc-nrfjprog-js 1.5.4
    2019-08-09T14:27:52.654Z INFO Parsing HEX file:  D:\desk\Lavori\RSR\RSR1252\FW\SoftDevice\s140_nrf52_6.1.1_softdevice.hex
    2019-08-09T14:27:52.657Z INFO File was last modified at  27/07/2019, 22:42:48
    2019-08-09T14:27:53.058Z INFO Data block: 0x00000000-0x00000B00 (0x00000B00  bytes long)
    2019-08-09T14:27:53.058Z INFO Data block: 0x00001000-0x00025DE8 (0x00024DE8  bytes long)
    2019-08-09T14:27:53.064Z INFO SoftDevice detected, id 0xB6 (S140 v6.1.1)
    2019-08-09T14:27:55.166Z INFO Using nrfjprog to communicate with target
    2019-08-09T14:27:56.002Z INFO Using J-Link Software version 6.44
    2019-08-09T14:27:57.522Z INFO Segger serial:  683063924
    2019-08-09T14:27:57.522Z INFO Segger speed:  2000  kHz
    2019-08-09T14:27:57.522Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
    2019-08-09T14:27:57.532Z INFO Probed: 683063924.
    2019-08-09T14:27:57.533Z INFO Model: NRF52840_xxAA_ENGA.
    2019-08-09T14:27:57.533Z INFO RAM: 256KiB.
    2019-08-09T14:27:57.533Z INFO Flash: 1024KiB in pages of 4KiB.
    2019-08-09T14:27:58.357Z INFO Reading device non-volatile memory. This may take a few seconds.
    2019-08-09T14:28:12.627Z INFO Non-volatile memory has been read. 6 non-empty memory blocks identified.
    2019-08-09T14:28:12.751Z INFO SoftDevice detected, id 0xB6 (S140 v6.1.1)
    2019-08-09T14:28:17.550Z INFO Recovery procedure finished
    2019-08-09T14:28:17.559Z INFO Using nrfjprog to communicate with target
    2019-08-09T14:28:18.276Z INFO Using J-Link Software version 6.44
    2019-08-09T14:28:19.206Z INFO Segger serial:  683063924
    2019-08-09T14:28:19.206Z INFO Segger speed:  2000  kHz
    2019-08-09T14:28:19.206Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
    2019-08-09T14:28:19.218Z INFO Probed: 683063924.
    2019-08-09T14:28:19.218Z INFO Model: NRF52840_xxAA_ENGA.
    2019-08-09T14:28:19.218Z INFO RAM: 256KiB.
    2019-08-09T14:28:19.218Z INFO Flash: 1024KiB in pages of 4KiB.
    2019-08-09T14:28:19.980Z INFO Reading device non-volatile memory. This may take a few seconds.
    2019-08-09T14:28:20.159Z INFO SoftDevice detected, id 0xB6 (S140 v6.1.1)
    2019-08-09T14:28:20.166Z INFO Writing procedure starts
    2019-08-09T14:28:29.835Z INFO Write procedure finished
    2019-08-09T14:28:29.836Z INFO Using nrfjprog to communicate with target
    2019-08-09T14:28:30.558Z INFO Using J-Link Software version 6.44
    2019-08-09T14:28:31.476Z INFO Segger serial:  683063924
    2019-08-09T14:28:31.477Z INFO Segger speed:  2000  kHz
    2019-08-09T14:28:31.477Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
    2019-08-09T14:28:31.488Z INFO Probed: 683063924.
    2019-08-09T14:28:31.488Z INFO Model: NRF52840_xxAA_ENGA.
    2019-08-09T14:28:31.488Z INFO RAM: 256KiB.
    2019-08-09T14:28:31.488Z INFO Flash: 1024KiB in pages of 4KiB.
    2019-08-09T14:28:32.236Z INFO Reading device non-volatile memory. This may take a few seconds.
    2019-08-09T14:28:46.356Z INFO Non-volatile memory has been read. 3 non-empty memory blocks identified.
    2019-08-09T14:28:46.476Z INFO SoftDevice detected, id 0xB6 (S140 v6.1.1)
    2019-08-09T14:28:46.479Z INFO SoftDevice detected, id 0xB6 (S140 v6.1.1)
    
    2019-08-09T14:30:18.593Z INFO Application data folder: C:\Users\Abe_Work\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2019-08-09T14:30:18.714Z DEBUG App pc-nrfconnect-programmer v1.2.1 official
    2019-08-09T14:30:18.714Z DEBUG App path: C:\Users\Abe_Work\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2019-08-09T14:30:18.714Z DEBUG nRFConnect 3.0.0 is supported by the app (^3.0.0)
    2019-08-09T14:30:18.714Z DEBUG nRFConnect path: C:\Users\Abe_Work\AppData\Local\Programs\nrfconnect\resources\app.asar
    2019-08-09T14:30:18.714Z DEBUG HomeDir: C:\Users\Abe_Work
    2019-08-09T14:30:18.714Z DEBUG TmpDir: C:\Users\Abe_Work\AppData\Local\Temp
    2019-08-09T14:30:18.750Z INFO Using nrfjprog library 10.2.1, pc-nrfjprog-js 1.5.4
    2019-08-09T14:30:21.443Z INFO Using nrfjprog to communicate with target
    2019-08-09T14:30:22.274Z INFO Using J-Link Software version 6.44
    2019-08-09T14:30:23.707Z INFO Segger serial:  683063924
    2019-08-09T14:30:23.707Z INFO Segger speed:  2000  kHz
    2019-08-09T14:30:23.708Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
    2019-08-09T14:30:23.718Z INFO Probed: 683063924.
    2019-08-09T14:30:23.718Z INFO Model: NRF52840_xxAA_ENGA.
    2019-08-09T14:30:23.719Z INFO RAM: 256KiB.
    2019-08-09T14:30:23.719Z INFO Flash: 1024KiB in pages of 4KiB.
    2019-08-09T14:30:24.468Z INFO Reading device non-volatile memory. This may take a few seconds.
    2019-08-09T14:30:26.491Z INFO Parsing HEX file:  D:\desk\Lavori\RSR\RSR1252\FW\BootLoader\secure_bootloader_ble_s140_pca10056.hex
    2019-08-09T14:30:26.494Z INFO File was last modified at  08/08/2019, 16:57:56
    2019-08-09T14:30:26.567Z INFO Data block: 0x00000FF8-0x00001000 (0x00000008  bytes long)
    2019-08-09T14:30:26.568Z INFO Data block: 0x000F8000-0x000FDE29 (0x00005E29  bytes long)
    2019-08-09T14:30:38.739Z INFO Non-volatile memory has been read. 3 non-empty memory blocks identified.
    2019-08-09T14:30:42.221Z INFO Recovery procedure finished
    2019-08-09T14:30:42.230Z INFO Using nrfjprog to communicate with target
    2019-08-09T14:30:43.039Z INFO Using J-Link Software version 6.44
    2019-08-09T14:30:44.026Z INFO Segger serial:  683063924
    2019-08-09T14:30:44.027Z INFO Segger speed:  2000  kHz
    2019-08-09T14:30:44.027Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
    2019-08-09T14:30:44.038Z INFO Probed: 683063924.
    2019-08-09T14:30:44.038Z INFO Model: NRF52840_xxAA_ENGA.
    2019-08-09T14:30:44.038Z INFO RAM: 256KiB.
    2019-08-09T14:30:44.038Z INFO Flash: 1024KiB in pages of 4KiB.
    2019-08-09T14:30:44.743Z INFO Reading device non-volatile memory. This may take a few seconds.
    2019-08-09T14:30:44.916Z INFO Writing procedure starts
    2019-08-09T14:30:47.548Z INFO Write procedure finished
    2019-08-09T14:30:47.550Z INFO Using nrfjprog to communicate with target
    2019-08-09T14:30:48.320Z INFO Using J-Link Software version 6.44
    2019-08-09T14:30:49.321Z INFO Segger serial:  683063924
    2019-08-09T14:30:49.322Z INFO Segger speed:  2000  kHz
    2019-08-09T14:30:49.322Z INFO Segger version:  J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
    2019-08-09T14:30:49.333Z INFO Probed: 683063924.
    2019-08-09T14:30:49.333Z INFO Model: NRF52840_xxAA_ENGA.
    2019-08-09T14:30:49.333Z INFO RAM: 256KiB.
    2019-08-09T14:30:49.333Z INFO Flash: 1024KiB in pages of 4KiB.
    2019-08-09T14:30:50.090Z INFO Reading device non-volatile memory. This may take a few seconds.
    2019-08-09T14:31:04.252Z INFO Non-volatile memory has been read. 3 non-empty memory blocks identified.
    

  • Could you give some more information regarding the 2 logs file. I can see that you were flashing the hex file one by one and it was successful ? 

    If you flash the stock bootloader example instead of your bootloader do you see the same issue ? 

  • Hi Hung, 

    yes, if I flash the files one by one i'ts all ok.
    I'm flashing the BootLoader hex generated from your example \nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10056_ble, and softdevice here \nRF5_SDK_15.3.0_59ac345\components\softdevice\s140\hex

  • Could you tell the Jlink version you are using ? 

    If you combine softdevice hex and normal application hex do you have the same problem ?

  • Hi Hung,

    Jlink version 6.44
    No, If I load SoftDevice and Blinky example I have no issues.

Related