This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to program nRF5340 DK

Hi, I'm following the steps on https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ncs%2FUG%2Fgsg%2Ffirst_test.html

But in Programmer, the read, write, erase&write, etc buttons are all gray.

2022-01-18T03:25:01.133Z INFO Application data folder: C:\Users\aaa\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2022-01-18T03:25:01.237Z DEBUG App pc-nrfconnect-programmer v2.2.0 official
2022-01-18T03:25:01.237Z DEBUG App path: C:\Users\aaa\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2022-01-18T03:25:01.237Z DEBUG nRFConnect 3.9.3, required by the app is (^3.9.2)
2022-01-18T03:25:01.238Z DEBUG nRFConnect path: C:\Users\aaa\AppData\Local\Programs\nrfconnect\resources\app.asar
2022-01-18T03:25:01.238Z DEBUG HomeDir: C:\Users\aaa
2022-01-18T03:25:01.238Z DEBUG TmpDir: C:\Users\aaa\AppData\Local\Temp
2022-01-18T03:25:02.966Z DEBUG iface: 本地连接
2022-01-18T03:25:02.966Z DEBUG IP4: 10.105.0.6
2022-01-18T03:25:02.966Z DEBUG IP6: 
2022-01-18T03:25:02.966Z DEBUG MAC: 00:00:00:00:00:00
2022-01-18T03:25:02.967Z DEBUG Client Id: 15a16119360cd3874c3034f8464fb658ed748822
2022-01-18T03:25:02.968Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
2022-01-18T03:25:03.717Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2022-01-18T03:25:03.717Z INFO JLink OB firmware version J-Link OB-K22-NordicSemi compiled Apr 29 2021 15:10:52
2022-01-18T03:25:03.717Z DEBUG Sending usage data...
2022-01-18T03:25:03.717Z DEBUG Category: pc-nrfconnect-programmer
2022-01-18T03:25:03.718Z DEBUG Action: Open jlink OB version
2022-01-18T03:25:03.718Z DEBUG Label: J-Link OB-K22-NordicSemi compiled Apr 29 2021 15:10:52
2022-01-18T03:25:03.719Z DEBUG Usage data has been sent
2022-01-18T03:25:03.719Z INFO Device family 
2022-01-18T03:25:03.719Z DEBUG Sending usage data...
2022-01-18T03:25:03.719Z DEBUG Category: pc-nrfconnect-programmer
2022-01-18T03:25:03.719Z DEBUG Action: Open jlink device family
2022-01-18T03:25:03.719Z DEBUG Label: null
2022-01-18T03:25:03.720Z DEBUG Usage data has been sent
2022-01-18T03:25:03.720Z INFO Device version 
2022-01-18T03:25:03.720Z DEBUG Sending usage data...
2022-01-18T03:25:03.720Z DEBUG Category: pc-nrfconnect-programmer
2022-01-18T03:25:03.720Z DEBUG Action: Open jlink device version
2022-01-18T03:25:03.720Z DEBUG Label: null
2022-01-18T03:25:03.721Z DEBUG Usage data has been sent
2022-01-18T03:25:03.721Z INFO Board version PCA10095
2022-01-18T03:25:03.721Z DEBUG Sending usage data...
2022-01-18T03:25:03.721Z DEBUG Category: pc-nrfconnect-programmer
2022-01-18T03:25:03.721Z DEBUG Action: Open jlink device board version
2022-01-18T03:25:03.721Z DEBUG Label: PCA10095
2022-01-18T03:25:03.722Z DEBUG Usage data has been sent
2022-01-18T03:25:03.722Z DEBUG Sending usage data...
2022-01-18T03:25:03.722Z DEBUG Category: pc-nrfconnect-programmer
2022-01-18T03:25:03.722Z DEBUG Action: Open device
2022-01-18T03:25:03.722Z DEBUG Label: jlink
2022-01-18T03:25:03.723Z DEBUG Usage data has been sent
2022-01-18T03:25:06.198Z INFO Parsing HEX file:  D:\Peripheral_Heart_Rate_nRF5340_DK\peripheral_hr.hex
2022-01-18T03:25:06.208Z INFO File was last modified at  2020/12/2下午4:36:50
2022-01-18T03:25:06.243Z INFO Update files regions according to NRFDL_DEVICE_CORE_APPLICATION core
2022-01-18T03:25:06.243Z INFO Parse memory regions for file
2022-01-18T03:25:07.675Z INFO Parsing HEX file:  D:\Peripheral_Heart_Rate_nRF5340_DK\hci_open_amp.hex
2022-01-18T03:25:07.675Z INFO File was last modified at  2020/12/2下午4:36:52
2022-01-18T03:25:07.731Z INFO Update files regions according to NRFDL_DEVICE_CORE_APPLICATION core
2022-01-18T03:25:07.732Z INFO Parse memory regions for file
2022-01-18T03:25:07.732Z INFO Update files regions according to NRFDL_DEVICE_CORE_NETWORK core
2022-01-18T03:25:07.732Z INFO Parse memory regions for file

  • Hello Aobo,

    You can try to disconnect the DK and inset it again, pressing the reset button (SW5) and then read the flash. 

    The issue might be the readback protection is enabled. You can also recover the device from command terminal using following command.

    nrfjprog --recover --coprocessor CP_NETWORK

    nrfjprog --recover

    This command is for removing readback protection and for performing erasing and flashing of the device as well. One thing you have to make sure that to recover the network core first. 

    Try this and let me know the outcome.

    Best Regards,

    Kazi Afroza Sultana

  • Hi, Kazi,

    I tried 

    nrfjprog --recover --coprocessor CP_NETWORK

    nrfjprog --recover

    I can erase & write. But the nRF Toolbox app cannot find the Dev Kit after I reset(or re-power) it.

     

     

    2022-01-19T03:17:33.761Z INFO Application data folder: C:\Users\aaa\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2022-01-19T03:17:33.867Z DEBUG App pc-nrfconnect-programmer v2.2.0 official
    2022-01-19T03:17:33.867Z DEBUG App path: C:\Users\aaa\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2022-01-19T03:17:33.868Z DEBUG nRFConnect 3.9.3, required by the app is (^3.9.2)
    2022-01-19T03:17:33.868Z DEBUG nRFConnect path: C:\Users\aaa\AppData\Local\Programs\nrfconnect\resources\app.asar
    2022-01-19T03:17:33.868Z DEBUG HomeDir: C:\Users\aaa
    2022-01-19T03:17:33.868Z DEBUG TmpDir: C:\Users\aaa\AppData\Local\Temp
    2022-01-19T03:17:35.583Z DEBUG iface: WLAN
    2022-01-19T03:17:35.583Z DEBUG IP4: 192.168.20.192
    2022-01-19T03:17:35.583Z DEBUG IP6: 
    2022-01-19T03:17:35.583Z DEBUG MAC: 18:26:49:22:37:15
    2022-01-19T03:17:35.584Z DEBUG Client Id: 91ea5a519c2bd990f56408dd31fcbec984017775
    2022-01-19T03:17:35.584Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
    2022-01-19T03:17:38.488Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2022-01-19T03:17:38.489Z INFO JLink OB firmware version J-Link OB-K22-NordicSemi compiled Jul  2 2021 10:44:28
    2022-01-19T03:17:38.489Z DEBUG Sending usage data...
    2022-01-19T03:17:38.489Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:17:38.489Z DEBUG Action: Open jlink OB version
    2022-01-19T03:17:38.489Z DEBUG Label: J-Link OB-K22-NordicSemi compiled Jul  2 2021 10:44:28
    2022-01-19T03:17:38.490Z DEBUG Usage data has been sent
    2022-01-19T03:17:38.490Z INFO Device family NRF53
    2022-01-19T03:17:38.491Z DEBUG Sending usage data...
    2022-01-19T03:17:38.491Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:17:38.491Z DEBUG Action: Open jlink device family
    2022-01-19T03:17:38.491Z DEBUG Label: NRF53
    2022-01-19T03:17:38.492Z DEBUG Usage data has been sent
    2022-01-19T03:17:38.492Z INFO Device version NRF5340_xxAA_ENGD
    2022-01-19T03:17:38.492Z DEBUG Sending usage data...
    2022-01-19T03:17:38.492Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:17:38.492Z DEBUG Action: Open jlink device version
    2022-01-19T03:17:38.492Z DEBUG Label: NRF5340_xxAA_ENGD
    2022-01-19T03:17:38.493Z DEBUG Usage data has been sent
    2022-01-19T03:17:38.493Z INFO Board version PCA10095
    2022-01-19T03:17:38.493Z DEBUG Sending usage data...
    2022-01-19T03:17:38.493Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:17:38.493Z DEBUG Action: Open jlink device board version
    2022-01-19T03:17:38.493Z DEBUG Label: PCA10095
    2022-01-19T03:17:38.494Z DEBUG Usage data has been sent
    2022-01-19T03:17:38.495Z INFO Loading readback protection status for Application core
    2022-01-19T03:17:38.495Z DEBUG Sending usage data...
    2022-01-19T03:17:38.495Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:17:38.495Z DEBUG Action: Open device
    2022-01-19T03:17:38.495Z DEBUG Label: jlink
    2022-01-19T03:17:38.496Z DEBUG Usage data has been sent
    2022-01-19T03:17:39.226Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
    2022-01-19T03:17:39.978Z INFO Parse memory regions for Application core
    2022-01-19T03:17:39.982Z INFO Device is loaded and ready for further operation
    2022-01-19T03:17:39.984Z INFO Reading memory for Application core
    2022-01-19T03:17:49.797Z INFO Reading memory for Application core completed
    2022-01-19T03:17:49.799Z INFO Parse memory regions for Application core
    2022-01-19T03:17:49.804Z INFO Resetting device
    2022-01-19T03:17:50.617Z INFO Resetting device completed
    2022-01-19T03:17:51.503Z INFO Parsing HEX file:  D:\Peripheral_Heart_Rate_nRF5340_DK\hci_open_amp.hex
    2022-01-19T03:17:51.512Z INFO File was last modified at  2020/12/2下午4:36:52
    2022-01-19T03:17:51.567Z INFO Update files regions according to Application core
    2022-01-19T03:17:51.567Z INFO Parse memory regions for file
    2022-01-19T03:17:57.939Z INFO Does not need to be reloaded:  D:\Peripheral_Heart_Rate_nRF5340_DK\hci_open_amp.hex
    2022-01-19T03:18:24.038Z INFO Parsing HEX file:  D:\Peripheral_Heart_Rate_nRF5340_DK\peripheral_hr.hex
    2022-01-19T03:18:24.038Z INFO File was last modified at  2020/12/2下午4:36:50
    2022-01-19T03:18:24.076Z INFO Update files regions according to Application core
    2022-01-19T03:18:24.076Z INFO Parse memory regions for file
    2022-01-19T03:18:27.539Z INFO Does not need to be reloaded:  D:\Peripheral_Heart_Rate_nRF5340_DK\hci_open_amp.hex
    2022-01-19T03:18:27.539Z INFO Does not need to be reloaded:  D:\Peripheral_Heart_Rate_nRF5340_DK\peripheral_hr.hex
    2022-01-19T03:19:14.204Z INFO Recovering Application core
    2022-01-19T03:19:18.668Z INFO Recovering Application core completed
    2022-01-19T03:19:18.669Z INFO Device recovery completed
    2022-01-19T03:19:18.669Z INFO Writing procedure starts for Application core
    2022-01-19T03:19:18.708Z INFO Writing HEX to Application core
    2022-01-19T03:19:19.122Z INFO Uploading image through JLink: 0%
    2022-01-19T03:19:20.242Z INFO Uploading image through JLink: 100%
    2022-01-19T03:19:20.434Z INFO Writing HEX to Application core completed
    2022-01-19T03:19:20.435Z INFO Writing procedure ends for Application core
    2022-01-19T03:19:20.436Z INFO Resetting device
    2022-01-19T03:19:21.265Z INFO Resetting device completed
    2022-01-19T03:19:21.269Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
    2022-01-19T03:19:21.269Z INFO JLink OB firmware version J-Link OB-K22-NordicSemi compiled Jul  2 2021 10:44:28
    2022-01-19T03:19:21.269Z DEBUG Sending usage data...
    2022-01-19T03:19:21.269Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:19:21.269Z DEBUG Action: Open jlink OB version
    2022-01-19T03:19:21.270Z DEBUG Label: J-Link OB-K22-NordicSemi compiled Jul  2 2021 10:44:28
    2022-01-19T03:19:21.270Z DEBUG Usage data has been sent
    2022-01-19T03:19:21.270Z INFO Device family NRF53
    2022-01-19T03:19:21.271Z DEBUG Sending usage data...
    2022-01-19T03:19:21.271Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:19:21.271Z DEBUG Action: Open jlink device family
    2022-01-19T03:19:21.271Z DEBUG Label: NRF53
    2022-01-19T03:19:21.272Z DEBUG Usage data has been sent
    2022-01-19T03:19:21.272Z INFO Device version NRF5340_xxAA_ENGD
    2022-01-19T03:19:21.272Z DEBUG Sending usage data...
    2022-01-19T03:19:21.272Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:19:21.272Z DEBUG Action: Open jlink device version
    2022-01-19T03:19:21.272Z DEBUG Label: NRF5340_xxAA_ENGD
    2022-01-19T03:19:21.273Z DEBUG Usage data has been sent
    2022-01-19T03:19:21.273Z INFO Board version PCA10095
    2022-01-19T03:19:21.273Z DEBUG Sending usage data...
    2022-01-19T03:19:21.273Z DEBUG Category: pc-nrfconnect-programmer
    2022-01-19T03:19:21.273Z DEBUG Action: Open jlink device board version
    2022-01-19T03:19:21.273Z DEBUG Label: PCA10095
    2022-01-19T03:19:21.274Z DEBUG Usage data has been sent
    2022-01-19T03:19:21.275Z INFO Loading readback protection status for Application core
    2022-01-19T03:19:21.909Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
    2022-01-19T03:19:22.539Z INFO Parse memory regions for Application core
    2022-01-19T03:19:22.541Z INFO Device is loaded and ready for further operation
    2022-01-19T03:19:22.541Z INFO Reading memory for Application core
    2022-01-19T03:19:32.311Z INFO Reading memory for Application core completed
    2022-01-19T03:19:32.313Z INFO Parse memory regions for Application core
    2022-01-19T03:19:32.315Z INFO Resetting device
    2022-01-19T03:19:33.141Z INFO Resetting device completed
    

  • When I add files without selecting the dev kit. The file memory layout is different. 

  • Hello Aobo,

    We have been receiving the issues related to programmer app and nRF53 in these days. Since developers are making changes to the back end of different NCS applications which causes unfortunately some bugs. We are working to fix it. Current solution is to download an older version of the programmer app. Here in this post you can find how to do this  https://devzone.nordicsemi.com/f/nordic-q-a/83650/nrf-connect-programmer-2-2-0-broken-for-nrf53 .

    Please try and let us know the outcome. 

    Best Regards,

    Kazi Afroza Sultana

Related