Comands in the macro file
Command
SetJTAGSpeed(x);
Delay(x);
Reset(x);
Go();
Halt();
Read8(Addr);
Read16(Addr);
Read32(Addr);
Verify8(Addr, Data);
Verify16(Addr, Data);
Verify32(Addr, Data);
Write8(Addr, Data);
Write16(Addr, Data);
Write32(Addr, Data);
WriteVerify8(Addr, Data);
WriteVerify16(Addr, Data);
WriteVerify32(Addr, Data);
WriteRegister(Reg, Data);
WriteJTAG_IR(Cmd);
WriteJTAG_DR(nBits, Data); Writes the JTAG data register
Table 8.2: Macro file commands
Example of macro file
/*********************************************************************
*
*
Macro 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
SetJTAGSpeed(2000);
J-Link / J-Trace (UM08001)
Sets the JTAG speed,
Waits a given time,
= delay in milliseconds
x
Resets the target,
= delay in milliseconds
x
Starts the ARM core
Halts the ARM core
Reads a 8/16/32 bit value,
= address to read (as hex value)
Addr
Verifies a 8/16/32 bit value,
= address to verify (as hex value)
Addr
= data to verify (as hex value)
Data
Writes a 8/16/32 bit value,
= address to write (as hex value)
Addr
= data to write (as hex value)
Data
Writes and verifies a 8/16/32 bit value,
= address to write (as hex value)
Addr
= data to write (as hex value)
Data
Writes a register
Writes the JTAG instruction register
PINSEL2 Register
© 2004-2013 SEGGER Microcontroller GmbH & Co. KG
Description
= speed in kHz (0=Auto)
x
227
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers