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

learn more… | top users | synonyms (1)

1
vote
1answer
23 views

Cortex M3 debugging: Intermittent partial load of binary with pyOCD, then timeout

I'm debugging an embedded system and get intermittent binary loading errors when flashing the binary through gdb (well, arm-none-eabi-gdb, the toolchain gdb client). Here are the details of my setup: ...
1
vote
1answer
126 views

Why ARM Cortex M0 prints incorrectly Hello World on UART?

I am new to ARM CORTEX M0. I am trying to use the Tx pin of UART as debug port. If I use the XDS200 debugger to step through the code, I am able to see the characters and I can see "Hello World" ...
2
votes
3answers
125 views

Debugging when oscilloscope grounds cures the problem

In a nutshell : My circuit behaves erratically I connect the 'scope to find out why The problem disappears In particular, this concerns the circuit in my last question although this is not ...
0
votes
0answers
65 views

firmware debugger for x64? (jtag?)

How does one do board bringup and other lowlevel debugging in x86/x64 land? I know that i would use a jtag kit for powerpc arm etc. to connect a gdb environment or some proprietary debug environment ...
1
vote
0answers
25 views

How do i write if-else control statements in ngspice? the syntax does not seem to the same as that of pspice

I downloaded a pspice module from the CEL website which includes the command: ...
3
votes
1answer
143 views

Memory deallocation exception when using free()

I am currently working on a project that requires some allocation and deallocation of large arrays on a PIC32MX775. I have a dedicated heap memory size of 1500 bytes, which should be more than ...
3
votes
2answers
104 views

How come the decoder gives a question mark?

I'm using a scope to debug I2C (bit banging) by letting it capture the signal. I think that the output should be good, but the scope's decoder gives the following: where there is a question mark ...
1
vote
1answer
48 views

Circuitry for the DRV8840 Motor Driver

I'm building a circuit based on the DRV8840 (datasheet: http://www.ti.com/lit/ds/symlink/drv8840.pdf). Unfortunately, I can't get it to work. I think something might be wrong with my design. When I ...
3
votes
2answers
208 views

Is it possible to set a breakpoint in AVR Studio in files other than the one where the main() function is?

If I have a project with more than one translation unit, AVR Studio only allows me to set breakpoints in the main c file. It doesn't matter if I include the other files directly by ...
0
votes
2answers
97 views

PIC16F877 blink program uploads correctly but nothing happens - hardware or software mistake?

I made a custom board based on a PIC16F877 but for now I only soldered the minimum. I installed MPLABX and the XC8 compiler, connected the ICD3 to the board, adapted a "blink" example to RD0 where my ...
1
vote
0answers
30 views

Does Core Debugging Interface reveal state of Context Registers?

I need to know whether the Context Register states of the CPU are relayed to a hardware component called the Core Debugging Interface, and if so, where I can find any useful information on this ...
0
votes
1answer
64 views

Clock doesn't seem to tick

I have been working on a program for class which acts as a stopwatch, but I've been having troubles where it doesn't work. (Only one digit, the first that would be shown on the four digit display is ...
0
votes
1answer
78 views

How to debug UART?

The firmware of my module supports UART printf() which I think could be good for debugging, but how could the messages be read? I'm currently using just a USB-to-Serial cable. I've tried using PuTTy, ...
-2
votes
1answer
69 views

pic debugging vs programming

I'm using a Microchip ICD 3 to connect to my PIC chip and read the memory. When I connect the ICD 3 as a "programmer" and then select "read" (from the "programmer" menu) and then "View-->"File ...
1
vote
3answers
64 views

what is sensible to debug msp430? [closed]

As you know, msp430 launchpads have their own debugger, nothing else required to debug,on the other hand fet-debuggers are sold in high prices on ti.com,what the hack is that? and if i buy only ...
1
vote
1answer
33 views

When issuing GDB `continue` in RAM, can I write to the adresses from which I `continue`d?

I'm just writing some test programs in order to get to know the STM32F4 (ARM Cortex M4). The development board I'm using has U-Boot preinstalled in flash. When the board is up and running and U-Boot ...
0
votes
1answer
140 views

Unable to use ICD3 with CCS C Compiler

I have recently bought ICD3 since I think that being able to debug a microcontroller program requires that we be able to see what is happening inside it. I really want to learn this stuff :) I have a ...
2
votes
1answer
64 views

