Questions tagged [debugging]
The process of identifying, quantifying, and correcting errors in the operation of a system
454
questions
0
votes
0
answers
21
views
Can't debug a PIC24F04KA200 using a MPLAB Snap debugger
I'm working with a PIC24F04KA200 in MPLAB X IDE v6.05 and debugging using a MPLab Snap debugger. Programming in C. I can program the device perfectly fine. When I want to debug the program I need to ...
0
votes
1
answer
47
views
How to debug a failing USART?
I have simple code which writes to the USART on a Nucleo board that is connected to ST-Link, and appears on my workstation via VCP over USB.
I'm trying now to port it to a STM32H735G-DK Discovery but ...
13
votes
9
answers
4k
views
What's a good way to assert in embedded microcontroller code?
It's good practice to use assert to test that things are that we expect them to be. Likewise, it's good to check that calls worked as expected and didn't error.
In ...
0
votes
0
answers
28
views
SWD Debug Using U-Link Pro for STM32 Device
I want to debug my stm32f429 device using U-Link Pro in Keil. I applied the required connections for that and when I try to SWD debug in Keil I receive below "Communication Failure" error. ...
0
votes
2
answers
134
views
Estimation of measurements with a multimeter
I have an EMU-APS PCI sound card which was damaged by a bad PC power supply.
The card is old but costly to replace and of very high capability, so I am attempting to repair it.
As it is a proprietary ...
0
votes
2
answers
99
views
PIC MCC I2C setup help
I have made use of the MSSP1 in MPLABx's MCC (code configurator). I have set it up as an I2C slave device and initialized the setup in the code provided. I am making use of a MCP2221 as a master ...
0
votes
2
answers
46
views
Audio amp board keep blowing fuses
I have a electronic piano that stopped working. After opening I case I found that one fuse on the amplifier PCB had blown. I replaced the fuses but they immediately blew again. I have investigated the ...
0
votes
0
answers
42
views
Trouble communicating with ICM-20948 IMU over I2C
My setup:
I'm trying to communicate with an ICM-20948 IMU over I2C with a Raspberry Pi Pico, and writing C++ with Visual Studio Code. I have started with the Sparkfun Arduino library for this chip, ...
7
votes
1
answer
319
views
KiCad schematic editor "frozen"; nothing can be selected
While working on my circuit, I did a test gerber file export to JLC PCB to see how much it would cost. Coming back, and now I can no longer select ANY footprint/PCB route/copper pad/element. Right-...
0
votes
0
answers
18
views
CC2533 chip is not recognized by CC debugger
I'm trying to connect CC debugger to a board with CC2533
I've connected GND,DC,DD,RST between the boards.
The board is powered externally with 5V.
I've powered the target board and connected the ...
0
votes
1
answer
120
views
Can an 18.7 Ω resistance between Vcc and GND cause an increase in current?
This is an ECU PCB and the measurement of resistance between Vcc and GND for the TC1762 Tricore MCU in the PCB is 18.7 Ω.
I have a reference board, the resistance there is 400 Ω between Vcc and GND ...
0
votes
1
answer
84
views
Incorrect results when cycle counting on STM32 using DWT->CYCCNT
I'm trying to determine the number of clock cycles it takes to run some code I've written for an STM32, because I'm curious to see just how much slower it is if I use floating point numbers. This is ...
5
votes
0
answers
146
views
Why does my square wave signal from an Elegoo Uno R3 have 3V overshoot/undershoot?
I've just purchased my first oscilloscope, a Siglent SDS1202X-E, and am experiencing an issue with a square wave signal generated from an Elegoo Uno R3 board. I've calibrated the probes, and I'm quite ...
3
votes
1
answer
65
views
How to debug unexpected behavior on voltage-controlled oscillator PCBA?
I designed a circuit for a voltage-controlled oscillator (VCO) for use in a synth and had it fabricated and assembled as a PCBA. I got three assemblies back and while two behave exactly to spec (and ...
1
vote
1
answer
77
views
Open collector circuit input to logic gate
I'm designing a simple circuit where I intercept and read an open collector pulse signal from an external machine and let it pass through to an optocoupler. In addition to that, I can also output a ...
1
vote
0
answers
91
views
IWDG not stopping on debug when CAN Receive interrupt triggered
I'm having a significant problem debugging my board with CAN traffic. Whenever the debugger is paused, and a CAN message is received, the independent watchdog is being reset. As far as I can tell, I'm ...
2
votes
2
answers
115
views
Debugging a problematic old TTL pull-up that's not pulling up
I am trying to bring back into operation a late-70s disk controller board (all 74xx TTL). I'm stuck trying to figure out why a small pull-up network is resulting in a far out of spec voltage not doing ...
0
votes
1
answer
39
views
Basic USB Endpoint0 configuration error ATmega32u2
I've been trying to make a simple custom usb device class for a project based on the Atmega32u2. I have been trying to get a usb device enumerated, but I can't get endpoint 0 properly configured. I ...
4
votes
1
answer
292
views
Ideal diode IC (TPS2419D) not working
I have recently integrated an ideal diode circuit based on the TPS2419D chip from TI.
The schematic is the following:
When I apply 48 V to the input of the DC/DC, I do get 12 V at the output of the ...
0
votes
2
answers
117
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
121
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 ...
0
votes
0
answers
34
views
Boost Converter doesn't work after simulation works fine
I designed a custom board and I just got it.
I checked the boost with Vin=14.4v( the operation required to be with battery)
Once the boost gets enabled, he is trying to take a current but in a strange ...
-1
votes
2
answers
150
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
793
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
53
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
132
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
267
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
183
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
61
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
150
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
807
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
107
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
316
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
33
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
71
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
193
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
109
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
142
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
176
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
117
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
1
answer
358
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
412
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
219
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
718
views
trace32 error "bus error generated by CPU"
I am trying to Boot a DSP TMS320F2812PGFA on his internal SARAM using trace32. The tool detects the processor and i can see it but when i try to run a script, where i initialize the clock and other ...
0
votes
0
answers
65
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
2k
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
91
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
89
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
172
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
98
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 ...