Greetings!
I have a device with long JTAG chain (one STM32f103, then two different PLD`s, then other STM32F103).
I need to program a last one STM32. I used a ULINK2 for this and are trying to move forward to J-Link (Base version).
You can have a look at the chain in attachments.
I`m trying to program the controller with KEIL mVision 5.24 + J-Link HW 10.10 and dll 6.30b.
mVision prints Build Output like this:
------------
DLL: V6.30b, compiled Feb 2 2018 18:36:54
Firmware: J-Link V10 compiled Feb 2 2018 18:12:40
Hardware: V10.10
S/N : 50110147
Feature(s) : GDB
* JLink Info: TotalIRLen = 34, IRPrint = 0x00233B3A11
* JLink Info: JTAG chain detection found 6 devices:
* JLink Info: #0 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #1 Id: 0x16410041, IRLen: 05, STM32 Boundary Scan
* JLink Info: #2 Id: 0x1E9041CF, IRLen: ?, Unknown device
* JLink Info: #3 Id: 0x1BA541CF, IRLen: ?, Unknown device
* JLink Info: #4 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #5 Id: 0x06414041, IRLen: 05, STM32 Boundary Scan
* JLink Info: Active read protected STM32 device detected.
This could cause problems during flash download.
Note: Unsecuring will trigger a mass erase of the internal flash.
* JLink Info: Executing default behavior previously saved in the registry.
* JLink Info: Device will be unsecured now.
* JLink Info: TotalIRLen = 34, IRPrint = 0x00233B3A11
* JLink Info: JTAG chain detection found 6 devices:
* JLink Info: #0 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #1 Id: 0x16410041, IRLen: 05, STM32 Boundary Scan
* JLink Info: #2 Id: 0x1E9041CF, IRLen: ?, Unknown device
* JLink Info: #3 Id: 0x1BA541CF, IRLen: ?, Unknown device
* JLink Info: #4 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #5 Id: 0x06414041, IRLen: 05, STM32 Boundary Scan
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x14770011)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 001BB000 SCS
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 001BB002 DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB003 FPB
* JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 001BB001 ITM
* JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 001BB923 TPIU-Lite
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
* JLink Info: Reset: S_RESET_ST never gets cleared. CPU seems to be kept in reset forever.
* JLink Info: Reset: Using fallback: Reset pin.
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via reset pin
* JLink Info: Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
* JLink Info: Reset: Reconnecting and manually halting CPU.
* JLink Info: AP map detection skipped. Manually configured AP map found.
* JLink Info: AP[0]: AHB-AP (IDR: Not set)
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M3 r1p1, Little endian.
**JLink Warning: CPU could not be halted
* JLink Info: Reset: Core did not halt after reset, trying to disable WDT.
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via reset pin
* JLink Info: Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
* JLink Info: Reset: Reconnecting and manually halting CPU.
* JLink Info: AP map detection skipped. Manually configured AP map found.
* JLink Info: AP[0]: AHB-AP (IDR: Not set)
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M3 r1p1, Little endian.
**JLink Warning: CPU could not be halted
Target info:
------------
Device: STM32F103VE
VTarget = 3.349V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 1000 kHz
Erase Done.
Programming Failed!
Error: Flash Download failed - "Cortex-M3"
But actually it didn`t erase flash. Algorithm inside still working properly.
A few more information about JTAG chain - yes, i have pull-ups and pull-downs connected. This device previously worked fine with ULINK2. Yes, RESET pin is connected to RESET chain of the device.
Do you have any advice for me? Could it be connected with "JLink Warning: CPU could not be halted"?
Best regards,
Vsevolod
I have a device with long JTAG chain (one STM32f103, then two different PLD`s, then other STM32F103).
I need to program a last one STM32. I used a ULINK2 for this and are trying to move forward to J-Link (Base version).
You can have a look at the chain in attachments.
I`m trying to program the controller with KEIL mVision 5.24 + J-Link HW 10.10 and dll 6.30b.
mVision prints Build Output like this:
------------
DLL: V6.30b, compiled Feb 2 2018 18:36:54
Firmware: J-Link V10 compiled Feb 2 2018 18:12:40
Hardware: V10.10
S/N : 50110147
Feature(s) : GDB
* JLink Info: TotalIRLen = 34, IRPrint = 0x00233B3A11
* JLink Info: JTAG chain detection found 6 devices:
* JLink Info: #0 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #1 Id: 0x16410041, IRLen: 05, STM32 Boundary Scan
* JLink Info: #2 Id: 0x1E9041CF, IRLen: ?, Unknown device
* JLink Info: #3 Id: 0x1BA541CF, IRLen: ?, Unknown device
* JLink Info: #4 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #5 Id: 0x06414041, IRLen: 05, STM32 Boundary Scan
* JLink Info: Active read protected STM32 device detected.
This could cause problems during flash download.
Note: Unsecuring will trigger a mass erase of the internal flash.
* JLink Info: Executing default behavior previously saved in the registry.
* JLink Info: Device will be unsecured now.
* JLink Info: TotalIRLen = 34, IRPrint = 0x00233B3A11
* JLink Info: JTAG chain detection found 6 devices:
* JLink Info: #0 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #1 Id: 0x16410041, IRLen: 05, STM32 Boundary Scan
* JLink Info: #2 Id: 0x1E9041CF, IRLen: ?, Unknown device
* JLink Info: #3 Id: 0x1BA541CF, IRLen: ?, Unknown device
* JLink Info: #4 Id: 0x3BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #5 Id: 0x06414041, IRLen: 05, STM32 Boundary Scan
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x14770011)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 001BB000 SCS
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 001BB002 DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB003 FPB
* JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 001BB001 ITM
* JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 001BB923 TPIU-Lite
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
* JLink Info: Reset: S_RESET_ST never gets cleared. CPU seems to be kept in reset forever.
* JLink Info: Reset: Using fallback: Reset pin.
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via reset pin
* JLink Info: Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
* JLink Info: Reset: Reconnecting and manually halting CPU.
* JLink Info: AP map detection skipped. Manually configured AP map found.
* JLink Info: AP[0]: AHB-AP (IDR: Not set)
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M3 r1p1, Little endian.
**JLink Warning: CPU could not be halted
* JLink Info: Reset: Core did not halt after reset, trying to disable WDT.
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via reset pin
* JLink Info: Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
* JLink Info: Reset: Reconnecting and manually halting CPU.
* JLink Info: AP map detection skipped. Manually configured AP map found.
* JLink Info: AP[0]: AHB-AP (IDR: Not set)
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M3 r1p1, Little endian.
**JLink Warning: CPU could not be halted
Target info:
------------
Device: STM32F103VE
VTarget = 3.349V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 1000 kHz
Erase Done.
Programming Failed!
Error: Flash Download failed - "Cortex-M3"
But actually it didn`t erase flash. Algorithm inside still working properly.
A few more information about JTAG chain - yes, i have pull-ups and pull-downs connected. This device previously worked fine with ULINK2. Yes, RESET pin is connected to RESET chain of the device.
Do you have any advice for me? Could it be connected with "JLink Warning: CPU could not be halted"?
Best regards,
Vsevolod