Questions tagged [debugging]
The process of identifying, quantifying, and correcting errors in the operation of a system
482
questions
0
votes
2
answers
152
views
ATmega32u2 example circuit sanity check
I'm working on a project and have decided to make it with the ATmega32u2. In the process I am trying to make an ATmega32u2 breakout board which only has the required components to run the device (...
4
votes
1
answer
125
views
Help requested debugging this circuit I've reverse engineered
Following my last post (How do I establish if an op-amp is bad?) I have now attempted to map out a schematic for the circuit I am really now struggling with.
Attached is the circuit diagram. It is my ...
-1
votes
2
answers
198
views
MCU heating up in high-voltage circuit
I have been facing a major issue on my board. The board is about Vin that is 4.5 V, and Vout is 100 V using a flyback converter, H-bridge inverter high-voltage mux.
STM32 is used for multiple MOSFET ...
5
votes
2
answers
908
views
Left shift confusion with microcontroller compiler
Using an STM32 uC debugger, and from binary 0111 I want to obtain 1110. And to do so, I use left shift operator as follow:
...
0
votes
0
answers
60
views
STM32 Debugger Bug? - Debugger enables PLL for no reason
I'm using a Nucleo F429ZI board and programming it on System Workbench. I've been trying to setup a bare-bones project by removing almost all startup code which is created by default, including all ...
0
votes
1
answer
183
views
How to visualize the waveform of multiple clock domain-based signals in the vio and ila?
I am a newbie to FPGA development. Any help will be highly appreciated and please forgive me in advance if the question is too obvious.
The board is Chipwhisperer 305 artix-7 fpga. Used tool vivado ...
5
votes
1
answer
352
views
STM32 custom PCB: microcontroller unresponsive to the debugger, draws too much current, becomes warm
For a school project I've designed a PCB on KiCAD around STM32F401RBT6. The design is based on what I designed before and the application notes. It is powered through the USB port and should be ...
0
votes
1
answer
312
views
FT231XS is not recognised by Windows
I am trying to implement a USB to serial bridge using an FT231XS to program an ATmega over USB using Optiboot.
My breadboard is exactly the application circuit for a bus-powered application (it draws ...
0
votes
0
answers
69
views
7 Segment display loops back to 9
I am trying to figure out why the 7-segment display at the top part loops back to 9 when the timer reaches 0. I want the timer to display 0 whenever it stops. What kind of adjustments should I make to ...
-1
votes
1
answer
203
views
What is the actual trigger of motherboard debug LEDs?
I am aware that when one remains lit, it is indicative of the part of my system that can't be initialized; it's helped me with several builds. However, I can't help but notice that even in a perfectly ...
6
votes
2
answers
901
views
Why does my oscillator work in LT Spice but not when I implemented it on a breadboard?
I'm working on creating a phase shift oscillator that uses a common emitter BJT as the amplifier. I designed the circuit so that it produces a sine wave with a frequency of roughly 25kHz and peak to ...
0
votes
0
answers
189
views
How to initialize ST7789S for RGB connection to LTDC peripheral from STM32
Guys I have an issue initializing ST7789S LCD driver for RGB connection.
IM0: 0; IM1: 1; IM2: 1; DOT clock: 7MHz.
Also this is my LTDC configuration:
Here is my code:
...
1
vote
0
answers
514
views
Repair HDMI HPD and EDID failure
This is a photo of an old video board from a Dell display showing "No Cable", and "No Signal" OSD messages but working correctly when video is force-enabled and EDID is supplied ...
0
votes
1
answer
48
views
How to "debug" a DVR8824 stepper driver board?
I am trying to control a stepper motor following a description. I have the exact same elements.
I do not have any tension on the down-right pins (they are supposed to be 5V and power the RPi).
I ...
1
vote
0
answers
116
views
Current Spike when charger plugged in?
Here is the rough set up of the system:
Relays used 1-1393277-4 (https://www.farnell.com/datasheets/2243264.pdf ).
The way the set up works is when the battery is turned on, there is a micro (not ...
3
votes
1
answer
226
views
Puzzling CD4060 behavior
Objective
To achieve a 12-hour interval between 30-minute runs (on for 30 minutes, off for 12 hours).
Circuit
On (foolishly) thinking that this would be implemented more simply using discrete ICs as ...
0
votes
0
answers
146
views
DC-DC buck converter inrush start on voltage
I started to examine the behavior of the converters on my custom board. The input to the converter comes from an external supply with a voltage of 20 V, the required output voltage is ~12 V.
When I ...
0
votes
0
answers
179
views
Custom ESP32 Board with JTAG only Programming Concerns
Due to the limitation of UART pins available I built a board using the esp3-mini-1 module that can only be programmed using JTAG (through Segger J-Link programmer), but I were unable to flash it (...
0
votes
3
answers
219
views
Op-amp power sequence
Two questions and I would like to hear the explanation:
Is there any issue to apply the positive voltage before the negative? (op-amp with +/- 5 V)
Is there any issue to apply input voltage before ...
0
votes
2
answers
118
views
Circuit with switching [closed]
CONFIDENTAL CIRCUIT
I'm experiencing some weird behavior though that I don't understand.
When I send from FPGA 1 V to turn it on it doesn't working
I deliberately chose NMOS with low Vgs voltage.
I ...
0
votes
2
answers
561
views
ESP32 S2 hanging but only when not connected to serial
I got a Lolin S2 mini development board, featuring an ESP32 S2.
We're building a follow-me robot. The DC motors are controlled by this motorshield via I2C.
The motorshield requires a modified library....
0
votes
1
answer
483
views
ESP32-C3 JTAG/USB debugging issue with ESP-IDF
I am using ESP32-C3 module and I want to debug my code through USB/JTAG.
For USB interface I have used TYPE C connector with ESP32-C3.
Connections are as follow but the device does not get recognized:
...
-1
votes
1
answer
422
views
What's wrong with level shifter output? [closed]
I was trying to understand what wrong about the output of the level shifter, the level shifter is part of my circuit that I trying to bring-up and encountered difficulty in this issue.
This is the ...
0
votes
0
answers
72
views
HDMI debug issues over wireless
I have designed board that carrier transmitter HDMI module.
There are TX side and RX side, the board works well except one issue that which takes a lot of sleepless days from me.
this is the ...
1
vote
3
answers
3k
views
ESP32 boot strapping pins problem (GPIO15 and GPIO5)
I am desiging a PCB that includes an ESP32. I have question about strapping pins of the ESP32-WROOM-32E. My design is suitable below picture only for GPIO 0,GPIO 12,GPIO2 pins.
Unfortunately, I have ...
0
votes
1
answer
149
views
Need help fixing an old TIG welder, Relay is not working and I can't figure out why
I have an old TIG welder that uses a relay to HF (High Frequency) start. I had a problem with it about a year ago and cleaning seemed to work, but now it's not even getting 12VDC to it.
Here's the ...
1
vote
1
answer
121
views
Why is my MC14504B circuit acting strangely?
Chip in Question: ON Semiconductor - MC14504B
Datasheet Link: https://www.onsemi.com/pdf/datasheet/mc14504b-d.pdf
Issue at Hand:
I am intending to use this chip alongside Arduino Mega 2560. When I ...
2
votes
0
answers
266
views
DebugMon_Handler not triggered even after configuring DWT (Data Watchpoint and Trace) to look for memory writes
Can anyone advise why my actions described below do not work?:
I have been trying to run the code snippet from the post Can Cortex M4 data watchpoint trigger an interrupt without a debugger? on(...
0
votes
1
answer
107
views
DC-DC converter fault output
We have a design using 4 EM2130L02QI dc/dc converter all with very similar routing and component placement. the output gets shorted to GND and never changed . the same board that contain with another ...
3
votes
1
answer
184
views
Inverting DC-DC converter input ripple issue
I'm trying to implement an inverting Cuk DC-DC converter on a 2 layers PCB, in order to generate a -3.3V rail from 3.3V, but the circuit affects greatly the input rail. The 2 rails are used to power 4 ...
10
votes
3
answers
3k
views
What would it mean if a circuit board all of a sudden works after it doesn’t work for some time?
Sorry for my noob question. I am very new to debugging hardware circuit boards.
A circuit board was not working. After measuring a voltage rail it was jumping from 12V to 0V, and back to 12, etc. what ...
1
vote
1
answer
278
views
Logic analyser/trace error in Keil uVision5 with Nucleo M4 Board
I am currently using a NUCLEO-WL55JC board. However, I could not initialize the logic analyzer because of the error "Trace: No Synchronization". I am programming it as single-core (Cortex M4 ...
2
votes
1
answer
409
views
How do I make these MIPI signals better?
I have a system which transmits 1 Gbps single lane MIPI video over several flex circuits. Where each flex circuit connects to its neighbour, I have placed a MIPI repeater chip: SNx5DPHY440SS. At the ...
1
vote
1
answer
460
views
Does ARM gdb not have TUI layout support?
If it run
arm-none-eabi-gdb -tui myProject.elf
This returns
TUI mode is not supported
If I run it without the -tui flag and ...
13
votes
2
answers
2k
views
My PCB works only when I spray isopropyl alcohol on it. Why is that?
I'm observing a strange behaviour in some of my PCBs: they start working only when I spray isopropyl alcohol on them (or, to be more specific, the boost converter starts doing his job only after I ...
1
vote
3
answers
470
views
Using a LED as a debug serial port
I want to add a debug serial output port to a device that's sealed in epoxy. I plan to use one of three existing 3mm LEDs (red 617nm, green 568nm, or yellow 588nm), ±30° angle, that emerge from the ...
0
votes
1
answer
75
views
What is the explanation for a haptic effect when tracing one's finger along a powered device's chassis? [duplicate]
I have a mid-2012 Macbook Pro Retina, and over the years I notice that when I wipe my finger along the surface of the chassis (like when wiping off dust), I sometimes feel a vibrating effect, a more ...
26
votes
1
answer
2k
views
Laptop motherboard not working, quiet clicking noise
Intro how it happened:
I had cleaned my laptop from dust and reapplied the thermal paste. After this i have reassembled the device than it did not turned on. Then i took it apart connected the fan and ...
0
votes
1
answer
104
views
How to monitor your code execution written for any electronic device while they are operating?
I am working on a mobile robot that includes motors, proximity sensors, encoders, and MCU. I am powering my MCU CC1350 Launchpad using the onboard power supply. The IDE I am using is Energia IDE, ...
0
votes
0
answers
1k
views
Error in Upgrading ST-link V3 to J-Link
I am getting the following error from the STLinkReglasher program while converting the standalone ST-Link V3 debugger into J-Link.
ERROR: Cannot find an ST-LINK, multiple ST-LINKs plugged in, or ST-...
0
votes
0
answers
103
views
How to decide if Flyswatter2 can support a particular development board or not?
I am new to JTAG debugging and have already got a Flyswatter 2 unit with me. This is my first experience with any JTAG debugger so I am not really sure what to look for to find if its compatible with ...
1
vote
1
answer
56
views
FTDI Debugger Load Switching
I’m developing a new version of a custom debugger board for my project. The debug target is a solar powered device, which means sometimes I want to power it from the host (debugger) and sometimes I ...
1
vote
1
answer
4k
views
Debug and View Registers
I would like to view and analyze the registers in STM32 Embedded Cards(For Ex. STM32F407DISK) in STM32CubeIDE.
As far as I know from the user manual and my own experience in CubeIDE, I did see my ...
0
votes
1
answer
107
views
LM4565FV-GE2 opamp stuck high
I'm using a LM4565FV-GE2 opamp to amplify the sine signal generated by an AD9837 DDS chip, but the opamp output is stuck at around ~11.5V. I'm using a DS3502 digipot to control the gain, represented ...
-2
votes
1
answer
72
views
How to perform quality assurance? [closed]
The site description is given as "Q&A for electronics and electrical engineering professionals, students, and enthusiasts" and I'm interested in "QA for electronics". Though I ...
0
votes
1
answer
368
views
Signal is garbled when driving inductive load
Background
I'm trying to make a circuit to determine rotor angle of a motor using a resolver https://en.wikipedia.org/wiki/Resolver_(electrical). This involves generating a ~5-10kHz sine wave to drive ...
1
vote
1
answer
367
views
When behavioral simulation of RTL works but synthesis/implimentation do not
I wrote a UART receiver similar to Nandland's example.
To verify that I am receiving and processing data (coming from my PC through Putty), I wrote a design that would correspond certain LEDs to ...
1
vote
0
answers
211
views
Can I use the ST-LINK for programming and debugging STR7 Chips?
Is it possible to use the ST-LINK V3 to program and debug STR7 Familiy chips? If not, what programmer can I use?
3
votes
1
answer
4k
views
Making my own Chromebook debug cable (SuzyQ / SuzyQable)
While trying to access the CR50 chip in my Dell Latitude 7410 Chromebook, I tried making my own Suzy-Q cable because no online store seems to have some in stock.
I bought some USB breakout boards, and ...
3
votes
2
answers
2k
views
How debug Atmega2560 with PICkit 4? (Arduino Mega board)
I own a brand new PICkit 4, and I'm trying to get a debug session working. This is what I did:
1. Cut reset pin from the USB-UART programmer. There is a Reset EN pad that can be cut off to isolate the ...