CTRL-AP secured /unsecured problem when trying to view log with J-Link RTT view from nRF52840DK with loaded bsp pca10056.hex that comes with nRF5 SDK 17.1.0

Can’t RTT view even provided precompiled code that comes with nRF5 SDK v17.1.0. Tried also the .hex versions that came with older SDK back to 15.3 – same story . Tried even the Blinky example (despite it doesn’t have any logging inside) – still same CTRL-AP alertFrowning2

When connect  RTT View to the nRF52840DK and get right away a message that the device is secured and need to be unsecured.

But if I accept the proposed option Yes, then it wipes the flash including the bsp example code

If answer No  - J-Link RTT refuses to connect and aborts the session.

Found similar thread, but for different chip, so cant try the code provided there. Didn’t see (maybe missed as the thread is long ) explanation of a solution for the problem that could apply to provided examples precompiled .hex files without recompiling again?

  • Hi Vidar,

    Will try it ASAP.

    BTW while I was trying  nrfjprog commands that you gave as well the ones posted in the Nordic blog I realized that my command line tools (ver 6.88a) might be too old as I didn’t get expected results, but when I tried to install the latest version downloaded from the Nordic website nrf-command-line-tools-10.24.2-x64.exe, found bugs in the installer, which took me extra time until find workaround Frowning2 Do you have bug report page where could report this when have some extra time?

     

     

     

    Thank you and best regards

  • Hi,

    I should have also mentioned that nrfjprog must be up-to-date to support the new silicon. Regarding the bug you encountered during installation, please post the details here or in a new ticket, and I will create an internal bug report.

    Thanks,

    Vidar

  • Bug report  - nrf-command-line-tools-10.24.2-x64.exe   doesn’t installs properly when there is existing older version of command-line tools:

    I had already installed nRF-Command-Line-Tools_10_9_0_Installer_64.exe     from before.

     

    When tried to  run for first time  nrf-command-line-tools-10.24.2-x64.exe    with all defaults: When command line tolls finished installation without reporting any problems, installer ask me to install and newer version of J-Link which I also accepted as well some VC++ redistributal files after which I also accepted.

    After this installation finished, nrfjprog was not  working/recognized. When I looked at the installation folder : - in bin subfolder there was only 2 files  - one  .dll and one .exe (but was not nrfjprog.exe). When I looked in the Windows PATH system variable – the pointer to    C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin    was also gone/not available anymore.

    Restarted Windows – no any change in content and behavior as before restart

    Run  nrf-command-line-tools-10.24.2-x64.exe  for second time    - selected option “Repair”. Finished normal, but  nrfjprog still was not working, the \bin folder content was same and still there was no pointer  to \bin in my PATH

    Restarted Windows – no any change in content and behavior as before restart

    Run  nrf-command-line-tools-10.24.2-x64.exe  for third time    - selected option “Uninstall”

    Checked to    C:\Program Files\ - uninstaller have wiped completely former Nordic Semiconductor  folder.

    Run  nrf-command-line-tools-10.24.2-x64.exe  for fourth time    - this time installer installed nrf-command-line-tools, but didn’t ask me for installing JLink or any adittional files. Now finally the installation and PATH were Ok.

    P.S. Let me know if this installer makes log file somewhere, so to send it /attach it as well.

    Thanks

Related