Hi Scott,
Could you provide details of the board that you are using and the SDK that you are working with ?
Regards,
Priyanka
Hello Priyanka and thank you.
I am using a nRF52840 Development Kit Board.
The SDK I am using is:
I am following DevAcadamy nRF Connect SDK Fundamentals Lesson 1 Exercise 2
When I plug my USB cord in the board does not show up in the connected devices view:
Hi,
Let us go through the issues sequentially. First, I would suggest you to uninstall everything and then start again the installation as I mention below:
1. Install nRF Command Line Tools (latest version)
2.Install the latest version of SEGGER J-Link.
3. Install nRF Connect for Desktop application.
4. Within the application, install the Toolchain Manager.
5. Within Toolchain Manager, install the nRF Connect SDK v2.7.0
6. Now open the VSCode via the Toolchain Manager:
7. Make sure you have installed the nRF Connect for VSCode extension pack. and now you should be able to build and run your applications.
Next we can look into the DK detection issue:
Could you try with different USB cables just to cross out whether it's a USB issue. Please make sure that you are inserting the cord into the right USB port on the DK.
What is your DK revision? (details on the white sticker on the DK)
Regards,
Priyanka
Please check the previous comment in the ticket and follow the steps. Do let me know if you still face the issue after trying those. You could also try to update python, in addition to those.
-Priyanka
Thanks to your valuable help the prior issues are resolved
Now it looks like it is compiling but fatal-ing on the flash:
ERROR: No debuggers were discovered.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 41: nrfjprog --program 'C:\nordic\myapps\fund_less1_ecer2\build\fund_less1_ecer2\zephyr\zephyr.hex' --sectoranduicrerase --verify -f NRF52 --snr 1050265833
It seems to me like my nRF Connect needs some issue fixes - can you advise
Latest error:
[error] [ Client] - Encountered error -90: Command erase_file executed for 28 milliseconds with result -90
[error] [ nRF52] - Failed while erasing device. -90: Access protection is enabled, can't read device version.
[error] [ Worker] - Access protection is enabled, can't read device version.
ERROR: The operation attempted is unavailable due to readback protection in
ERROR: your device. Please use --recover to unlock the device.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
ERROR: runners.nrfjprog: Flashing failed because the target must be recovered.
To fix, run "west flash --recover" instead.
Note: this will recover and erase all flash memory prior to reflashing.
FATAL ERROR: command exited with status 24: nrfjprog --program 'C:\nordic\myapps\fund_less1_ecer2\build\fund_less1_ecer2\zephyr\zephyr.hex' --chiperase --verify -f NRF52 --snr 1050265833
* The terminal process terminated with exit code: 24.
* Terminal will be reused by tasks, press any key to close it.
How do I deactivate device protection?
Hi Scott,
In order to deactivate the device protection, you could try nrfjprog --recover, or as mentioned in the log:
tylerca310 said:To fix, run "west flash --recover" instead.
-Priyanka
Latest issue:
PS C:\nordic\myapps\fund_less1_ecer2>
PS C:\nordic\myapps\fund_less1_ecer2> west flash --recover
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ west flash --recover
+ ~~~~
+ CategoryInfo : ObjectNotFound: (west:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\nordic\myapps\fund_less1_ecer2> --recover
At line:1 char:3
+ --recover
+ ~
At line:1 char:3
+ --recover
+ ~~~~~~~
Unexpected token 'recover' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator
PS C:\nordic\myapps\fund_less1_ecer2> -- recover
At line:1 char:3
+ -- recover
+ ~
At line:1 char:4
+ -- recover
+ ~~~~~~~
Unexpected token 'recover' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator
Where should I get the missing software from?