Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

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

0
votes
1answer
39 views

Compiler error when using HAL functions for I2C communication

I am using the board STM32F3 and I am trying to establish I2C communication between the microcontroller and the accelerometer LSM303DLHC by using the HAL functions. This is the code: ...
0
votes
0answers
53 views

Can I use PICKIT3 instead of STLINK for programming STM32F103C8?

Can I use PICKIT3 for programming STM32F103C8 instead of STLINK ?
1
vote
3answers
101 views

Adding Debug LEDs to PCB

I'm working on the next revision of a prototype PCB board, and from the first one I learned that LEDs would be very helpful instead of having to probe each pin/wire for a certain state. In this ...
0
votes
1answer
33 views

Can you speed up debugging in Renesas High Performance Embedded Workshop by not flashing after breakpoint

I am debugging an H8S MCU in Renesas High Performance Embedded Workshop 4 with the attached E10A emulator, and find it's very slow when stepping through code because it keeps reflashing the chip ...
0
votes
0answers
22 views

Help debugging problem in light meter power supply

I have an old Sekonic light meter (L-778) that was reporting no battery when batteries were installed, and emitted a high-pitched whine that changed in pitch when powered on and off with the battery ...
-1
votes
1answer
46 views

Debugging Gate-level Verilog Multiplexer

I've built a 4-1 multiplexer using three 2-1 multiplexers, but am having a lot of trouble debugging my code. I've tried using $display statements as rudimentary ...
0
votes
1answer
41 views

Options for debugging MCU that is freezing/crashing (AVR32)

Im currently trying to figure out why it seems like a MCU is crashing/freezing. I can recreate the crash/freezing almost everytime by doing the same procedure, and i have been looking through the code ...
1
vote
1answer
44 views

SAMD09 Debug port connection issue

I have recently built a board using an ATSAMD09D14A-MUT, today it came the time to test it, however problems arose in a strangely annoying manner, when trying to connect to the device i get error 4109 ...
0
votes
0answers
42 views

'Bug fixing' a circuit with HiLink HLK PM01 220V->5V converters

I soldered a DMX splitter together. However, it does not work. I'm sure one of the solder connections broke, but I have to find which one. I want to do this with power connected because that is ...
0
votes
2answers
82 views

What happens when an op amp misses one of the power rails?

I would like to know what happens when a dual power supply op amp misses one of the power rails and what kinds of damage I can expect for op amp. What prompted this question: I have a analog PID ...
-1
votes
0answers
79 views

Not able to Debug STM8S001J3 with STVD and STVP using STLink V2 Debugger

As the STM8S001J3 MCU has no reset pin, how do I connect the MCU with STLink V2 using SWIM pin for debugging? STLink V2 : STM8S001J3 VDD : VDD GND : GND SWIM ...
0
votes
0answers
42 views

Minimalist high speed 8051 microcontroller testing circuit on breadboard

I'm trying to come up with a circuit using the least number of parts possible to build on a breadboard that tests the basic functionality of a microcontroller, specifically the AT89LP4052 ...
0
votes
1answer
48 views

My MPLAB X IDE debugger gives me an error whenever I try to debug my PIC24 Explorer 16/32 Development Board

I am doing a simple program for my PIC24FJ1024GB610 Microcontroller from Microchip, using the Explorer 16/32 Development Board, it has it's own PKOB (Pikit On Board circuitry). My IDE is: MPLAB X IDE ...
1
vote
1answer
49 views

Why does the UART not report an error for a data byte with wrong parity?

I am trying to learn about UART Serial communication of the MSP430FR6989 from Texas Instruments. Datasheet User's Guide I doing a program where my UART will send a character through the TX pin of ...
0
votes
1answer
37 views

Could STM32 Discovery boards debug STM8 chip?

I know that STM32 discovery boards could debug another STM32 chip. But could it debug STM8 chip too? Is STM8's debugging interface compatible with SWD?
1
vote
0answers
46 views

OpenOCD debugger in Eclipse Neon 4.6.2 Error in final launch sequence

I have been struggling with OpenOCD debugger under Eclipse Neon 4.6.2. Whenever I run the debug configuration I receive below given error message I have been attempting to debug the STM32F417VGT6 MCU....
0
votes
0answers
14 views

TH7122 Transceiver debug procedure

I'm trying to use a Melexis TH7122 Transceiver IC in the 915 MHz ISM band. The problem is that I don't know how to make it work. More importantly, I don't know how to see if it is working properly. ...
1
vote
1answer
78 views

Which IC can support LED debug of logical circuits?

I am new to electronics, and am playing with some ICs (555, 74393, 74595 and logics like 7400) on the breadboard. To see what happens, I would like to put LEDs at various places in the circuit. But I ...
4
votes
6answers
2k views

Power indicator for circuits with voltages much higher than LED forward voltages (say 15-48V)

I have a circuit that has a 24V power rail and I put an LED and series resistor on it for power indication. Even at 10mA forward current, over 200mW of power is dissipated, over 90% of it in the ...
0
votes
1answer
46 views

Debugging a op-amp based comparator

I am trying to build a high frequency (~ 5MHz) level shifter circuit. For this purpose, I designed a comparator circuit based on TI's THS3491. The circuit schematic is shown below: simulate this ...
2
votes
2answers
74 views

PIC24 Debugging

I'm in the process of figuring out what sub-model of PIC24 best suits my needs and I'm wondering if debugging the MCU takes up a UART module. The MCU will need to communicate with a LIN transceiver ...
0
votes
0answers
94 views

Is there a JTAG programmer/debugger for PIC32 on FT2232H chip?

I'm looking for an low cost programmer for my PIC32, which is supported in MPLAB X. On the ft2232h chip? is this?
0
votes
2answers
155 views

what make MPLABX connected with ICD3 to dsPIC reads different Device ID

Target Device ID (0x7bf0000) is an Invalid Device ID. Please check your connections to the Target Device. although all connections correct status of the dspic3F is working well Using MPLABX the above ...
6
votes
2answers
272 views

Detecting DMA overflow in arbitrary waveform generation

I'm generating a complex series of pulses on an STM32F103, essentially as described in the ST app note AN4776 General-purpose timer cookbook, section 5.3. As a quick summary, that means I'm using the ...
0
votes
1answer
78 views

Arduino Circuit Debugging Methodology

I am a mechanical engineering graduate that has been learning more about EE through personal Arduino projects and I am relatively unexperienced in Arduino circuit debugging. I have a circuit (see ...
0
votes
1answer
45 views

CC430 circuit isn't working like an almost exact copy

So I have two PCBs(They are Kicksats) with the following schematics: This is the bad one. This is the good one The cutoff in the schematic is just the irrelevant solar panels and the block to the ...
0
votes
1answer
76 views

Debugging SPI problems on NXP K66

I'm trying the sample provided by K66 SDK from NXP and it doesn't work at all. I attached a scope and monitoring the data that is transfered from the uC to the slave but nothing is there. I have ...
0
votes
1answer
64 views

Voltage Drop on ATMEGA328 when enabling multiple pins

I am doing a hobby project working with a ATMega328, however, I am struggling with a with a small issue when I am trying to drive the output high on multiple pins at once. Somewhat new to this field, ...
0
votes
0answers
62 views

RF24L01+ radio module not working without a finger on it

I am having trouble with my RF24 chips, the setup: two arduino nanos are each connected to a RF24 chips one is connected to a joystick for test data input, the other has four LEDs (in place of an H-...
7
votes
2answers
955 views

STM32L MCU - SWD pin on board not matching processor pinout

I was doing my hardware hack project on an air quality monitoring device which uses STM32L476 processor. My only experiences with hardware hacking are IPcams or ...
0
votes
0answers
121 views

Atmel ice Connection Issue with “device signature”

I have recently got a atmel ice and am having trouble programming it. I have been trying to connect it a attiny2313-PU. I am confident that I have wired it up correctly. The problem is when I look for ...
0
votes
0answers
215 views

STM32F051 USART Initialization for Reception

I've been trying to get my USART2 to properly receive data through its RX pin. I've configured pins PA2 and PA3 as following: ...
0
votes
1answer
647 views

What is the difference between an emulator and a debugger? [duplicate]

In my experience I've used (to some degree) both emulators and debuggers. I've used them both for loading binaries (containing production code) into flash memory. I've also used them while developing ...
0
votes
2answers
251 views

digispark pin mode input_pullup reading low on pin 1

I have a Digispark dev board that I am using with the Arduino IDE. I have set Pin 1 HIGH with pinmode(1, INPUT_PULLUP) and the ...
0
votes
2answers
240 views

Debugging a dimmer circuit (TT6061A) [closed]

I've got a touch sensitive table lamp that dims to three different stages (off, low intensity, mid intensity, full intensity). It has stopped working like that and now just being powered to the mains ...
2
votes
1answer
2k 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 ...
1
vote
1answer
56 views

Barebone ATSAMD11D14 not responding

I wire up this schematic on my breadboard. I've verified that the 3V3 LDO is working. Atmel Studio on my Windows machine can see the Atmel ICE. The simple blink compiles fine too. However, I cannot ...
0
votes
1answer
165 views

Serial Wire Debug (SWD) Enumeration

When debugging or accessing hardware firmware, JTAG and SWD can be really helpful to the developer, engineer or reverse engineer. When looking at an unknown board/device tools such as JTAGEnum or ...
4
votes
2answers
223 views

Detachable “debug” portion of PCB?

I'm trying to add "optional" debugging test points to an existing, very dense 4 Layer PCB design (signal - GND - PWR - signal). I'd like to change the existing PCB as little as possible. My idea was ...
1
vote
1answer
59 views

USB Serial Adapter Unintentionally Powering RS232 TTL Converter

I have a programming setup where I plug in a GoldX USB cable plugged into my programming laptop (in this case a MacBook Pro). Cable picture: This is plugged into an eBay sourced RS232 TTL converter: ...
1
vote
2answers
569 views

Any rules of thumb to fix this non-functioning board I just made? [closed]

I just reflowed this PCB. It is a 20 x 16 mm PCB with a Nordic nRF52832 Bluetooth Low Energy (BLE) SoC IC. I powered it on and the regulator, mounted on the back, got very hot. I measured the Vcc and ...
-1
votes
1answer
247 views

How to debug an I2C Sensor conntected to a raspberry pi with a multimeter?

I am a noob in eletronics, so I need some help. I want to debug an i2c sensor with a digital multimeter such like this: And I have a setting like in the picture below where tmp102 is my i2c sensor on ...
0
votes
2answers
360 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 ...
3
votes
2answers
1k views

Op Amp Overheating

I am building an amplifier with multiple op-amps, and it seems that some are overheating. Here is the schematic: U62 heats up the most (too hot to touch), U63 also heats up but a little less, U64 ...
0
votes
0answers
74 views

Debugging implementation of low current battery monitor

I have tried to implement the circuit in this answer in order to measure the voltage of an external battery using an Arduino. However, I am not sure if I have wired it correctly. Here is the diagram: ...
0
votes
2answers
109 views

Microcontroller with and without debugging features?

Out of curiousity, are there any microcontrollers which are available with and without debugging capabilities? I'm asking because I assume that the debugger is not a simple 'peripheral' in terms of e....
2
votes
2answers
2k views

STM32 print via UART without Nucleo/Discovery

I would like for debugging/trace purposes to print texts (preferably via printf but just text is also fine) from an STM32F103C8T6 to a (PC) terminal application. I noticed that all examples use a ...
0
votes
1answer
208 views
1
vote
1answer
152 views

Kiel debugger exits automatically

I am using Keil uVision5 for programming TI launchpad TM4C123GXL. The Keil work perfectly fine for Building and flashing the programs (examples projects of Tiva Ware). But when I start the Debug ...
0
votes
2answers
199 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 ...