Debugging PIC32 with SEGGER J-LINK in MPLAB X IDE

Publisher:创新之星Latest update time:2020-08-25 Source: eefocusKeywords:MPLAB  IDE  SEGGER  J-LINK Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In general, there are some limitations when using J-LINK to debug PIC32 under MPLAB X IDE; the recommended approach is to use Microchip's own debugging tools.


The following is an excerpt from the help document regarding J-LINK.


SEGGER J-Link Debug Probes

SEGGER J-Link debug probes bring JTAG development to MPLAB X IDE.

J-Link Debug Probes Supported

The following J-Link probe versions and types have been tested and are supported in MPLAB X IDE:
Version 9 and newer: J-Link BASE

The following J-Link probe versions and types should work in MPLAB X IDE:
Version 9 and newer: J-Link PLUS, J-Link EDU
Version 4 and newer: J-Link ULTRA+, J-Link PRO

To determine your probe version, look at the label on the back side of the probe, which describes the serial number and hardware version.

If you have an older version of J-Link debug probe, SEGGER offers a trade-in program which permits you to upgrade to the latest hardware version. SEGGER provides a discounted rate of the current list cost for the unit being traded in.

Supported Microchip Devices

To see a list of Microchip devices supported by the probe, go to:
http://www.segger.com/jlink_supported_devices.html?m=Microchip

SEGGER J-Link Debug Probes : J-Link Microchip Adapter

J-Link Microchip Adapter

A adapter to use the J-Link probe with Microchip PIC32 devices is provided with a Segger J-Link probe purchased through Microchip. If you already own a supported Segger J-Link probe, you may purchase the adapter separately at:

Adapter configurations are shown in the figures below.

Figure: J-Link Microchip Adapter - 2-Wire JTAG
Write the picture description here

Figure: J-Link Microchip Adapter - 4-Wire JTAG
Write the picture description here

Available target interfaces

In general, there are three target interfaces available on PIC32 devices:
1. Debug via traditional 4-wire JTAG (IEEE1149.1)
2. Debug via Microchip proprietary 2-wire JTAG
3. Programming via Microchip proprietary 2-wire JTAG

(1) and (3) are supported by all PIC32 devices. (2) is supported by all later PIC32 devices, but not by some old ones. On such devices, debugging via 4-wire JTAG should be used. The following devices do not support full debugging via 2-wire JTAG:
• PIC32MX320 / 340 / 360 series devices
• PIC32MX420 / 440 / 460 series devices
• PIC32MX534 / 564 / 575 series devices
• PIC32MX664 / 675 / 695 series devices
• PIC32MX775 / 764 / 795 series devices

The J-Link PIC32 Adapter provides connectors for all commonly used headers for PIC32:
• 14-pin 0.1” connector for 4-wire JTAG
• RJ11 connector for 2-wire JTAG
• 6-pin PICkit connector (soldering option)

What is 2-wire JTAG?

2-wire JTAG is a proprietary debug interface defined by Microchip. Based on 4-wire JTAG device internally, using a 2-wire converter that multiplexes the TMS, TDI, TDO JTAG lines to a single data line to the outside and demultiplexes it to the inside. Requires a special conversion unit in the device. On older devices, this conversion unit was only activated in case the device was in the special 2-wire programming mode, but did not allow full debugging using the 2-wire protocol.


Keywords:MPLAB  IDE  SEGGER  J-LINK Reference address:Debugging PIC32 with SEGGER J-LINK in MPLAB X IDE

Previous article:MPLAB v8.60 Color Settings
Next article:MPLAB X IDE editor red vertical line position movement and Chinese comment under the wavy line removal

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号