Questions tagged [jtag]

JTAG is a common interface used for programming and debugging microprocessors and other types of embedded devices.

Joint Test Action Group (JTAG) is the common name for what was later standardized as the IEEE 1149.1 Standard Test Access Port and Boundary-Scan Architecture.

It was initially devised for testing printed circuit boards using boundary scan and is still widely used for this application. Today JTAG is also widely used for microprocessor debug ports.

With appropriate development tools and software, a developer can use JTAG to perform debugging operations like single-stepping, setting breakpoints, etc.

200 questions
1
vote
2 answers

What's inside a debugger box and how does it work exactly

I'm working with an iSystem debugger box used for debugging automotive embedded systems. I can't help but wonder what is inside such boxes and how they work exactly. I understand only that there is a USB interface on one end and a JTAG interface on…
Engineer999
  • 3,683
  • 6
  • 33
  • 71
1
vote
1 answer

How unplugging a JTAG can (not restart but) unfreeze a device previously frozen before the JTAG plugging?

We programmed a STM32L072, using, for the lower layers, the HAL lib generated from cubeMX. Note that the "programming style" in my enterprise does not involve to include a watchdog in their embedded devices. No comment. During one particular field…
Guillaume D
  • 2,202
  • 2
  • 10
  • 37
1
vote
1 answer

MicroBlaze: how to see application messages through JTAG link after application burn

I use Xilinx Software Development Kit (SDK) 14.7, based on Eclipse to create, run and debug application for MicroBlaze microprocessor. When I load my application (SDK/Run) I see application's printf messages on SDK Console through JTAG-UART USB…
Yakov
  • 187
  • 1
  • 11
1
vote
0 answers

How to extend OpenOCD to support a not supported Targe?

I like to extend the OpenOCD software to support a target microcontroller (Target Layer) that is not yet supported. How I have to start with? Is there someone had already similar experience? I have access to all microcontroller JTAG and OCDS details…
1
vote
2 answers

Not able to program STM32 MCU using JTAG interface

MCU : STM32L496 JFlash version: v6.32i We are facing the "Connection to target under reset failed" issue, when we try to program the board with STM32 MCU. We were programming the board before with no issues. This error started appearing suddenly…
HariP
  • 71
  • 6
1
vote
0 answers

Error OpenOCD debugging on ATSAMA5D36 Xplained board:

I'm trying to flash on ATSAMA5D36 Xplained board using OpenOCD. I builded and compiled application and want to debug using OpenOCD. When I am doing that I get the following error. Openocd verson: openocd-0.9.0.tar.gz …
1
vote
1 answer

SWD interface SAM device

im trying to design custom board for microcontroller im trying with SAM series (SAMD21G18) from microchip they recommended…
Hasan alattar
  • 347
  • 3
  • 19
1
vote
1 answer

OpenOCD read_bank command asks for more arguments

We are trying to read out portions of our STM32F0x microcontrollers with OpenOCD, which we also use to program them. However, the flash read_bank command doesn't work as documented. Whatever we input, the error is: flash read_bank 0 test.bin:…
Janos
  • 796
  • 1
  • 9
  • 26
1
vote
1 answer

JTAG instruction register length, IR_LEN

I need to specify user configuration settings for JTAGenum Jtag enumeration utility. In particular, in this part // Target specific, check your documentation or guess #define SCAN_LEN 1890 // used for IR enum. bigger the…
user4515590
1
vote
0 answers

porting emcraft stm-som uclinux on my board

I'm trying to run uclinux on my custom board which uses stm32f429. the configurations of this board looks like to stm-som board. So I downloaded the tree and installed u-boot on my board. Now I have a trouble with kernel. I ran make and the…
mehdi_sd
  • 49
  • 6
1
vote
3 answers

Read STM32L4 flash memory through JTAG in C

I am trying to read the MCU_ID (device electronic signature) from STM32L476 chip using a JTAG ST-Link/V2 on Windows 7. No code has to be uploaded inside the chip, the program shall just be launched on my cumputer and read this information from the…
Badda
  • 1,329
  • 2
  • 15
  • 40
1
vote
2 answers

Interact with a STM32 chip's memory in C

I would like to interact with a STM32 chip's memory, STM32L476, first to read and store its electronic signature (MCU_ID) and then to write data in its memory. I am using a STM32QFP64 socket linked to a JTAG ST-LINK. I am quite good in C but really…
Badda
  • 1,329
  • 2
  • 15
  • 40
1
vote
1 answer

JTAG Scripting: How can we structure like variable be used in JTAG scripting language

I am trying to access array of a structure like this (C equivalent) Struct register { int addr; int val; }reg[100]; for(i=0;i<100;i++) Print reg[i].addr How can this be achieved in Jtag scripting language?
Aditya
  • 11
  • 2
1
vote
1 answer

Calling a Jtag DLL method (scan_multiple) in Java

Having trouble calling a DLL method from Corelis Jtag USB-1149.1_1E from Java, even though I could call it from labview. In the Corelis user guide scan_multiple has five arguments. But data_in is a return value, and therefore, I don't think it…
sifangyou
  • 175
  • 1
  • 2
  • 6
1
vote
1 answer

Atmel-ICE programming atsam4sd32c

I am having problems with the programming of a custom pcb which is using the 32-bit atsam4sd32c ARM Cortex M4. I am unable to program the microcontroller trough the JTAG/SWD interface using the ATMEL-ICE debugger. However I am able to get the device…