Python script ‘program_nvparam’ returns with error

ID: DA1459xSDK-980

Status: Open

First reported: 10.1.2.86

Fixed in: TBD

Description

Python script ‘program_nvparam’ returns with error because it cannot find the path to JLink.

Workaround

Add the path to the SEGGER JLink.exe file in the ../sdk/utilities/python_scripts/api/jlink.py script as follows:

        with OpenKey(HKEY_CURRENT_USER, jlink_root_path, 0, KEY_READ) as registry:
            for subdir in enumerate_keys(registry):
                with OpenKey(registry, subdir) as install_path:
                    path, _ = QueryValueEx(install_path, "InstallPath")

                    # check that JLinkExe is actually installed in path
                    binary = os.path.join(path, JLINK_EXE)
                    if os.path.isfile(binary) and os.access(binary, os.X_OK):
                        jlink_install_path = path
----->  jlink_install_path = 'c:\Program Files\SEGGER\JLink_V876' <-----
        return jlink_install_path