scoping a UART interface

I'm using a known good FTDI USB -> UART bridge to talk to a 3rd part module on my board. I've just assembled the board, and it's not impossible that I fried a component in the process (it's what I'm ...
0
votes
0answers
126 views

Pic debugging not working with PicBASIC pro compiler, mplab x 2.26 and pick kit 2

I'm trying to get debugging working using mplab x v2.26 ide and PicBASIC pro compiler. I have successfully configured the ide to use the compiler, but when I try to debug (I have set a breakpoint in ...
0
votes
1answer
85 views

How can I debug the amplifier section of tuxgraphic's powersupply?

I've built this circuit: http://www.tuxgraphics.org/common/images2/article379/powersupply.gif Here is a closeup of the amplifier section which I've built: simulate this circuit – ...
1
vote
3answers
208 views

How can I view, debug, or analyze data being input to my FPGA?

I'm working with a Xilinx Spartan6 on Digilent's Nexys3 board. I've also purchased their PmodMIC so I can try to get some audio data onto my board to perform some signal processing. The ...
1
vote
2answers
63 views

Hot ENC28J60 Chip

I need some help figuring out why my ENC28J60 Chip is running hot. This is my first time using the chip and I'm not sure if I have everything right schematic-wise. I'm working on a prototype pcb I ...
0
votes
0answers
96 views

ARM JTAG Debugging Internals

I want to learn how JTAG is interacting with ARM core more in detail. All explanations I have found so far are very basic and just cover JTAG tap controller with a simple state machine diagram. I ...
2
votes
1answer
198 views

How can I design my PCB in a way I can debug the Atmel microcontroller on board?

We are designing a board around Atmel SAM4E microcontroller, and use Atmel-ICE for debugging/programming. To save space, we would like to avoid including the whole ICE connector. Which are the minimum ...
2
votes
1answer
758 views

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. ...
1
vote
1answer
320 views

PIC UART CODE need help in debugging

My question has two parts: Does MPLABX have a UART simulator? I need help debugging this code: ...
2
votes
1answer
156 views

When a microcontroller is in debug mode, does it freeze the entire MCU?

I have a PSoC with debugging functionality ( I am sure other MCUs have similar functionality) which allows you to place the system in debug mode and you are then able to step through program ...
0
votes
0answers
59 views

Debugging a Diamex USB ISP programmer

This is my first time experimenting with micro controllers and I cannot get my USB ISP programmer from Diamex to work. When I use the following command for avrdude: avrdude -c avrisp -p ATMEGA8515 ...
0
votes
3answers
153 views

555 timer ciruit errors

I have set up a 555 Timer circuit on my breadboard following this diagram. These are the values I use: R1: 1k R2: 1k C: 0.1uf Vcc: 9V The only problem is, on pin 5, I have a 0.001uf capacitor. ...
0
votes
0answers
67 views

how to get SWV working with Atollic TrueSTUDIO Lite and stm32f100 Discovery

I need to get some processing info from my stm32f100. I followed the instructions included in the quickstart guide for using the SWV ...
0
votes
0answers
64 views

MCU Debugging: What is the difference between ITM, SWV and Trace?

What is the difference between ITM (Instrumentation Trace Macrocell), SWV (serial wire viewer) and Trace? For example, in an Atmel SAMG53 ARM M4F; it supports: ...
4
votes
3answers
120 views

What facilities/methods exist to debug and simulate programs for PIC microcontrollers

In the university, even though I did do some PIC programming and project, the project was quite simple. We could always put in a blinking LED as a sign of life into our program or have the code write ...
0
votes
1answer
163 views

Proteus doesn't show the value of float variables and does not attribute values to them

I have an issue with Proteus Isis. The image below illustrates the problem. I can't see the values of a struct's fields and I think that Proteus can't see the struct too. Full Resolution Anyone ...
1
vote
4answers
961 views

