I've been having problems getting nRF Connect to flash a target through my J-Link programmer lately, even though it has historically worked fine. I suspected the issue might be related to network-enforced security settings, and my IT department created an exemption for my computer. It may be that I need to make sure certain executables run with administrator rights, and I've been going around flagging everything I think might be relevant with "Run as administrator," but I haven't had any luck so far. I'll paste the full text from the build attempt below.
Do I need to set some particular executables to run as administrator, and I've just not hit the correct one yet? What program is being referenced here that needs elevated priveleges?
My first thought was python.exe, but there are different instances of it so maybe I did the wrong ones. I did these:
C:\Program Files\Python311\python.exe
C:\Users\scase\AppData\Local\Programs\Python\Python311\python.exe
C:\Users\scase\AppData\Local\Programs\Python\Python314\python.exe
C:\sandbox\nRF_Connect\toolchains\v2.2.0\opt\bin\python.exe
Thanks!
Scott
Flashing build to J-Link Ultra+
west flash -d c:\gitRepos\GR3_Firmware\build -i 504500724
-- west flash: rebuilding
[0/4] Performing build step for 'mcuboot_subimage'
ninja: no work to do.
-- west flash: using runner jlink
-- runners.jlink: JLink version: 7.96i
-- runners.jlink: Flashing file: C:\gitRepos\GR3_Firmware\build\zephyr\merged.hex
Traceback (most recent call last):
File "runpy.py", line 197, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\ncs\toolchains\cf2149caf2\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>
File "C:\ncs\toolchains\cf2149caf2\opt\bin\Lib\site-packages\west\app\main.py", line 1085, in main
app.run(argv or sys.argv[1:])
File "C:\ncs\toolchains\cf2149caf2\opt\bin\Lib\site-packages\west\app\main.py", line 244, in run
self.run_command(argv, early_args)
File "C:\ncs\toolchains\cf2149caf2\opt\bin\Lib\site-packages\west\app\main.py", line 505, in run_command
self.run_extension(args.command, argv)
File "C:\ncs\toolchains\cf2149caf2\opt\bin\Lib\site-packages\west\app\main.py", line 654, in run_extension
self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
File "C:\ncs\toolchains\cf2149caf2\opt\bin\Lib\site-packages\west\commands.py", line 194, in run
self.do_run(args, unknown)
File "C:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts\west_commands\flash.py", line 32, in do_run
do_run_common(self, my_args, runner_args, domains=domains)
File "c:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts/west_commands\run_common.py", line 178, in do_run_common
do_run_common_image(command, user_args, user_runner_args, d.build_dir)
File "c:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts/west_commands\run_common.py", line 254, in do_run_common_image
runner.run(command_name)
File "c:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts/west_commands\runners\core.py", line 551, in run
self.do_run(command, **kwargs)
File "c:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts/west_commands\runners\jlink.py", line 244, in do_run
self.flash(**kwargs)
File "c:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts/west_commands\runners\jlink.py", line 345, in flash
self.check_call(cmd, **kwargs)
File "c:\sandbox\nRF_Connect\v2.2.0\zephyr\scripts/west_commands\runners\core.py", line 662, in check_call
subprocess.check_call(cmd, **kwargs)
File "subprocess.py", line 368, in check_call
File "subprocess.py", line 349, in call
File "subprocess.py", line 951, in __init__
File "subprocess.py", line 1420, in _execute_child
OSError: [WinError 740] The requested operation requires elevation
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
