To answer your questions:
1 & 2: You can use the same P1 connector with an external probe to program the QN9080, however, you need to isolate the LPC from these lines, as it interferes with the external debugger if powered on. The easiest way to do this is by powering the QN9080DK board via the J1 connector, this way only the QN9080 gets powered and the LPC remains off.
3. I will request internally to see if they can upload the .pdf schematics of the QN9080DK to the website. I will keep you updated.
Thanks for the reply, what you recommended is the first thing I tried... It doesn't work. Just to be clear I connected my micro USB to J1 and then connected my jlink plus to the p1 connector. Both my USB cable and my Jlink-plus work well. I currently use my jlink-plus on 3 other projects and it works fine. You mentioned that I need to isolate myself from the LPC, I thought the same. From looking at the schematic it doesn't appear that isolating my self is as simple as not powering the LPC... The JTAG/SWD lines that are on the P1 connector don't appear to run directly to the QN9080 chip which is another reason why I can't simply use the P1 connector. I also tried what you recommended with another qn9080 dev kit ( i have 2 ) and no dice, have you tried your recommendation?
BTW, I have also asked the same question to Hy Mai a field rep for NXP and he is also having problems using an external J-Link debugger.
I was able to program the QN9080 with an external J-Link and powering the board through J1 with both MCUXpresso v10.0.2 and IAR 8.11. Here is a picture of my setup:
What is the version of your QN9080DK?
The QN_PA23_TMS_SWDIO signal from the QN9080 module is connected directly to P1 pin 2 (IF_TMS_SWDIO) and QN_PA22_TCK_SWDCLK signal from the QN9080 module is connected by U3 (double-throw analog switch) to P1 pin 4 (IF_TCK_SWCLK). Can you verify we have the same jumper connections from the picture above?
I'm also having problem with using Segger J-Link debug probe and MCUXpresso IDE to debug the QN908x DK board. I see the picture and thread you posted above, it looks like you were able to "program" the board successfully. Were you using the QN9080 Programmaning tool just to program it, or were you actually using MCUXpresso IDE to conduct a debug session via J-Link probe? If it is the latter, I'm very interested in learning how you set it up. I have all the jumper setting just like yours. I also connect the power to J1 and dubug probe to P1 (I had to remove pin 7 of the connector to fit the Segger J-Link probe). I followed the instruction in section 4.4 of the Quick Start User Guide:
to change the debug mode to J-Link. I also get latest version of JLink driver.
Despite all that, it still fails on me.
The attached picture shows my hardware setup.
The following shows my Debug Config menu in MCUXpresso IDE:
The following shows the result:
Would appreciate your review and pointing out anything that I might have missed.
With this setup I could use MCUXpresso IDE to conduct a debug session via J-Link probe. I find strange in your debug Configuration window that the JLink interface and Device was not detected correctly. See below my window, where the JLink interface displays the S/N of my JLink probe and the Device is "QN9080C".
Did you create the debug configuration manually? If so, please delete this debug configuration and instead use the Debug "project_name" option from the Quickstart Panel.
This button will start a debug probe discovery and create the debug configuration accordingly.
Let me know if this solves the issue.
I think I made a mistake not to delete all configurations. I only deleted the one I manually created, leaving still the one in the "C/C++ (NXP Semiconductors MCU Application" menu. That's why I got the error message. Now after I deleted all configurations and started over by pressing "Debug <project name>" button, it can discover the J-link probe now.
With great pleasure, I'm informing that I solved my problem, mostly thanks to your advice in this post.
Thanks so much and have a great day!
Yes, I did create it manually. I followed your advice and deleted it. Now I'm using the button "Debug_<project name>" in the Quickstart panel. Unfortunately, I got no luck with the following response:
It couldn't detect the J-Link probe. What kind of probe are you using? I wonder I got the wrong probe (J-Link base) as in the above picture.