Stack Exchange Network

Stack Exchange network consists of 175 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
57 views

ST Board works only in debug mode [on hold]

https://www.st.com/en/microcontrollers-microprocessors/stm32l475vg.html I'm using that board, and the firmware runs only in Debug mode with ONLY usb connected to as a debugger. I'm using JLINK for ...
0
votes
1answer
19 views

Atmel debugger: erase bootloader?

I have an ARM-M0+ (SAMD21G18). I have a project that has a bootloader and another with application. When I try to go to debugging I suspect the following: the ROM is erased application flashed ...
1
vote
2answers
121 views

STM32F7 device freeze: cannot access registers

I am encountering random freezes with the STM32F7. This issue is difficult to debug as any debug session launched in Eclipse crashes when trying to halt the core, which makes it impossible to see ...
0
votes
0answers
58 views

PIC24F debugger halts and resets upon I2C read of slave

I've been trying to debug my I2C communication between the PIC24FJ32GA002 and the PCA9546APWR bus switch for a couple of days now. I just want to test that I could enable a channel of the bus switch, ...
0
votes
0answers
30 views

Can I do on-chip debugging on atmega328p with gdb (command line)? [duplicate]

Is there a way of doing on-chip debugging of Arduino Uno (atmega328p) with gdb on the command line? I'm looking for something simplistic and excluding IDE solutions like Eclipse and Atmel Studio. I ...
1
vote
1answer
66 views

LED intermittently fails but works when voltmeter applied

I have an LED in a home project. It's in a simple loop with a resistor and the GND and V+ ends connected to appropriate pins on a microcontroller. The LED works properly for extended periods of time ...
17
votes
2answers
274 views

How to find the problem of this old Marantz amplifier?

After a first question referring to resistor symbols, I'm back with this old Marantz PM-68 class AB amplifier and I will refer to components using their ID that can be found in the service manual. ...
1
vote
1answer
46 views

How to check the flow of assembler instructions execution?

I'm creating a project that uses I2C serial communication in assembler and I'm having some issues transmitting data and receiving back so I thought I should somehow debug the whole program, besides ...
1
vote
0answers
26 views

How to prevent OMAP from running software after poweron reset?

I have a faulty forgein system using an OMAP5912 whith external SDRAM and NOR-Flash connected. I have JTAG access to the unit with an Segger J-Flash. Now i want to debug why it does not startup ...
2
votes
1answer
262 views

Removing debris from PCB

I have a PCB with no solder mask with a very dense layout and a very fine trace spacing. I didn't get a solder mask because it's still in the prototyping phase, and it's way cheaper. I keep having ...
1
vote
0answers
256 views

Add serial interface to ST-link clone

I recently started studying STM32 microcontrollers (BluePill STM32F103 dev board + ST-link V2 clone). I was wondering if it is possible to add serial communication to ST-Link clone? From what I ...
0
votes
0answers
85 views

STM32CubeProg vs STLINK Utility

There are 2 software tools provided by ST to flash their STM32 MCUs namely STM32CubeProg and STLINK Utility STM32CubeProg Page says: STM32CubeProgrammer (STM32CubeProg) is an all-in-one multi-OS ...
0
votes
3answers
152 views

PIC16f88 not debugging

Disclaimer, i am more or a hardware designer and not so much a coder, i can code but i'm not the most proficient at it. I have a project I'm working on that has a portion of the code that appears to ...
0
votes
1answer
175 views

SWD vs ST-LINK on STM32F4 Discovery board

Why do we have 2 connectors namely CN2 (SWD) and CN3 (ST-LINK) on STM32F407 Discovery board? Are not they the same thing?
2
votes
1answer
64 views

STM32F429I Discovery board - unable to do printf() redirection using SWV/ITM

I am an STM32 newcomer. I recently got an STM32F429 Discovery dev board which I have been playing around with. Currently I'm trying to figure out how to use the debugging functions of this M4 Cortex, ...
1
vote
3answers
130 views

STM32F429 Discovery debug options

I recently acquired an STM32F429 Discovery Kit (pictured below). I'm new to the M4 cortex series microcontrollers and ARM in general having only worked with PICs before. I've seen some really nice ...
0
votes
1answer
94 views

FT2232H USB Device not responding

I've designed a PCB which contains FT2232H for UART and SWD debugging for a microcontroller in the PCB (STM32L0). The FT2232H circuit looks like this: and the power schematic that contains the USB ...
0
votes
0answers
16 views

Debugging in the Code Composer Studio v6.2.0

I would like to ask you for an advice. I have a custom control board with TMS320F2808 dsp. The dsp contains in its flash memory custom bootloader and application. I need to debug the application in ...
0
votes
1answer
63 views

ARM Debugging - Cortex M0 debugger gpio changing while halted in SysTick_Handler

I've been trying to figure out this one for hours and I can't see what I'm missing. I currently am debugging my program on hardware and I have set a break-point inside of one of the functions called ...
0
votes
0answers
39 views

In Circuit Debugging vs On Chip Debugging

Is there any difference or are they the same thing ? Both terms are frequently used. There is only 'one' website touches the point directly: "The ICDs (In-circuit Debugger) are additional circuitry ...
0
votes
1answer
55 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
81 views

Can I use PICKIT3 instead of STLINK for programming STM32F103C8?

Can I use PICKIT3 for programming STM32F103C8 instead of STLINK ?
1
vote
3answers
126 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
42 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
29 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
78 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
45 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
50 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
71 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
152 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 ...
0
votes
0answers
51 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
134 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
70 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
51 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
79 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....
1
vote
1answer
79 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
56 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
79 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
177 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
245 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
318 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
112 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
48 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
90 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
73 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
75 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
1k 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
182 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
1answer
1k 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 ...