Questions tagged [debugging]

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

Filter by
Sorted by
Tagged with
14
votes
1answer
10k views

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 ...
26
votes
5answers
33k views

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 ...
8
votes
2answers
3k views

AVR debugwire in Linux

So, I have hooked up a ATtiny88, and am programming it with the Dragon AVR using ISP. I have also set up the build toolchain, using avrdude, and the gnu avr tools. Everything is working great. Now I ...
23
votes
3answers
10k views

Jtag debugging AVR

Can anyone advise what hardware and software is required for debugging AVR in circuit.
0
votes
1answer
1k views

In Circuit Emulation vs On Chip Debugging?

I am using code warrior to debug my code which is dumped on to the NXP Board. By definition would code warrior belong to the In circuit emulator or the On Chip Debugger. I am not clear about the ...
28
votes
3answers
2k views

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 ...
9
votes
2answers
2k views

Good tools or methods for understanding structure of bootloader?

I recently figured out the cause of a nasty bug I've been working on with an Atmel AT91SAM9G20 SBC running U-boot, an open source bootloader. The core of the problem was that U-boot expected the ...
11
votes
3answers
14k views

How do I debug a Arduino Uno with gdb on a Linux pc?

How do I debug (source code single step) a Arduino Uno with gdb on a Linux pc? Please note that I do not like to use AVR Studio in wine or VirtualBox. Question 1: Physical connection How and what do ...
17
votes
2answers
647 views

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. ...
5
votes
1answer
2k views

STM32F3 Discovery + GNU ARM plugin + OpenOCD - cannot load the binary onto the board

I'm using the GNU ARM plugin for Eclipse with Open OCD as a debugger. This is on Windows 10 x64. The problem I'm facing is the following error when trying to debug or run the sample program: Error ...
25
votes
2answers
5k views

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? ...
6
votes
2answers
4k views

Diagnosing SD card failures

I have an embedded device using an SD card. Occasionally I see SD cards fail, and I need to understand the failure mode. Are there tools, perhaps for specific manufacturers, that help me understand ...
1
vote
1answer
3k views

avrdude and atmega48pa

Can i programm the atmega48pa with avrdude? I have problems with the signature ... ...
4
votes
2answers
2k views

How is debugging build implemented in VHDL?

I come from C background and am being introduced to VHDL. I read about the syntax and the concurrency/consecutiveness of actions. Now I am getting to wonder how are development-only features ...
2
votes
3answers
2k views

Power cycle error when trying to program/debug HCS08 MCU

I'm trying to program a Freescale MC12311 transceiver IC which has a 9S08QE32 MCU embedded in it: MC12311: Sub-1 GHz RF and 8-bit HCS08 MCU with 32KB Flash, 2KB RAM I'm using a Background Debug ...
0
votes
0answers
81 views

Accuracy issues with capacitive touch screen [duplicate]

Previous question I asked here. Posting a new question because my previous approach included many incorrect assumptions. I'm working on a product with a motor, a fan, and a LCD with capacitive ...
6
votes
2answers
2k views

MPU6050 accel/gyro noise that behaves strangely - what might be doing this?

I'm experimenting with an MPU6050 six-axis accelerometer/gyro reading data with a Raspberry Pi via I2C. The six-axis response makes sense in general as I rotate it by hand, rotating moves the gravity ...
4
votes
1answer
2k views

MicroSD Card Slot SPI Signals

I am having trouble communicating with an microSD card with an AVR on a board I'm working on. I used an oscilloscope to have a look at the signals coming out of the microSD socket on my board. I saw ...
4
votes
1answer
5k views

How to daisy chain SWD Debug port

I have multiple mcu's that are configured to communicate with bus topology. I have 10 pins (4 of them is occupied by now) I need to debug (update firmware online, etc) all of these mcu's. I read this ...
4
votes
1answer
5k views

Error when using debugging under Atollic TrueStudio / STM32

I'm using STM32F103C8T6 Atollic TrueStudio STLink2.1 Error I get when debugging: Debug configuration set in TrueStudio: What worked before was in SW4STM32/Eclipse, with the following settings. I ...
3
votes
4answers
3k views

Need help debugging my project: Fuses popping like crazy, but I can't find the reason why