Tesla Coil Issue

I'm currently working on my first Tesla coil, and to my dissapointment, after completing it, the Coil does not function. I cannot figure out what went wrong. I have been told that an MOT wont produce ...
0
votes
1answer
288 views

Does the Atmel-ICE Debugger work on ATtiny MCUs?

I've looked on the interwebtubes and could not find out if the Atmel-ICE debugger works with ATtiny MCUs. In theory, since the debugger supports debugWire and SPI modes, it should, but the official ...
0
votes
1answer
111 views

Why does my MCU go back? (to the previous instruction)

I don't know why but I see the same odd behaviour sometimes in the debugger environment. Look at this code (function): ...
1
vote
1answer
207 views

Use Atmel-ICE programmer for other JTAG debugging

I'm new to electronics and come from the software side of things. Now we are working on a project and we need to program a MCU. Since it's an Atmel MCU we had to get a programmer. It is the Atmel-ICE ...
3
votes
2answers
66 views

Troubleshooting a power issue on a DIY board

I built a board that combines a number of sensors, an ATmega2560 and a TPS62125. The board worked, I was able to measure 3.3V coming out of the buck regulator, and was able to program the ATtmega via ...
-2
votes
4answers
363 views

ARM Development tools [closed]

I want to start developing embedded applications on ARM and I am looking into the tools options and honestly it's quite confusing. I am trying to decide on which IDE and debugger I will be using and ...
2
votes
1answer
204 views

Why I cannot to choose some parts as breakpoint in the Keil?

Why I cannot to choose some parts as breakpoint in the Keil? please consider to these pictures: If you consider to some parts that I determined, you will know that I cannot to select those as a ...
0
votes
1answer
268 views

Why doesn't the STM32f0 go to the interrupt routine? (in the debugger)

I'm trying to execute my project in the debugger but it doesn't go to the interrupt routine. the project is correct and it works without the debugger nicely. How do I use it? Ok, here we go! at ...
1
vote
3answers
79 views

Good method to remove tenting on vias after assembly for debugging?

This is a question about modifying an assembled board to make it easier to debug. In a perfect world, I would have left the bottoms of these vias un-tented. Whoops. I have two BGA parts on a PCB, ...
3
votes
1answer
661 views

Testing procedure for a PCB

I have a little bit of experience with PCB design and made a couple of small circuits for learning purposes. I need to test out a new PCB designed by another person and its kind of a complicated ...
1
vote
1answer
87 views

How to debug large I2C bus?

I have a circuit board with lots of soldered SMD chips. There are a few I2C components connected to the same bus and the bus is also connected to a "bus switch" isolation switch. Unfortunately the bus ...
1
vote
0answers
151 views

Debug 2-Wire Serial Interface

How can I debug I2C in Atmel Studio (latest)? I have enabled it as shown inside the I/0 View with TWEN and ...
0
votes
0answers
215 views

Debug Assembly Code in Atmel Studio

I am using latest Atmel Studio to generate *.hex file from *.asm file. When I start to ...
0
votes
0answers
88 views

conformal renaming rules: Mapping

I had around 140 extra points which were unmapped after mapping key points. Signals have this format signal[5] -> signal_5_0 abc[5]_z -> abc_5_0_z So I ...
1
vote
0answers
137 views

OLinuXino iMX233 won't boot

After I get my OLinuXino I would like to try first boot up a sample system and look around, but looks like it's more difficult as I first think! I found a tutorial in the webshop and I prepared the ...
1
vote
1answer
377 views

AVR ATmega breakpoints and BREAK instruction

I use AVR Studio 4, JTAGIce MkII-CN, gcc for debugging. It works generally OK but sometimes happens after some unspecific interruption (reset, power cycle, etc.) that AVR Studio breakpoint remains ...
1
vote
0answers
87 views

Debug Netduino without .NET Micro Framework

I have a Netduino, but I am programming it using the GNU ARM toolchain in Eclipse and VisualGDB so the .NET Micro Framework (NETMF) firmware has been removed. Is there a way I can set it up for ...