The J-Link RDI interface makes it possible to use J-Link ARM with any RDI-compliant debugger. The package consists of two DLLs which need to be copied to the debugging software's program folder and selected in your debugger software. J-Link RDI Software Configuration Currently, the RDI software has only been tested with ARM7 devices. Note: If using IAR Embedded Workbench, be sure to overwrite JLinkARM.dll in the arm/bin folder with the one included in the J-Link ARM RDI Zip file. Normally, the default settings can be used. The Speed field allows the selection of a fixed JTAG speed. Via setup file, the target system can be initialized in just about any way required. Setup File Commands: | SetJTAGSpeed(x); | Sets the JTAG speed, x = speed in kHz (0=Auto) | | Delay(x); | Waits a given time, x = delay in milliseconds | | Reset(x); | Resets the target, x = delay in milliseconds | | Go(); | Starts the ARM core | | Halt(); | Halts the ARM core | | Read8(Addr); | Reads a 8/16/32 bit value, Addr = address to read (as hex value) | | Read16(Addr); | | Read32(Addr); | | Verify8(Addr, Data); | Verifies a 8/16/32 bit value, Addr = address to verify (as hex value) Data = data to verify (as hex value) | | Verify16(Addr, Data); | | Verify32(Addr, Data); | | Write8(Addr, Data); | Writes a 8/16/32 bit value, Addr = address to write (as hex value) Data = data to write (as hex value) | | Write16(Addr, Data); | | Write32(Addr, Data); | | WriteVerify8(Addr, Data); | Writes and verifies a 8/16/32 bit value, Addr = address to write (as hex value) Data = data to write (as hex value) | | WriteVerify16(Addr, Data); | | WriteVerify32(Addr, Data); | | WriteRegister(Reg, Data); | Writes a register | | WriteJTAG_IR(Cmd); | Writes the JTAG instruction register | | WriteJTAG_DR(nBits, Data); | Writes the JTAG data register | Example setup file: /********************************************************************* * * Setup file for J-LINK RDI * ********************************************************************** * File: LPC2294.setup * Purpose: Setup for Philips LPC2294 chip ********************************************************************** */ SetJTAGSpeed(1000); Reset(0); Write32(0xE01FC040, 0x00000001); // Map User Flash into Vector area at (0-3f) Write32(0xFFE00000, 0x20003CE3); // Setup CS0 Write32(0xE002C014, 0x0E6001E4); // Setup PINSEL2 Register SetJTAGSpeed(2000); RDI Flash Loader RDI by itself does not include download to Flash. In order to debug in Flash, you need some way to load your application program (debuggee) into the Flash. For this purpose, you have basically three options: You can use the J-Flash software, use the Flash loader from your debugger's manufacturer (if they supply one), or use the Flash Loader integrated in the J-Link RDI software. Optional Flash Breakpoints License An additional FlashBP license for the J-Link RDI software allows you to set an unlimited number of software breakpoints in Flash memory areas, rather than just the 2 hardware breakpoints. A RAM code, specially designed for this purpose, sets and clears Flash breakpoints extremely fast; on micros with fast Flash, the difference between breakpoints in RAM and Flash is hardly noticeable. In addition, a combination of software and hardware breakpoints, as well as a built-in instruction set simulator, reduces the number of Flash operations that need to be performed. This minimizes delays for the user, maximizing the lifetime of the Flash. All resources of the ARM micro are available to the application program; no memory is lost for debugging. To view the list of microcontrollers supported by this feature, see the FlashBP separate order page. To purchase the FlashBP option together with this RDI Interface, use the bundles listed below for a significant discount. Purchasing Options If you already own a J-Link ARM or J-Trace ARM... - ...and all you require is this RDI Interface, use this page.
- ...and you require this RDI Interface with the Flash Breakpoints license, purchase the RDI Pro Bundle.
If you do not yet own a J-Link ARM... - ...and all you require with it is this RDI Interface, or the RDI Interface with Flash Loader, purchase the J-Link/RDI Bundle.
- ...and you require it with this RDI Interface and the Flash Breakpoints component, purchase the J-Link RDI Pro Bundle.
For a complete list of J-Link bundle packages, see the J-Link ARM order page. There are no bundle packages that include the J-Trace ARM.
|