How to program QN9080-DK with external PE Micro Multilink

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to program QN9080-DK with external PE Micro Multilink

Jump to solution
1,455 Views
rickdickerson
Contributor III

I am having a similar question to another post, but he is using the J-Link Debugger and I am using the PE Micro Multilink ACP. I am creating a new post so I don't hijack this thread: How to program qn9080-dk with external J-Link Debugger.

After following the steps in the above thread, it appears that the Multilink programs the board because the application works as expected after I reset the board. However, I can't actively debug my project and the CRC-16 calculation does not match the expected value (see log below). When I created the debug configuration using the quick start panel the wizard found the Multilink, but reported that it couldn't find a matching device and that I should enter it manually. I selected the QN9080C for the debug configuration and release configuration created by the wizard. When I try to debug the application, the device gets programmed and the IDE hangs for several seconds before it displays a dialog that simply says "Error during flash programming. Terminating debug session." There is no option to display more details.

How can I use the PE Micro Multilink to program the development board? 

As the previous thread points out, the schematics in the QN9080-DK user guide are difficult to read. Please upload some higher quality documents so we can zoom in.

pastedImage_2.png

pastedImage_6.png

Here is the log:

Connection from "127.0.0.1" via 127.0.0.1
Connection from "127.0.0.1" via 127.0.0.1
Telnet server running on 127.0.0.1:51794
Searching for FreeRTOS Kernel Symbols...
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Copyright 2017 P&E Microcomputer Systems,Inc.
Command Line :C:\nxp\MCUXpressoIDE_10.1.1_606\ide\plugins\com.pemicro.debug.gdbjtag.pne_3.2.4.201710241511\win32\pegdbserver_console -device=NXP_Sensors_QN9080C -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5�

CMD>RE

Initializing.
Target has been RESET and is active.
CMD>CM C:\nxp\MCUXpressoIDE_10.1.1_606\ide\plugins\com.pemicro.debug.gdbjtag.pne_3.2.4.201710241511\win32\gdi\P&E\supportFiles_ARM\NXP\Sensors\nxp_qn9080c_1x32_128k.arp

Initializing.
Initialized.

;version 1.00, 04/27/2017, Copyright 2017 P&E Microcomputer Systems, www.pemicro.com

;device nxp,qn9080c, 1x32x128k

;begin_cs device=$00000000, length=$00080000, ram=$20000000

Loading programming algorithm ...

WARNING - Selected .ARP file has been modified. CRC16 = $9B6E
Done.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-00000113 ...
Calculated CRC-16 does not match block. (File = $C333, Device = $EF1F)

CMD>EM

Erasing.
Module has been erased.
CMD>PM

Programming.
Processing Object File Data ...


.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-00000113 ...
Calculated CRC-16 does not match block. (File = $C333, Device = $EF1F)
Error verifying flash of device
Error occured during Flash programming.
PE-ERROR: Error downloading to the device.
Disconnected from "127.0.0.1" via 127.0.0.1
Disconnected from "127.0.0.1" via 127.0.0.1
Target Disconnected.

Tags (3)
1 Solution
968 Views
gerardo_rodriguez
NXP Employee
NXP Employee

Hi Rick,

Please find attached the updated algorithm I received from P&E. 

The issue was caused by a verification error from address 0x1C in the QN9080. This address contains a checksum of the first 7 32bit words and is inserted by the flashloader algorithm.

Let me know if you are still having issues with this algorithm.

Regards,

Gerardo

View solution in original post

0 Kudos
5 Replies
968 Views
gerardo_rodriguez
NXP Employee
NXP Employee

Hello Rick,

I'm having similar issues programming a QN9080DK with a PEmicro Multilink Universal FX in all the supported IDEs by the QN908x (MCUXpresso, IAR, KEIL), so I think that the issue could be related to the PEmicro QN9080 Flash Algorithm. I will contact PEmicro support to report this issue.

About the QN9080DK schematics, you can find them under the SOFTWARE & TOOLS tab of the QN9080DK product page.

Regards,

Gerardo

Edit:

In IAR this issue is not present with the PEmicro probe. The device I was testing was locked and that was causing the issue.

0 Kudos
968 Views
rickdickerson
Contributor III

I downloaded the latest programming algorithm package just in case there is an update, but the algorithm hasn't changed recently.

0 Kudos
969 Views
gerardo_rodriguez
NXP Employee
NXP Employee

Hi Rick,

Please find attached the updated algorithm I received from P&E. 

The issue was caused by a verification error from address 0x1C in the QN9080. This address contains a checksum of the first 7 32bit words and is inserted by the flashloader algorithm.

Let me know if you are still having issues with this algorithm.

Regards,

Gerardo

0 Kudos
968 Views
rickdickerson
Contributor III

I was able to program and debug the QN9080-DK using that programming algorithm. I did that by selecting "Use Alternate Algorithm"  in the debugger configuration because I couldn't find where the default algorithms are stored for MCUXpresso. Where can I put the updated algorithms files so I can use them by default in all my projects?

968 Views
gerardo_rodriguez
NXP Employee
NXP Employee

If you are using Windows OS, they are located at "C:\NXP\MCUXpressoIDE_10.1.1_606\ide\plugins\com.pemicro.debug.gdbjtag.pne_3.2.4.201710241511\win32\gdi\P&E\supportFiles_ARM\NXP\Sensors\".

0 Kudos