I recently made a voltage and current controlled supply from a kit I found. It worked for about 15 minutes and then fuses started popping. Unfortunately, I have no idea why, because power supply ...
2
votes
1answer
792 views

Troubleshooting ready board with LM339 IC?

I thought, I will not bother any more with this project of mine, but I really run out of ideas trying to get it to work. When using breadboard, the design works as expected (did it couple of times ...
2
votes
2answers
217 views

Reporting crashes/resets in Embedded Systems(8 bit)

I'm using PIC controllers, and I have used watch dog timers to trigger a reset in case of the s/w gets stuck somewhere, and also to support in case of severe hardware crashes. I think that resetting ...
1
vote
3answers
3k views

Debugging I2C bus using an oscilloscope

Is it possible to debug an I2C bus effectivaly with a two channel (plus an external trigger) oscilloscope? I've been trying to do it, to catch a single transaction starting from the start until the ...
1
vote
1answer
2k views

Need Help In Creating and Debugging a 8Mhz CLK Circuit

I want to create a CLK generator circuit that will work at 8Mhz. I'm following this design (from http://www.electronics-tutorials.ws/oscillator/crystal.html): My crystal is 8Mhz HC49/US, with 20pF ...
1
vote
2answers
846 views

DAPLink firmware doesn't operate with OpenOCD

  Why this is not a duplicate Some people seem to think this question is a duplicate, but there is an important difference: The How to update the SWDAP firmware? question is all about how to ...
1
vote
1answer
428 views

How to update the SWDAP firmware?

1. About the SWDAP probe I bought an SWDAP probe some time ago from L-Tek (see https://www.l-tek.com/web-shop/l-tek-swdap-interface/). It took me some time to figure out the terminology, but I ...
0
votes
1answer
185 views

Debugging an old Thermostat: What component is this? (3 pins SMD IC)

My Thermostat stopped working a couple of days ago and I tried to debug it. The first thing I check is if there is any component that gives a strange result with the multimeter and I found these ...
0
votes
1answer
2k views

avr-gdb doesn't stop at breakpoint

I'm trying to debug code on an 8 bit AVR microcontroller (Atmega328P) via debugWIRE using AVaRICE, avr-gdb and the JTAGICEmkII debugger. I'm doing the following steps: Compile the code with ...
0
votes
2answers
1k views

Incorrect Output From 7805

I am powering a few op-amps from a split supply made from a 7805 and 7905. Before connecting the amps, I measured the outputs from both regulators and got 5V and -5V, respectively. However, after I ...
0
votes
0answers
67 views

Can I debug this simple circuit without VNA and proper RF equipment?

I am debugging a very simple circuit (existing PCB, not designed by me) that downconverts an AM modulated signal at 900 MHz: The problem: What I measure at "Vo" does not match my LTspice ...
0
votes
1answer
879 views

Have I damaged this DC-DC converter? [closed]

I bought this DC-DC Adjustable Power Converter Module, to convert 12V DC to 5V DC. Initially it was working fine, but I connected IN- and OUT- pins to the each other and used it as a common ground ...
0
votes
2answers
2k views

Quartus, Modelsim, VHDL - Viewing Internal Signals

This question is rather specific which makes it rather hard to answer. I'm using Quartus Prime software from Altera to do an FPGA design in VHDL. Quartus exports to Modelsim for the simulation. I'm ...
0
votes
2answers
296 views

Debugging a battery charger circuit

I have built a circuit of a battery charger here. Here is the circuit in the original project: However, it doesn't seem to work. The output I measure at the battery charging clips is only 1.2 V or so ...
0
votes
1answer
114 views

Understanding low current measurement

I'm trying to understand a current measurement of a hobby project. This project consists of several ICs and is battery operated. At a certain mode (deep sleep) it should consume a very low current, ...
0
votes
2answers
1k views

Overvoltage failure modes/PCB repair

I have a PCB that has >10 ICs intended to be powered by a 3.3V supply. Unfortunately, 12V was applied to the circuit and the board now exhibits a short circuit. The offending power supply is current ...
-1
votes
1answer
104 views

Help me debug these VHDL errors please

There are just 6 errors now Can't trace errors in this VHDL ...