Skip to main content

Questions tagged [debugging]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

Debugger/Programmer Invalid Target Device

I use a PicKit5 to program a PIC24EP128MC202 using MPLAB x IDE v6.20 with XC16 Compiler, I recently fixed some memory model issues and I ran into this problem where "Invalid Target Device" ...
I have no enemies's user avatar
2 votes
1 answer
44 views

Reference for pinout out of Segger EDU target board?

I'm in the middle of a board design where the processor uses the segger ten pin pinout. For example this debugger from adafruit. I can't find a good pinout of the connector that shows the orientation ...
confused's user avatar
  • 1,828
0 votes
1 answer
68 views

Perfboard short circuit debugging

I've got a perfboard circuit I put together that's drawing 1.7A when just the 5V and GND pins are connected. As you might have guessed, this is not ideal given the existing components. The A4988 motor ...
Flubberknuckle's user avatar
0 votes
1 answer
117 views

MOSFET switch unreliable

I am using a MOSFET to drive a lamp from an Arduino Uno R4 with 5V level pins with the following configuration: (EDIT: typo in the schematics, R2 is connected after R1, but that gives just a 1% ...
Davidmh's user avatar
  • 123
2 votes
1 answer
295 views

Memory view is showing multiple bytes change after a single byte is assigned to a register. Why?

I am debugging an issue I have on a legacy codebase that is running on an atxmega32c4u chip. I am writing single bytes to registers in PORTC, but the memory view is showing multiple bytes change. The ...
daviegravee's user avatar
1 vote
0 answers
69 views

PWMs from microcontroller are resetting

I have been designing an SMPS where the STM32F334R8t6 microcontroller provides the full bridge control signals. The microcontroller board uses a 5 V and 3 V regulator to supply the MCU and the CAN ...
Watermelon's user avatar
0 votes
1 answer
46 views

SAMD51 SPI on SERCOM0 not working as expected

I'm trying to use a SAMD51G19 48 pin package to write a very simple SPI program, which will just loopback what's output back into the input, but I'm still new to this processor and haven't done SERCOM ...
daannn's user avatar
  • 15
1 vote
1 answer
55 views

Understanding the components of backlight circuit of digital watch [closed]

I am not a hardware engineer. I studied basic electronics 15 years back in school days, so you can consider me a noob. I have a digital watch in which all the features (time, alarm, chime, etc) work ...
Naveen's user avatar
  • 119
0 votes
1 answer
59 views

MAX1415 ADC not reading voltages correctly. Incorrect setup procedure?

My device uses two of the MAX1415 dual-channel sigma-delta ADCs. I've labeled them "MADC" and "CADC" for "Measurement ADC" and "Calibration ADC". They are ...
AuFries's user avatar
  • 113
2 votes
1 answer
184 views

Partially nice waveform on debugger pin

I am looking at the waveform on my SWDIO pin during programming and most edges look very nice, but some do not. Is this likely to be problematic? What are probable causes?
Alexander Ohm's user avatar
0 votes
1 answer
60 views

Damaging of SWDIO and SWDCLK pins when they are used as output/uartRX

We are developing board with LPC54616. All pins are already used, so we have to use also programming pins, SWDIO as output pin and SWDCLK as uart RX (both signals are connected to additional modul of ...
ON95's user avatar
  • 1
1 vote
0 answers
55 views

How to debug a noisy oscilloscope

I've had an inexpensive handheld integrated digital oscilloscope for close to a year, and used it well on various projects. It's been on the shelf for 6 months, and the signal I get now is very noisy,...
SRobertJames's user avatar
  • 1,135
0 votes
0 answers
20 views

Debug Problem of STM32 with Keil

As a beginner I want to learn freeRTOS. Accordingly, I need to have access to the debug section in the KEIL. I test debug with two STM32 Dev Boards including bluepill(stm32f103) and blackpill (...
Saeed's user avatar
  • 21
1 vote
1 answer
62 views

SWD scan failing for STM32H747 using a BlackMagicProbev2.3

I'm trying to debug an Arduino R1 Giga WiFi board with a STM32H747XIH6 mcu, which is a dual-core ARM Cortex-M4 and Cortex-M7 chip, using a Black Magic Probe v2.3 (BMP) from 1bitSquared. I've managed ...
Antonio Bassi's user avatar
0 votes
0 answers
81 views

ST-LINK v2 got burned when I unplugged it whilst debugging

I'm new at using STM32 I used ST-LINK v2 to program a STM32F103C8T6 that was in a breadboard. It was working correctly and, while I was debugging the STM32, I unplugged the ST-LINK by mistake and the ...
jakop's user avatar
  • 1
0 votes
3 answers
206 views

Why doesn't my microphone amplifier work?

I designed a microphone amplifier like in the simulation image below. The images of it in real life are also below. The microphone is a JLI2555. The input voltage used in the simulation is 1mV. When I ...
LEXOR AI's user avatar
  • 346
0 votes
0 answers
64 views

Troubleshooting e-Paper Connection Issues on Custom PCB Board: Seeking Advice

We are using a 0.97-inch LCD in our project. We customized the design in our PCB using the Despi-Co2 and designed it accordingly. Please see the attached image for the schematic diagram of our PCB. ...
Taimoor Malik's user avatar
4 votes
2 answers
487 views

Practical Multiplier circuits using log/anti-log amplifier

I'm trying to build a circuit that output the product of the 2 inputs using TL974 opamps. Looking for something like Vout = Vin1 x Vin2. I found this design which should give something like Vout = ...
zaqzaq's user avatar
  • 41
0 votes
0 answers
96 views

Help debugging a chicken coop door problem

(I am not even a noob in electronics so please be a bit patient). I had purchased this automatic chicken coop door which within 3 months stopped working. (the open button would not open the door. ...
ramrunner's user avatar
  • 101
0 votes
0 answers
12 views

debug error in during launch STCUBEIDE

I am trying to run a demonstration by st but I get a debug error saying the .elf file of the project cant be launched. How to i fix this? I havent changed anything from the example and i just want to ...
Maia Nieves's user avatar
6 votes
2 answers
391 views

Why is the frequency and voltage of my Colpitts oscillator lower on breadboard than LTSpice?

My colpitts oscillator I made on LTSpice oscillated at 5 MHz at a peak-to-peak voltage of 260V. When I put all the components down on my breadboard and measured it with a real oscilloscope, the ...
george_2roz's user avatar
0 votes
0 answers
30 views

Connecting SWD on a same pin as an I/O pin

I'm working on a PCB with a specific number of pins. There are 12 pins on the PCB, used by another device to transfer data and communicate with the chip. I have +3V3, GND, RST, pins for I/O, and an ...
Junior Delaure's user avatar
0 votes
0 answers
31 views

How to debug BLE HID Connection (STM32WB55)

I'm working on implementing a BLE HID keyboard using an STM32WB55 (the nucleo board). The BLE HID example they provide is a mouse, where you press a button on the nucleo and input stuff into a menu ...
mitch's user avatar
  • 1
1 vote
1 answer
72 views

Why is this 8051 ASM code not working?

I’m trying to implement an automated parking lot using an 8051. I’m using stepper motors to function as gates at the entrance and the exit of the parking lot that open whenever the IR sensors placed ...
Captdeadpool's user avatar
0 votes
0 answers
73 views

STM32 NUCLEO programming problem with STLink V2 Clone

Having a trouble with STLink programmer. Error occours in Keil. When I am trying the download code to flash this error appears. If I am using a USB port for debug there is no error. But I need to ...
MSB's user avatar
  • 27
0 votes
0 answers
35 views

Debugging buck converter IC having trouble reaching stable power good after short

I have a 5V power supply circuit from coming from a 12V in to 5V out of a TPS54620 on an FPGA development board I purchased. There was an incident with a bad header connection that caused a GPIO pin ...
Gbps's user avatar
  • 145
15 votes
3 answers
2k views

Why did my DC/DC Buck Circuit fail?

I'm in the process of debugging a PCB I made. On this board, a 24V input feeds through a DC/DC buck circuit (based around the TI TPS54202DDC) to output 11V, then an LDO to output 9V (to ensure a very ...
Helpful's user avatar
  • 671
2 votes
1 answer
113 views

How to test for stack overflow on an ATtiny85 using an emulator?

I am developing a hobby project using the Arduino IDE and an USBasp programmer to upload my code to the ATtiny85. After programming, I remove the chip from the programmer socket and put it into the ...
PanJanek's user avatar
  • 279
0 votes
0 answers
53 views

What hardware/software do I need to connect to SWD on an NXP LPC820 ARM MCU?

I have a Li-po battery pack that I'd like to debug. The on-board BMS has an NXP LPC820 MCU and I've identified the SWD header. My reason for doing this is that one of the 5 cells went bad, which I've ...
scott_b_81's user avatar
0 votes
0 answers
45 views

Unable to communicate with SPI based display board

I need to communicate with a display board that is acting as master and my board will act as slave. The reference document says that " Totally 26 bytes for communication between display and ...
Saqib Sohail's user avatar
1 vote
0 answers
39 views

What on earth could be causing MIPI frame drops?

In a project I'm working on, we're seeing regular frame drops on a 1-lane, 900Mbps MIPI CSI-2 interface. After some investigating, I'm fairly sure that the problem is related to signal integrity. ...
Rocketmagnet's user avatar
  • 27.5k
2 votes
2 answers
191 views

Clipping of output waveforms in a push-pull amplifier circuit with op-amps, how to fix?

I don't know what the circuit is called; I found it in the suggested schematics of a Resolver to Digital Converter IC. The circuit is an amplifier circuit that has two push-pull amplifiers and a bunch ...
Srivatsen R's user avatar
1 vote
1 answer
107 views

Need help in finding short circuit

I designed a basic power amplifier powered by +12V/-12V. During the breadboard testing phase, the bench power supply indicated a stable voltage of +12V/-12V and a current draw of 150mA. After ...
T1P0Z's user avatar
  • 105
0 votes
0 answers
201 views

Can't enable SWV data trace timeline graph in STM IDE

I am using STM32F401RE Nucleo board with STM IDE. I am starting the SWV data trace graph window but the start trace option is not being enabled(I cant click on it). I have attached pictures of ...
funtastic rdj's user avatar
0 votes
1 answer
100 views

Controlling Motor Speed with MCP4162-104E Digital Potentiometer

I am new to electronics and this is my first time using a digital potentiometer. My goal is to control the speed of a DC motor using the MCP4162-104E digital potentiometer. I am confident in the ...
user avatar
2 votes
2 answers
755 views

How much power in an IC to feel hot

Is there any rule of the thumb at which power dissipated in an IC one should be able to feel that it is hotter than the other components? More specifically, I have a "signal" that should ...
Sandro's user avatar
  • 7,697
0 votes
1 answer
88 views

Watchdog Timer doesn't play with input via Serial Monitor

I uploaded this very simple sketch to my Arduino Nano Every to isolate a problem I have. ...
Popeye's user avatar
  • 339
1 vote
1 answer
59 views

PMV20XNER MOSFET Overheating

I am using the PMV20XNER as a simple switch. I am driving a load of about 8 Ω from a 24 V power supply. A schematic is below: When I apply 3.3 V to the gate (which should be enough to turn this ...
Chris 's user avatar
  • 13
0 votes
1 answer
149 views

STM32 vector table with wrong addresses

I tried to manually setup a STM32 project for my nucleo board, however the binary behaves strangely during compilation. The current project state is located in a github repository. I noted two ...
andre.hre's user avatar
  • 149
0 votes
1 answer
59 views

PWM signal gets disrupted when writing to a file (TMS320F28379D)

I am trying to establish a form of communication between my DSP (TMS320F28379D launchpad) and a .py script on my laptop. I have a .csv file with 7 duty cycle values from 0.2 to 0.8. My objective is to ...
Jonathan_the_seagull's user avatar
1 vote
0 answers
173 views

USB 3.0 Debug Cable with a Type-A To Type-C Adapter

I know that the USB 3.0 Debug Cable is just a standard USB 3.0 without the 5V supply line (VBUS). I have a USB 3.0 Debug Cable Type-A to Type-A (in particular this one: USB 3.0 Debug Cable). I need to ...
ABC's user avatar
  • 11
2 votes
0 answers
49 views

Serial communication between Arduino and computer cuts out after a while and doesn't reconnect. Why?

I've just kept an experiment running the whole weekend. Arduino controlling heat and humidity and sending data over serial to my computer. I had a python program reading Serial data and populating an ...
Popeye's user avatar
  • 339
0 votes
1 answer
151 views

SAMD51 can't get USB to enumerate

I made a simple custom board with a SAMD51 and am trying to get USB to enumerate on my computer, it works with Atmel START USB example so I know the board is ok. I have a problem where after sending ...
daannn's user avatar
  • 15
1 vote
0 answers
134 views

How to debug a STM32 MCU Discovery board at higher rates?

I have a STM32H735G-DK Discovery board, and can debug it with gdb (or vscode and cortex-debug). However, it is very slow - hitting s in gdb can take several ...
SRobertJames's user avatar
  • 1,135
0 votes
0 answers
88 views

Can I read an SoC ROM Table through AXI-AP with CoreSight 400?

I'm newbie and trying to read ROM Table information by JTAG through the AXI-AP using CoreSight SoC-400. As I understand CoreSight is associated with some APs to support JTAG such as AXI-AP, AHB-AP, ...
Carter's user avatar
  • 619
0 votes
1 answer
105 views

STM32H755ZIT6 STLINK Debug

I've just got new NUCLEO STM32H755ZIT6 board with STLinkV3 on it. I just want to debug simple empty STMCube project and after configuring board According it's Please look in the UM2408 User manual (...
Alatriste's user avatar
  • 160
3 votes
1 answer
124 views

Strange low frequency sawtooth in a 110 kHz Hartley oscillator

I am trying to build a Hartley oscillator for 110 kHz using a BJT according to the following schematic: I am assuming \$ \beta=100\$ and \$ V_t=25mV \$ The collector current is about 1.63 mA, Vc is ...
amogh waghmare's user avatar
0 votes
1 answer
50 views

Is it possible to force an input port during debugging in MPLAB IDE v8?

I am using MPLAB IDE v8 (not IDE X) to write some PIC programs (PIC18F4321) in assembly. I am using the debugging tool MPLAB SIM to debug the programs, however I am not able to force port bits from ...
bardulia's user avatar
  • 407
1 vote
0 answers
76 views

Intermittently working hardware/software breakpoints with STM32H7

Problem: I have experienced issues with hardware/software breakpoints not being hit during debugging sessions in STM32CubeIDE with the STM32H743. When breakpoints are set or disabled during a ...
gguadianaSPARX's user avatar
0 votes
0 answers
257 views

Custom STM32 board can be programmed via USB DFU, but no connection via ST-Link

I have spent a fair bit of time trying to understand why the stlink does not to see the STM chip when conected over serial wire (port is shown under 'Com ports' in the schematic). I have tried the st-...
George kirby's user avatar

1
2 3 4 5
10