Skip to content

COM port is busy (access denied) or generally just doesn't work #241

@mortenmoulder

Description

@mortenmoulder

I'm running Windows 11 and I have been experiencing some weird issues with my PPK2. Once in a while it works flawlessly, as in no issues what so ever. Then suddenly after opening the Power Profiler app, it simply will not connect to the device. I can see it in the list, but it never connects.

I read multiple places that I should try to downgrade to 3.7.1. That did not solve it either.

I also read people saying, that if I open the Programmer first, put it into bootloader mode, and then open Power Profiler, I should accept the firmware install. That has surprisingly worked a few times.

If I open Programmer, put it into bootloader mode, open Power Profiler and proceed with the firmware install, I get an "Error while setting up device XXXXXX: Opening COM4: Access denied". I tried as administrator, but to no avail.

If I use Microsoft's Process Explorer, and I search for usbser using this guide, I get 0 results back, which probably means the COM port isn't being used by another application.

If I unplug it, plug it back in, it's now COM3 because it's out of the bootloader again. If I open Power Profiler and select the device, I just get this in the log and nothing else:

2022-01-14T00:16:51.887Z INFO Application data folder: C:\Users\morte\AppData\Roaming\nrfconnect\pc-nrfconnect-ppk
2022-01-14T00:16:51.953Z DEBUG App pc-nrfconnect-ppk v3.1.3 official
2022-01-14T00:16:51.953Z DEBUG App path: C:\Users\morte\.nrfconnect-apps\external\3.7 compatible apps\node_modules\pc-nrfconnect-ppk
2022-01-14T00:16:51.953Z DEBUG nRFConnect 3.7.1 is not supported by the app (^3.6.1)
2022-01-14T00:16:51.953Z DEBUG nRFConnect path: C:\Users\morte\AppData\Local\Programs\nrfconnect\resources\app.asar
2022-01-14T00:16:51.953Z DEBUG HomeDir: C:\Users\morte
2022-01-14T00:16:51.954Z DEBUG TmpDir: C:\Users\morte\AppData\Local\Temp
2022-01-14T00:16:53.608Z INFO Validating firmware for device with s/n XXXXXX
2022-01-14T00:16:53.619Z INFO Opening device with s/n XXXXXX

Completely dead. If I reboot my PC, it's most likely going to work again, but that's a huge pain in the rear to do every time.

Is this a Windows problem?

EDIT: Just rebooted and now it works again. So weird.

EDIT 2: Hmmmmmmmmmm after running Power Profiler for a few minutes, I wanted to open Debian running in WSL (which wasn't running at the time). Right after opening it, Power Profiler disconnected from the PPK2 and now I'm back to the original errors. Seems like WSL is messing something up. At least now I know how to replicate it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions