Difference between revisions of "IS2083 Getting Started"

From SEGGER Wiki
Jump to: navigation, search
Line 1: Line 1:
 
__TOC__
 
__TOC__
  +
  +
= 2-wire JTAG connection =
  +
J-link uses the Microchip 2-wire JTAG protocol to communicate with the IS208x MCU. This protocol specifies 5 pins, which are all mandatory to connect:
  +
* RESET (mandatory to enable 2-wire JTAG protocol on the IS208x)
  +
* VTref (used as reference voltage by J-Link to adapt to different CPU operating voltages)
  +
* GND
  +
* bi-directional data pin
  +
* clock (provided by J-Link)
  +
  +
On the BM8x EVB connector J301 is used to connect J-Link to the IS208x MCU:
  +
{| class="wikitable"
  +
|-
  +
! J301 pin !! J-Link pin
  +
|-
  +
| 1 || 15 (RESET)
  +
|-
  +
| 2 || 1 (VTref)
  +
|-
  +
| 3 || 4 (GND)
  +
|-
  +
| 4 || 5 (TDI)
  +
|-
  +
| 5 || 9 (TCK)
  +
|}
  +
  +
PIC
  +
  +
PIC
   
 
= Verifying connection with J-Link Commander =
 
= Verifying connection with J-Link Commander =

Revision as of 09:08, 12 December 2018

2-wire JTAG connection

J-link uses the Microchip 2-wire JTAG protocol to communicate with the IS208x MCU. This protocol specifies 5 pins, which are all mandatory to connect:

  • RESET (mandatory to enable 2-wire JTAG protocol on the IS208x)
  • VTref (used as reference voltage by J-Link to adapt to different CPU operating voltages)
  • GND
  • bi-directional data pin
  • clock (provided by J-Link)

On the BM8x EVB connector J301 is used to connect J-Link to the IS208x MCU:

J301 pin J-Link pin
1 15 (RESET)
2 1 (VTref)
3 4 (GND)
4 5 (TDI)
5 9 (TCK)

PIC

PIC

Verifying connection with J-Link Commander

J-Link Commander (JLink.exe from the J-Link package) can be used to verify the connection between J-Link and the IS208x device.

  • Download the J-Link package: Download
  • Start JLink.exe
BT5511 JLinkCommander.png

Debugging with Keil PK51 tools

Video

The following shows a short video that demonstrates debugging with J-Link under Keil PK51 tools.

View

Setup

  • Download and install Keil PK51 tools V9.59 Download
  • Download the J-Link package: Download
  • Go to Keil installation directory
KeilPK51 InstallDir.png
  • Make sure uVision is NOT started before continuing.
  • Open TOOLS.INI in text editor and add the following line:
TDRV10=BIN\JLinkBT5511.dll ("J-Link / J-Trace BT5511 Driver")
KeilPK51 ToolsINI Edit.png
  • Navigate to BIN\
KeilPK51 BINDir.png
  • Copy the following files from the J-Link package to this directory:
    • JLinkBT5511.dll
    • JLinkARM.dll

Connect to J-Link

  • Connect a J-Link BASE / PLUS to the PC (HW V10, see label on the back side)
  • Wait until the green LED becomes steady and stops blinking
  • Download the uVision test project: Download
  • Open the uVision test project
  • Go to the project options
  • Verify that your options look like as follows:
  • 'Device' tab:
KeilPK51 BT5511 Options Device.png
  • 'Debug' tab:
KeilPK51 BT5511 Options Debug.png
  • Click on 'Settings'
KeilPK51 BT5511 Options Debug Use.png
  • 'Settings' dialog
KeilPK51 BT5511 Options JLink.png
  • Connect your target HW to J-Link (via 2-wire JTAG)
  • Rebuild your application (Project -> Rebuild all target files)
  • Start a debug session by clicking the <PiC> symbol (Ctrl + F5)
  • 2-wire JTAG is the default selection for a J-Link BT5511 project
  • You will be asked if you want to update the firmware of the connected J-Link. Select YES.
  • Happy debugging!