The debugging tag has no wiki summary.
5
votes
3answers
4 views
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 ...
1
vote
2answers
50 views
Debugger Atmega1280
I have an Atmel board, precisely an Atmega1280. I uploaded my code on the board and I want debug it to take a look at the stack memory.
I just have the mini usb cable for the communication.
I read ...
3
votes
0answers
86 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 ...
0
votes
1answer
49 views
SignalTap II: OR trigger conditions, instead of AND
I'm using the Altera SignalTap II that comes with Quartus II. As far as I understand, each pin can be assigned a trigger condition. It seems that acquisition only stops when all the trigger conditions ...
2
votes
2answers
273 views
JTAG vs SWD debugging
Skimming through this article I'm just 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 ...
7
votes
3answers
149 views
How do I find energy leaks?
I'm in a process of writing software for eZ 430 Chronos watch using TinyOS. I want it to be as low-power as it is possible.
Unfortunately, my measurements show power consumption of about 350uA @3.3V ...
0
votes
2answers
132 views
Why would plugging in a logic probe change values in a digital circuit?
I teach a digital logic course, in which the students used TTL chips and LEDs on digital trainers (including the Global Specialties PB-503C). With one student's PB-503C, the values on the lights ...
1
vote
3answers
236 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 ...
0
votes
1answer
116 views
Debugging a PIC16 with MPLAB X
I am having problems with the MPLAB X debugger (although the release build works fine). It behaves very weirdly with my PIC16LF1937-based PICKIT3. Specifically:
It gets caught in random infinite ...
3
votes
3answers
576 views
PIC12F1822 program counter jumping around during debug and release programming
I am having the most awful trouble getting things up and running with my PIC12F1822.
I'm using MPLAB 8.86, an ICD3 and have the chip, in a DIP package set up in a breadboard on my desk. As far as I ...
3
votes
1answer
741 views
Op-Amp based schmitt trigger working in simulation but not in reality
I'm trying to build a simple schmitt-trigger to convert an audio input signal to an approximate square wave of the same frequency. The output of that will then be fed to a microcontroller to detect ...
2
votes
1answer
3k views
How to debug C code of a PIC16F84A in Proteus ISIS VSM?
I have just downloaded the Proteus ISIS Circuit Simulator and I've noticed that in their samples, they have PIC projects based on C and they could step through the C code in the debuger.
Here is a ...
3
votes
1answer
393 views
ENC28J60 not getting link
I use the ENC28J60 MAC+PHY ethernet controller (datasheet) in a fairly standard setup as shown in the schematics below.
I can talk to the ENC via SPI, but I cannot get a link-up when I plug in an ...
3
votes
6answers
4k views
How to debug the arduino sketch?
I started coding for arduino very recently. And these bugs in the code are killing me. As there is no hardware debugger in the arduino, serial.print() is my only resort. Please tell me the ...
2
votes
1answer
834 views
Since Arduino 1.0 string to upper case conversion does not work
I try to run this example code on my Arduino, but since Arduino IDE version 1.0 it doesn't work no more. The example is mainly copied and stripped down from this example.
...
0
votes
2answers
691 views
How to fire RCREG for PIC16F73
I am a fresher to Mplab. I wanted to know how to fire RCREG. I have tried many internet searches and still not successful. Please help me out with this. I just wanted to input, let's say "A" into ...
3
votes
1answer
176 views
Best way to diagnose embedded computer in field problems?
I'll soon be deploying a new embedded system. I have a separate serial port that can connect to a diagnostic program. I also have two LEDs, one I flash to indicate the OS is running, the other that ...
17
votes
8answers
822 views
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 ...
2
votes
1answer
73 views
How to Debug in APM
I am using Arm Project Manager (APM) for writing the firmware in my ARM board. My question is: What are the live debugging features available in APM? Let's say I need to inspect the value at some pin ...
1
vote
1answer
309 views
How should I debug my mbed project?
I'm using an external power source to power an MBED module. I have the UART transfer and receive ports connected to a MAX232 level switcher in order to make the signals compatible with RS232. From ...
3
votes
4answers
756 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 ...
6
votes
2answers
486 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 ...
7
votes
3answers
407 views
(Updated) Strange reset behavior with ARM9 processor
I'm working on debugging a boot problem with an Atmel AT91SAM9G20 board. Everything goes great for the first 700 ms or so. It seems that about 700 ms after reset, the processor freezes. What's curious ...