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:
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?
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?
You are trying "--recover" and not "nrfjprog--recover". Please try "nrfjprog --recover". This should help.
-Priyanka
PS C:\nordic\myapps\fund_less1_ecer2> nrfjprog--recover
nrfjprog--recover : The term 'nrfjprog--recover' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ nrfjprog--recover
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (nrfjprog--recover:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
It's working now thank you