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

learn more… | top users | synonyms (1)

-1
votes
1answer
38 views

Is there any online or free to download (for Windows 7) AVR simulators? [closed]

I'm currently using CodeVision AVR to write a code. Let's say I have a compiled HEX file and I'd like to try it running on a virtual processor (ATtiny861A). Google gives me some results but I'd ...
1
vote
0answers
45 views

Programmer fails to connect to the target MCU [duplicate]

I'm trying to program/debug/erase a Freescale MC12311 transceiver IC (which has an HCS08 MCU embedded in it) via the 6-pin BDM header, using a P&E USB Multilink Universal, and CodeWarrior 10.4 ...
1
vote
0answers
72 views

How to use the output of IAR Embedded Workbench compiler for proteus?

The CodeVision compiler and Bascom compiler generate one file with *.coff And *.obj format that we can Debug our program by these files in the proteus program. is there the same file in the IAR ...
8
votes
7answers
2k views

Why is printf() bad for debugging embedded systems?

I guess it's a noob 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. ...
0
votes
0answers
26 views

Xilinx SDK - MMU Section Translation Fault Issue

I am trying to run the base programming hello world for the TE0720 with Zynq xc7020. The link to the tutorial is here. After following all of the instructions and proceeding without any errors, I try ...
5
votes
5answers
687 views

Embedded Applications Software Testing Life Cycle

I have no JTAG and I can not afford it for my ARM Cortex M3 Chip. I'm wondering, how professionals debug their applications ? Do you flash your uC every time, frequently, then you run and test, ...
2
votes
1answer
216 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 ...
1
vote
1answer
68 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 ...
1
vote
1answer
46 views

JTAG/SWD Data Logging

I would like to automatically poll and log certain memory locations on the STM32 I'm working with through the j-link debugger I am using to debug the system. Is this possible through the JTAG or SWD ...
0
votes
1answer
136 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 ...
2
votes
2answers
98 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
1answer
42 views

JTAG Bus Length

Could anyone tell me if JTAG requires to have the same bus(wire) length for TDI, TDO, TMS, and TCK?
4
votes
2answers
228 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 ...
1
vote
0answers
55 views

Atmel Studio JTAG Debugger Behaviour

The qeustion: I would like to know what is different about the way JTAG treats the "step over" and "step into" commands. Background: I am trying to set a GPNVM bit on a SAM3N (ARM Cortex M3) chip ...
0
votes
0answers
120 views

ARM SWDIO only works when touching 3V and SWCLK with fingers

I made a new STM32F2 prototype board and SWDIO debugging only works when I connect the Vinputref and SWCLK with my fingers. It was working fine on previous boards: it's the same circuit but different ...
0
votes
1answer
43 views

AVR Dragon: Debug Frequency?

I think of buying an AVR Dragon or an AVR JTAG ICE MKIII. But before I do this, I need to know what side effects the reduced debug frequency has on an ATMEGA328P while debugging. I make heavy use of ...
2
votes
1answer
106 views

short to ground in custom Arduino shield only when connected - how do I find it?

I've built a custom Arduino shield using a PCB and surface mount components. The board has a short between power (5V) and ground (GND) when it is connected to an Arduino Due. When the shield is not ...
4
votes
2answers
318 views

Debugging my bipolar stepper motor design

I'm trying to connect a NEMA 17 Bipolar Stepper Motor to an Arduino Uno using an L298N Stepper Motor Controller Module and control its speed using a 10K potentiometer. I haven't found any examples ...
4
votes
1answer
193 views

What is the difference between JTAG and EJTAG?

I want to know what is the difference between JTAG and EJTAG? I know about JTAG as it's a hardware tool used to examine the memory and registers. Correct me if I'm wrong.
2
votes
1answer
143 views

Can't Program ATMEGA With ICSP

For a project I've been working on, I've re-designed a working PCB schematic so that it uses all SMD components and now features an ICSP header. The board is essentially an LED driver controlled by an ...
0
votes
0answers
81 views

Debug using avr-gdb from remote debug server in Proteus/ASIS

I am trying to debug an ATmega2560 using avr-gdb using an emulated application running in Proteus/ASIS. The idea is to emulate the JTAG from the microcontroller and create a target debug server from ...
2
votes
3answers
236 views

Remote-debugging stm32f4

