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
2
votes
2 answers

A JTAG emulator for use with a Hawkboard and OpenOCD?

I'd like to try bare metal ARM programming with the Hawkboard, but the deployment process looks awful. I'm totally new to this, so I could be misunderstanding the instructions, but it appears that I have to use a program called AISgen to convert the…
David Brown
  • 35,411
  • 11
  • 83
  • 132
2
votes
2 answers

Investigating Jtag on the Raspberry Pi using OpenOCD (and Bus Pirate)

I bought a Bus Pirate as a cheap way to begin investigating Jtag on a couple chips. I thought the raspberry pi would make for a good test case as it is well documented and has a large support community. I have learned after reading through several…
eh_whatever
  • 193
  • 1
  • 3
  • 13
2
votes
1 answer

How do I read the status register of a Virtex 5 in a JTAG chain?

I'm working on an XUPV5-LX110T and I'm trying to read the status register over JTAG. I'm getting incorrect data, but I can't see why. I seem to be getting all zeros. I suspect it has to do with the order of the JTAG chain, but I'm not sure how I…
TravisChambers
  • 526
  • 4
  • 12
2
votes
3 answers

Breakpoints not being hit in remote linux kernel debugging using gdb

I am trying to remotely debug a linux kernel running on an arm cortex-a9 target using jtag probe and gdb. I can connect to the kernel and halt it with gdb. I am able to set breakpoints in the kernel code and gdb confirms there placement as well but…
sbunny
  • 433
  • 6
  • 25
2
votes
0 answers

Is there a GDB backend for ARM Debug Architecture?

ARMv7-A&R architecture manual (DDI0-406B) section C1 defines a debug interface through a series of memory mapped (or CP14 mapped) registers. Features include hardware breakpoints, hardware watchpoints, vector catch, and execution of ARM instructions…
Yifan
  • 4,867
  • 5
  • 25
  • 24
2
votes
1 answer

Using Trace32 with Qualcomm FFA

Does anyone knows of any resources regarding the debugging of BREW and/or BMP applications on Qualcomm FFA using Lauterbach JTAG/Trace32 (e.g. .cmm scripts, instructions etc.)? Thanks.
Ofir
  • 8,194
  • 2
  • 29
  • 44
2
votes
1 answer

openocd on windows invalid command "jtag" with phytec lpc3250 target using an olimex arm-usb-ocd-h jtag dongle

Can someone help me understand an "invalid command name" error with openocd? Some details: openocd 0.7.0 windows binary olimex arm-usb-ocd-h dongle lpc3250 phytec based board Steps I've done: Downloaded file "openocd-0.7.0.7z" from…
minghua
  • 5,981
  • 6
  • 45
  • 71
2
votes
1 answer

How do i erase everything but EEPROM with avrdude?

I have 2 main files. One writes to EEPROM, other reads from EEPROM. I want to do the following: Flash main.hex (the one which writes onto EEPROM) Erase everything but the contents of EEPROM Flash main.hex (the one which reads from EEPROM) I am…
ctrl-shift-esc
  • 876
  • 1
  • 9
  • 19
2
votes
1 answer

Debugging embedded system with Eclipse - HOW TO PRINT TO A LOGGING FILE?

I'm currently working on a project on STM32F4 and I'm using Eclipse. I've got some problems with the program - it seems to have a random behavior - sometimes it works fine, other times it has some errors. Sometimes when I try do debug with…
Bogdan Alexandru
  • 5,394
  • 6
  • 34
  • 54
2
votes
2 answers

Linux can not detect Altera FPGA

Well, i have an Altera FPGA and USB blaster. I downloaded quartus, but it doesn't detect FPGA, i tried with urjtag and it works fine. I tried running it with sudo, but again the same. Help please
BKovac
  • 455
  • 1
  • 4
  • 16
1
vote
1 answer

What is the serial number?

I am trying to connect a JTAG ICE Mk II Emulator from ATMEL to my USB drive. and do some development on a 32 bit ATMEL STK 1000 board. I am using AVR32 Studio and I can't seem to get it fully configured. While the JTAG is recognised by Windows, I…
Eugen
  • 1,537
  • 7
  • 29
  • 57
1
vote
2 answers

Simple lightbox feedback form? Included screenshot

There are so many lightboxes to choose from, I'm looking for a very lightweight one to use in an embedded javascript widget that would be a single domain name. I saw the perfect one on chainreactioncycles.com, it popped up out of nowhere so I took a…
Tiago
  • 1,984
  • 1
  • 21
  • 43
1
vote
1 answer

cmake run in docker container is messing up the paths in my `elf` file

tl;dr - cmake is building my .elf file with the fake paths that my files lived at when they were mapped into docker. The files don't live at those paths on my actual machine. This is breaking GDB. Detailed version - I'm building my ESP-IDF project…
chrispitzer
  • 991
  • 1
  • 8
  • 26
1
vote
0 answers

Can a JTAG debugger access CORTEXM4 processor registers like DHCSR to enable Reset Vector Catch while the processor is in reset state.?

I wanted to know if a JTAG debugger can access debug enabling registers of CORTEXM4 like DHCSR while the Power on reset and System reset has been asserted. Or do we deassert only the Power On Reset and access the registers with System Reset…
cher
  • 11
  • 1
1
vote
0 answers

Debugging for esp8266 through jtag?

I am working on esp8266 - NodeMcu. According to the docs from EspressIf, I couldn't find any documentation about Jtag port in Esp8266, so I think Jtag port is not supported in this chip. However, we can debug esp8266 with Openocd via Jtag port. Here…