jaredwolff Yes that is correct. I am able to run other code successfully (such as AT_Client) Here is the full error log:
PS C:\Users\Chris\OneDrive\Desktop\Test\nfed\samples\mfw_update> python3 update_modem.py mfw_nrf9160_1.2.7.zip COM5 1000000
# modem firmware upgrade over serial port example started.
[HighLevel] Creating new probe
[HighLevel] Initialize new probe.
[Probes.COM5] [ModemUARTDFUProbe] Dll directory is C:\Users\Chris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pynrfjprog\lib_x64.
[Probes.COM5] [ModemUARTDFUProbe] Find and connect to dfu dll
[Probes.COM5] [ModemUARTDFUProbe] Using DFU dll at C:\Users\Chris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pynrfjprog\lib_x64\NRFDFU.dll.
[Probes.COM5] [ModemUARTDFUProbe] Load library at C:\Users\Chris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pynrfjprog\lib_x64\NRFDFU.dll.
[Probes.COM5] [ModemUARTDFUProbe] GetErrorInfo failed.
[Probes.COM5] [ModemUARTDFUProbe] Failed to load dll at C:\Users\Chris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pynrfjprog\lib_x64\NRFDFU.dll.
[HighLevel] Failed while initializing probe.
[Probes.COM5] b'An error was reported by NRFJPROG DLL: -151 NRFJPROG_SUB_DLL_COULD_NOT_BE_OPENED. \n[Probes.COM5] [ModemUARTDFUProbe] GetErrorInfo failed.\n\textra: [Probes.COM5] [ModemUARTDFUProbe] Failed to load dll at C:\\Users\\Chris\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\pynrfjprog\\lib_x64\\NRFDFU.dll.\n\textra: [HighLevel] Failed while initializing probe.'
[HighLevel] Closing and freeing sub dlls.
Traceback (most recent call last):
File "C:\Users\Chris\OneDrive\Desktop\Test\nfed\samples\mfw_update\update_modem.py", line 43, in <module>
run(args.uart, args.firmware, args.baudrate)
File "C:\Users\Chris\OneDrive\Desktop\Test\nfed\samples\mfw_update\update_modem.py", line 25, in run
with HighLevel.ModemUARTDFUProbe(api, uart, baudrate) as modem_dfu_probe:
File "C:\Users\Chris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pynrfjprog\HighLevel.py", line 591, in __init__
raise APIError(result, error_data=self.get_errors(), log=self._logger.error)
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -151 NRFJPROG_SUB_DLL_COULD_NOT_BE_OPENED.
[Probes.COM5] [ModemUARTDFUProbe] GetErrorInfo failed.
extra: [Probes.COM5] [ModemUARTDFUProbe] Failed to load dll at C:\Users\Chris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pynrfjprog\lib_x64\NRFDFU.dll.
extra: [HighLevel] Failed while initializing probe.
PS C:\Users\Chris\OneDrive\Desktop\Test\nfed\samples\mfw_update>