I'm rather unexperienced on the field of microcontrollers, I come from a Java background so the question might seem a bit noob but I didn't find much information on this. So is it possible to debug ...
0
votes
2answers
140 views

Understanding this unknown transformer

This is my first time posting but I have gained a lot of knowledge from this community over the past few months. Here is the situation: I have an old Hobart OM-321 Tig welder which my tech has told ...
1
vote
1answer
146 views

ARM cortex M0 debugger

I plan to use http://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF51822 to develop some products. I plan to get a breakout board made but even if I do have it made I was curious as to ...
0
votes
0answers
28 views

Trigger button press via mspdebug

I am experimenting with a MSP430 (inside a eZ430 Chronos), and I’d like to debug my code while the device is attached to the USB debug board. It seems that the buttons do not work while the device in ...
4
votes
2answers
94 views

Debugging DDR bus issues

We have an SBC board, in the style of the Leopardboard or Beagleboard, that is misbehaving. It's based on the Leopardboard design (TI-DM368 CPU, DDR2 RAM, NAND Flash). Developing software on the ...
1
vote
0answers
122 views

Chipkit Uno32 Debug with mplabx

Hello guys I bought a good night chipKIT uno32 to use it with projects but with the language of c32 with IDE MPLABX and pickit 3, everything went well but when I want to debug a project says disposito ...
2
votes
2answers
208 views

Variable declared in code but doesn't exist in memory

I declared some variables and matrices globally in PIC16F887A code, but when I simulate that code on Proteus, one of the matrices doesn't exist in the "PIC CPU variables" window, while all the other ...
10
votes
2answers
852 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 ...
1
vote
2answers
839 views

Atmel Studio 6 Simulator Not Showing Up

I was looking to run the simulator for an AVR controller, but when I went to set my debugging tools as outlined in this video- http://www.youtube.com/watch?v=9QlDSNeuAdY I do not have anything show ...
2
votes
1answer
196 views

How can I debug my 555 timer circuit?

I'm trying to build an LED chaser circuit using a 555 timer and a 4017 counter. I've built the circuit successfully on a breadboard, but now that I tried to create a soldered version it just does not ...
1
vote
2answers
194 views

What is the most efficient way to debug CANbus from a PC?

I have several working and inter-operable boards using CANbus. I've shipped hundreds of products using these boards, with no problems. One of my customers is now saying that his fault log shows ...
0
votes
0answers
156 views

How can I isolate a short (in a mobile phone in this case)

I have a Nokia 6030 cell phone, and it's been serving me 7 years. It developed an interesting problem, which looks like a short of some kind: the battery drains very fast, for an hour or so, and the ...
1
vote
1answer
170 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
0answers
226 views

How can I debug/get output from a microcontroller using cc-debugger?

I am working with TI's CC2540 SoC using CC2540dk-mini. My software stack is: Ubuntu 12.04 sdcc Compiler cc-tool to flash programs onto board using cc-debugger I can compile, build and flash ...
2
votes
1answer
137 views

What exactly is a Flash emulator, and how does it work?

I read about a flash emulator. Can someone tell me what exactly a flash emulator is, and explain how it works? Is it synonymous with an in-circuit emulator?
3
votes
2answers
187 views

What is an MCU program trace?

I have read in a few places about Atmel's support of program traces on their high-end debugger/MCUs. It seems to be that some of the AVR32 processors can be 'traced' by the AVROne! ...
2
votes
1answer
809 views

MPLAB XC8 vs MikroC problem

I have been trying to write a program for LCD on PIC18f452. I found a library and worked on it and MPLAB XC8 compiled it successfully. I tested it in ISIS and it ...
5
votes
3answers
821 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
1answer
148 views

How can I take look inside of the atmega1280?

I want take look at the memory and at the element inside the atmega1280. I compiled Ardupilot sketch and I upload it with arduino. I started avarice with the following command: ...
-1
votes
2answers
150 views

Circuit is oscillating - why?

One area of a circuit I'm looking at is the schematic shown below. The Vin is a discrete signal, currently, I'm not sure of what the voltage is, (its slightly difficult to probe the circuit but I'm ...
1
vote
2answers
79 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 ...
5
votes
1answer
514 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
94 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 ...
3
votes
2answers
2k 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
159 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
189 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
549 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
428 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 ...
4
votes
3answers
1k 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 ...