Hi,
I'm trying to access the 2nd Jtag in the daisy chain using the JLink Commander.
Here's the start up log which showed 2 JTAG devices:
==========================================================
SEGGER J-Link Commander V5.10o (Compiled Feb 25 2016 18:51:37)
DLL version V5.10o, compiled Feb 25 2016 18:50:59
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-STM32F103 V1 compiled Feb 5 2014 13:48:52
Hardware version: V1.00
S/N: 660006136
Emulator has Trace capability
VTref = 3.300V
Type "connect" to establish a target connection, '?' for help
J-Link>
Unknown command. '?' for help.
J-Link>connect
Please specify device / core. <Default>: CORTEX-M0
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
TIF>
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "CORTEX-M0" selected.
TotalIRLen = 9, IRPrint = 0x0021
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ E00FF000
ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
Found 2 JTAG devices, Total IRLen = 9:
#0 Id: 0x040037E3, IRLen: 05, Unknown device
#1 Id: 0x0BA01477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)[/b]
Cortex-M0 identified.
==========================================================
When I check the IDCODE it shows ID from #1 device:
J-Link>i
JTAG Id: 0x0BA01477 Version: 0x0 Part no: 0xba01 Man. Id: 023B
I'm new to this, could anyone please give me some pointers on how to access device#0 to do some basic tag operations like
IDCODE, access some registers... I could not find any sample code for this on Segger or the internet.
Much appreciate.
I'm trying to access the 2nd Jtag in the daisy chain using the JLink Commander.
Here's the start up log which showed 2 JTAG devices:
==========================================================
SEGGER J-Link Commander V5.10o (Compiled Feb 25 2016 18:51:37)
DLL version V5.10o, compiled Feb 25 2016 18:50:59
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-STM32F103 V1 compiled Feb 5 2014 13:48:52
Hardware version: V1.00
S/N: 660006136
Emulator has Trace capability
VTref = 3.300V
Type "connect" to establish a target connection, '?' for help
J-Link>
Unknown command. '?' for help.
J-Link>connect
Please specify device / core. <Default>: CORTEX-M0
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
TIF>
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "CORTEX-M0" selected.
TotalIRLen = 9, IRPrint = 0x0021
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ E00FF000
ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
Found 2 JTAG devices, Total IRLen = 9:
#0 Id: 0x040037E3, IRLen: 05, Unknown device
#1 Id: 0x0BA01477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)[/b]
Cortex-M0 identified.
==========================================================
When I check the IDCODE it shows ID from #1 device:
J-Link>i
JTAG Id: 0x0BA01477 Version: 0x0 Part no: 0xba01 Man. Id: 023B
I'm new to this, could anyone please give me some pointers on how to access device#0 to do some basic tag operations like
IDCODE, access some registers... I could not find any sample code for this on Segger or the internet.
Much appreciate.