Questions tagged [debugging]

The process of identifying, quantifying, and correcting errors in the operation of a system

Debugging is a process of finding and correcting errors that occur in a system. This tag should be used for any questions asked about debugging a circuit / roadblocks encountered while debugging a circuit.

451 questions
63
votes
4 answers

JTAG vs SWD debugging

After skimming through this article, I am wondering what are the benefits of SWD debugging over JTAG debugging? I understand SWD uses less wires/pins, takes up less space etc. But how does it play out in terms of performance, features and cost of…
josef.van.niekerk
  • 3,600
  • 7
  • 44
  • 63
33
votes
6 answers

How did smacking electron tube TVs help?

In old movies (or new movies playing in these times), I often see people smacking the top of electron tube TVs or screens. Somehow it seems to help to stabilize/sharpen the picture. But why? Are there any reasons an electronic circuit could go from…
OddDev
  • 589
  • 5
  • 11
28
votes
3 answers

The mysterious case of the random leakage current

Disclaimer: I already know the solution of this circuit debugging conundrum (and it is not trivial), and I'll post it after some time, so that other people could give their contribution to this mystery story! I think it may have some educational…
26
votes
5 answers

What could cause a microcontroller to unexpectedly reset?

One particularly irritating variety of bug in a microprocessor-controlled system is for the microprocessor to unexpectedly reset. An important tool for debugging this kind of problem is a list of possible causes. What could cause a microcontroller…
Stephen Collings
  • 17,373
  • 17
  • 92
  • 180
26
votes
1 answer

Laptop motherboard not working, quiet clicking noise

Intro how it happened: I had cleaned my laptop from dust and reapplied the thermal paste. After this i have reassembled the device than it did not turned on. Then i took it apart connected the fan and it worked even POWER led was lit. Skipping the…
iconradez
  • 445
  • 3
  • 11
26
votes
2 answers

Anti-static bags - safe to support powered circuit boards?

Is it generally safe to rest a low voltage powered up circuit board on an anti-static bag when debugging? A simple meter reading suggests it is a good insulator, but it must conduct to some extent? Ditto on anti-static mat on the workbench
Dirk Bruere
  • 13,425
  • 9
  • 53
  • 111
25
votes
8 answers

How do you attack a new board?

You get your PCB back from the manufacturer. It is a new design, you have of course bread-boarded all the major parts, but you know there are going to be problems. There are just too many things that can cause problems, e.g.: Errors in the…
morten
  • 4,613
  • 4
  • 27
  • 26
23
votes
3 answers

JTAG debugging AVR

Can anyone advise what hardware and software is required for debugging AVR in circuits?
JohnC
  • 4,779
  • 3
  • 25
  • 20
19
votes
1 answer

How do I print debug messages to gdb console with STM32 discovery board using GDB, OpenOCD and arm-none-eabi-gcc?

I'm programming an STM32 Cortex M0 discovery board (32F0308DISCOVERY) using OpenOCD, arm-none-eabi-gcc, and gdb. I was wondering if there is any straightforward way to log debug messages over SWD. I've read about the semihosting option, but this…
foldl
  • 591
  • 1
  • 5
  • 14
18
votes
8 answers

Why is printf() bad for debugging embedded systems?

I guess it's a bad thing to try to debug a microcontroller-based project using printf(). I can understand that you have no predefined place to output to, and that it could consume valuable pins. At the same time I've seen people consume a UART TX…
tarabyte
  • 3,112
  • 10
  • 43
  • 67
17
votes
2 answers

How to find the problem of this old Marantz amplifier?

After a first question referring to resistor symbols, I'm back with this old Marantz PM-68 class AB amplifier and I will refer to components using their ID that can be found in the service manual. When a friend gave me this amp, it was partially…
MFlop
  • 465
  • 3
  • 13
15
votes
1 answer

What is the functional difference between an in-circuit-debugger and an in-circuit emulator?

In-circuit emulators (abbreviated ICE) boast about their awesome debugging features, and also boast high price tags. In-circuit debuggers (abbreviated ICD) can do most of the stuff that an ICE can do, but often cost much less. I know that way back…
Kevin Vermeer
  • 19,989
  • 8
  • 57
  • 102
13
votes
2 answers

My PCB works only when I spray isopropyl alcohol on it. Why is that?

I'm observing a strange behaviour in some of my PCBs: they start working only when I spray isopropyl alcohol on them (or, to be more specific, the boost converter starts doing his job only after I spray it with alcohol, while connected to a power…
sgrc31
  • 133
  • 8
13
votes
7 answers

Debugging a multilayer PCB?

This is not about debugging the actual hardware/software on the board... I had my first 6-layer PCB made recently, it's a 50mmx50mm board with the following stackup: Signal Ground Signal Signal Power Signal The actual signal types are irrelevant…
Ron Beyer
  • 2,568
  • 1
  • 8
  • 22
11
votes
3 answers

How to discover memory overflow errors in the Arduino C code?

Several times I had some suspicious outputs on the Serial Monitor after uploading code to the Arduino: like eternal output of whitespaces or suddenly cut of strings or scrambled strings. Because there was no compile error or warning in the Arduino…
powtac
  • 1,022
  • 2
  • 16
  • 27
1
2 3
30 31