To solve Error opening connection: Read error on DK6programmer;
Find the COM port connected to your board using:
dk6programmer.exe -l
Next clean the flash memory using:
DK6Programmer.exe -V 5 -P 1000000 -s <COM_PORT> -e Flash
Now you should no longer get the message. Although this process may have to be repeated. If this doesn't work switch the FTDI/LPC USB connection and try again. Make sure that whenever you switch the USB input to also move the jumpers on JP7 and JP4 to the corresponding pins (marked on the board or see below for further details).
To solve debugging and flashing errors use this board setup;
Move the jumper on JP7 and JP4 (located next to the FTDI USB port) from pins 2-3 to 1-2 and use the LPC USB connector (closest to the reset button). This will enable you to use MCUXpresso for debugging and flashing using the GUI Flash Tool.
To solve the second issue of "Target not found" on debugging using MCUXpresso;
Go to Debug Configurations-> YOUR_PROJECT -> LinkServer Debugger (1), then find the Connect Script file explorer under Debug Connection. This needs to be pointing to QN9090Connect.scp to work.
I would also suggest reading this GitHub repo https://github.com/openthread/ot-nxp/blob/main/src/k32w0/jn5189/README.md
(1) if you cannot see your project exit Debug Configurations. Select your project in the Project Explorer tab, then go to Debug Configurations and click New Launch Configuration.