cancel
Showing results for 
Search instead for 
Did you mean: 

IAR JTAG/JTRACE STM32F103XE Error TDO is ocstant High

valeriogiampa
Associate II
Posted on June 10, 2011 at 12:04

I have developed an interface for IAR jtag/jtrace to an SBPT2500C2.AT board with integrated STM32F103XE Microcontroller.

The schematic interface from Jtag to SBPT Board is based on the interface schematic of the IAR STM32-SK board (pull-up resistor for TRST, TDI, TMS, TCK, TDO - Series Resistor and free line for other pin).

The connections of the jtag with SBPT module across the interface circuit are correct.

In the active project of IAR EWARM, I have selected the debugger driver option to Jlink/Jtrace; The Jtag/Jlink options are selected by defoult to JTAG, Auto Speed, Normal Reset).

When I start the Download and Debug process, I see this session log:

====

Fri Jun 10 11:51:51 2011: JLINK command: ProjectFile = C:\Firmware\app_BT22r4.jlink, return = 0

Fri Jun 10 11:51:51 2011: JLINK command: device = STM32F10xxE, return = 0

Fri Jun 10 11:51:51 2011: DLL version: V4.20m, compiled Oct 28 2010 09:07:34

Fri Jun 10 11:51:51 2011: Firmware: J-Trace ARM Rev.1 compiled Sep  5 2007 06:57:41

Fri Jun 10 11:51:51 2011: JTAG speed is initially set to: 32 kHz

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:51 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:52 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:53 2011: Could not measure total IR len. TDO is constant high.

Fri Jun 10 11:51:57 2011: Fatal error: Failed to read CPUID for Cortex device   Session aborted!

Fri Jun 10 11:51:57 2011: Failed to load debugee: C:\Firmware\Exe\app.out

====

The Power Supply applied at the circuit is finded from Jlink interface (value about 3.55v).

What Can I do?

Keep in touch

#iar-jtag-jtrace-stm32f103xe-tdo-high-debug-circuit
3 REPLIES 3
Posted on June 10, 2011 at 14:59

The connections of the jtag with SBPT module across the interface circuit are correct.

I think we can assume the connections or the power are actually wrong. The software is failing because the hardware is wrong.

What board is this, a quick search turned up nothing? If you want people to diagnose these kinds of problems, you'll need to provide documentation, schematics, wiring, etc with specific details.

You should double check the signals, powers, grounds being used. Check the continuity of the the wiring.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
valeriogiampa
Associate II
Posted on August 02, 2011 at 00:09

The module SBPT is produced from ST Microelectronics, the interface from SBPT module and Jtag connector is based on a schematic board adapter with connection corrected and based on an electrical schematic of the IAR STM32-SK evaluation Board.

I have tested the correct conenction and the continuity of the single connection.

I have acquired the signal with an oscilloscope and I can see the TDO Line costant high and JNTRS constant high. in the other line of the JTAG interface I can read the correct sequence described in the documentation of the IAR jlink/jtrace device.

The SBPT Module is based on the ST Microelectronics SPBT evaluation board (http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00269369.pdf - page 9) that I have attacced on a board that contain the header connector for jtag interface, the header connector for PDIP connection of the SBPT evaluation module and the resistor for the different line based on schematic of IAR STM32-sk (http://www.iar.com/website1/50.0.1.0/225/IAR-STM32-SK-REV-C.pdf - G1 Section of the schematic).

Can you propose other test or solution at the problems?

 

raptorhal2
Lead
Posted on August 02, 2011 at 03:54

The IAR kickstart kit diagram shows 10K pulldowns to ground for JTAG pins 11, 17 and 19. Did you omit these ?

Cheers, Hal