nRF5340 keeps connecting and disconnecting from M1 MacBook Air


I have an issue with the nRF5340 when using it with an M1 MacBook Air. When I connect it to the laptop I get a notification about JLink ejecting every few seconds.


These are the errors I get in the console:


The kit is actually connected and I am able to flash it. I also do not have this issue when I attach to it using the jlink base programming and debug probe.

I have tried:

- restarting the laptop

- reinstalling JLink

- updating the laptop

- installing different versions of jlink

- resetting NVRAM

- using different hubs for the usb

- looking if the kit receives enough power

Do you have any idea as to what I could do?

Thanks in advance!