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
0
votes
1 answer

How to include source code for IAR builtin libraries(c runtime etc) while jtag debugging

I'm new to IAR EWARM 8.2.22. I've got a STM32MF4 disco board. I want to single step through the initialization code. But it takes me to the code provided by IAR builtin library(c runtime setup). Is it possible to include the sources for this code…
ritu
  • 26
  • 4
0
votes
1 answer

Why am I getting "debug domain is off" error message when using Xtensa Tensilica OCD?

I'm trying to start Tensilica's Xtensa OCD Daemon by typing xt-ocd.exe in the appropriate directory but I keep getting a warning stating that "Debug domain is OFF (PWRSTAT:0x0)!" followed by an error message saying "Cannot set JTAG Usable bit while…
Arash Fotouhi
  • 1,933
  • 2
  • 22
  • 43
0
votes
1 answer

batch redirect stdin and stdout using start command

I tried to start a exe (jtag console) from a batch file and feed the data from a file to it. This worked well with: nios2-terminal.exe < test.txt But there are null chars (0x00) in this file. The chars after the null chars are not passed to the…
blubbrezn
  • 11
  • 3
0
votes
0 answers

U-Boot uncontrollable debug stepping

I've been having some issues debugging U-Boot. I believe it is due to a RAM configuration error, but I would like to get some clarity on it. My methodology for testing is below, and is based on these instructions for the BeagleBone Black Load…
T. Wallis
  • 189
  • 3
  • 14
0
votes
2 answers

Writing in STM32L4x1 flash memory in C

I am trying to write in STM32L476's flash memory using a JTAG ST-Link/V2 on Windows 7. No software has to be uploaded, I only need to write data in a non-volatile place where it can be read and deleted. As a newbie regarding hardware and being…
Badda
  • 1,329
  • 2
  • 15
  • 40
0
votes
1 answer

Disable ARM M0+ debug port after loading firmware

I am working on ARM Cortex-M0+. I need put CPU to a deep sleep mode to measure its standby power consumption. I use Keil uLink debugger to load the firmware. However debugger stops CPU to sleep when connecting. Is it possible to disable debugger…
yelInv
  • 23
  • 6
0
votes
1 answer

SWD programming adapter

Are ARM-JTAG-20-10 and J-LINK 9-PIN CORTEX-M ADAPTER pin compatible? Why such a big price difference?
tosa
  • 411
  • 1
  • 3
  • 23
0
votes
0 answers

Trying to flash a K64F, CPU Could Not Be Halted

I am trying to program a Cortex M4 that was placed on a custom board. The processor is the MK64FN1M0VLL12. I wrote the code using the FRDM-K64F dev board, which uses OpenSDA to load the bin via USB. The code was written in mbed, which as far as I…
realityinabox
  • 593
  • 1
  • 5
  • 14
0
votes
0 answers

Program external F5529 with Energia via LaunchPad

I have a LaunchPad (Rev 1.6 MSP-EXP430F5529LP) that I am using as a programmer for an external MSP430F5529 chip. The programming is done via Spy-By-Wire(see picture below for setup). The programming works fine via CCS, there are no issues coding or…
xsorifc28
  • 5,112
  • 6
  • 16
  • 24
0
votes
1 answer

Programming FPGA with AVR Programmer instead of USB Blaster

I bought a MAX 10 FPGA 10M08 Dev Board and is has a JTAG on it that says to program with a Altera USB Blaster. Being impatient and all can I use my AVR Programmer and connect, assuming target power is used like so? AVR => JTAG =========== SCK ->…
Bob R
  • 605
  • 1
  • 13
  • 25
0
votes
1 answer

JTAG debugging ARM, search for WFI alternative code

I'm trying to dynamically analyze the firmware of a NXP LPC1752 (Cortex-M3) based USB device. This firmware contains a WFI instruction which seems to interfere my attempts in that the device sometimes can't be accessed by the JTAG-probe anymore. The…
user2011659
  • 847
  • 1
  • 7
  • 15
0
votes
3 answers

AVR JTAGICE mkII

Original Atmel jtag programmer costs $300. http://www.atmel.com/dyn/products/tools_card_v2.asp?tool_id=3353 http://search.digikey.com/scripts/DkSearch/dksus.dll?site=us&lang=en&mpart=ATJTAGICE2 Which clone do you recommend me? Are they 100% clones?…
Meloun
  • 13,601
  • 17
  • 64
  • 93
0
votes
1 answer

How would I use JTag to diagnose an ATSAM3x8E processor?

I have never used jtag before, and am still learning about machine language. I have a 3D printer using a an arm cortex m3 based processor. After sitting for a while it nolonger will even register on my computer via usb ports. I erased the memory…
Nathan Darker
  • 141
  • 1
  • 9
0
votes
3 answers

Starter kit for bare-metal programming for Beaglebone

i plan to try some bare-metal TCP/IP stuff on a beaglebone. There is TI StarterWare containing the TCP/IP stack which is good. However, to flash my program to BB, I need some JTAG adaptor and software. Which one should I buy/use there so many…
Stasik
  • 2,568
  • 1
  • 25
  • 44
0
votes
1 answer

Kernel panics after hitting a breakpoint during jtag debugging using gdb

I am trying to debug linux kernel running on sabre lite board using jtag and gdb on my host machine. During debugging I insert a break point at "do_fork()" and allow the kernel to continue its execution. As soon as I enter "ls" command on my sabre…
sbunny
  • 433
  • 6
  • 25