Questions tagged [debugging]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Tools and libraries to use with J-Link OB and CoreSight

I have a system with including a Beagle Bone Green board, a J-Link OB module and a Cortex-M4 microcontroller (see figure). I would like to use the DWT and ITM features but don't quite understand how ...
0
votes
2answers
161 views

SDA pin on I2C lines seems weird

I am trying to analyze the I2C commands sent by a PC software to R3910 DSP chip The software uses a programming box (provided by the same company that manufactures the R3910 chip) to communicate ...
0
votes
0answers
31 views

Segway motor not running after vel_setup command in odrive?

I am testing odrive to control segway motor. I finished the setup from documentation but the motor is not moving after sending this command in terminal:- ...
0
votes
1answer
29 views

Design a debug interface for Arduino MKR WIFI 1010

I'm a TA at university, and for the next years students in microcontroller, I will design a debug interface for the Arduino MKR WIFI 1010. The 6 pads on the back is the debug interface as shown in ...
0
votes
0answers
30 views

Core stucks in blocking handler STM32F103C8T6 libopencm3

I have problem with my STM and the libopencm3. After the reset handler is called, there is immediately jump into blocking handler. I suppose that the hard fault occurs. Here is the call stack: <...
0
votes
1answer
39 views

Single Supply AC Gain Opamp With Unity DC Gain

I'm trying to build a AC amplifier that will amplify an input signal of around 0.4Vptp @ 160kHz to around 1.7Vptp. I'm also attempting to do this with a single supply (3.3V) opamp. I built the circuit ...
0
votes
1answer
57 views

In Proteus 8 simulation of the PIC16F84A assembly code (.asm), any setting (BSF) or clearing (BCF) of the pins <3:0> clears pin RA4!

After a thorough investigation, it turns out that the Proteus 8 simulation of the PIC16F84A (and possibly other MCU-s in PIC16 family) has a bug when interpreting the assembly language code, which ...
0
votes
1answer
77 views

Understanding low current measurement

I'm trying to understand a current measurement of a hobby project. This project consists of several ICs and is battery operated. At a certain mode (deep sleep) it should consume a very low current, ...
0
votes
1answer
111 views

UART not fast enough for debug purpose, what alternatives exist?

This problem is related with debugging an FPGA design implemented in Intel/Altera FPGA. A custom debug mechanism has been introduced into the design. This new part of the design writes into a FIFO ...
0
votes
0answers
54 views

Does this (seemingly) corrosion create problems for the operating of the chip?

We have a PCB of a VME machine of ours and it has some kind of white corrosion on it. Does this impact the functionality of the machine and what could it exactly be?
0
votes
0answers
16 views

Can low-cost JTAG debuggers work with ARM DS-5 instead of a DSTREAM?

At work we use ARM's DSTREAM debuggers with the DS-5 environment to debug our Cortex-M based embedded systems on development boards. Currently a DSTREAM box costs $3,500 at Digikey. I searched for ...
0
votes
1answer
61 views

Debugging a battery charger circuit

I have built a circuit of a battery charger here. Here is the circuit in the original project: However, it doesn't seem to work. The output I measure at the battery charging clips is only 1.2 V or so ...
0
votes
1answer
23 views

NMOS T3 always on

Hi all, i have this circuit that is actually really simple. when I came to do the prototype, something that i can't explain happens. the transistor T3 is always on even if i do not connect the supply ...
0
votes
2answers
192 views

DAPLink firmware doesn't operate with OpenOCD

  Why this is not a duplicate Some people seem to think this question is a duplicate, but there is an important difference: The How to update the SWDAP firmware? question is all about how to ...
0
votes
1answer
162 views

How to update the SWDAP firmware?

1. About the SWDAP probe I bought an SWDAP probe some time ago from L-Tek (see https://www.l-tek.com/web-shop/l-tek-swdap-interface/). It took me some time to figure out the terminology, but I ...
4
votes
1answer
888 views

LTSpice Zener diode bug?

I'm trying to design a circuit using a zener diode but am having issues getting it to work right. This circuit works fine and show Vout = 6.198V. However, if I swap their positions - Here, Vout = ...
0
votes
1answer
93 views

How to debug a program using FTDI in STM32CubeIDE?

I want to debug a test project for my board the STM32F103C minimum systemboard, sometimes called the bluepill, I use linux so i downloaded the original STM32CubeIDE as .sh execute it and downloaded ...
0
votes
0answers
12 views

Can the altera_virtual_jtag be used to store critical design information for read out?

Can critical design information like design version number, compilation date e.t.c be stored inside the FPGA and be read out via JTAG while using the altera_virtual_jtag? I assume that the ...
1
vote
1answer
129 views

Strange “step” in i2c plot [closed]

I have some errors during debugging I2C chip. I took an oscilloscope and found some strange artifacts on the log: Maybe somebody has a suggestion about such questions? 1. What are these strange ...
0
votes
1answer
34 views

TM4C123 development board issue

I have started using a TM4C123GXL development board with Keil uVision as the programmer / debugger. I have wrote the attached simple code (see below) to become familiar with using the debugger to see ...
0
votes
4answers
211 views

Temporary but hands-free JTAG/SWD connection

I have a PCB that will have very little clearance on both sides so that putting a normal Cortex SWD .50 spacing connecter is too big. However, I'd still like to have the option of connecting via SWD ...
-1
votes
2answers
101 views

Trouble understanding the hardware debugger concept in an MCU [closed]

When we write a program code to be used for a MCU in C and compile it by using an IDE, the IDE by the help of the compiler already shows us all the possible mistakes. For instance, if I type: ...
0
votes
0answers
61 views

Can't program STM32F4

I am really confused and helpless. I made a custom PCB with the STM32F446VE (LQFP100) chip and got it programmed (SWD). After that I made a second PCB where I wanted to solve some Problems regarding ...
0
votes
0answers
44 views

Accuracy issues with capacitive touch screen [duplicate]

Previous question I asked here. Posting a new question because my previous approach included many incorrect assumptions. I'm working on a product with a motor, a fan, and a LCD with capacitive ...
1
vote
1answer
174 views

Correct wiring of Cortex-M 10-pin Debug Connector

The ARM Cortex-M 10-pin debug connector has five interesting signals, in the original PDF they're named: SWDIO / TMS SWDCLK / TCK SWO / TDO NC / TDI nRESET For MCUs which only support SWD and which ...
0
votes
0answers
45 views

All pins on the PCF8574 work except for the P2 pin

I've been trying to diagnose this problem for so long now, I actually don't know how to tackle this anymore. All the output pins from the PCF8574 (P0-P7) work except for the P2 pin. I've tested with ...
0
votes
2answers
126 views

Live variable view using openOCD and VScode

I really like using VScode + cortex debug extension + openOCD over Keil or Eclipse in embedded projects. Although i wasn't able to figure out how to set up live variable view, which you can set up ...
1
vote
2answers
453 views

STM32F4 Discovery board only works in DEBUG mode

I generated my project with STMCUBEMX with CAN, SPI, I2C peripherals and did some coding on top of it. Code basicly polls the CANBUS, stores data to some IC over i2c and sends the processed data to ...
2
votes
2answers
62 views

How to put a breakpoint to after last line of a loop in GDB?

Consider the following loop: ...
0
votes
1answer
63 views

Is it possible to implement a serial console via GDB?

Is it possible to send debugging messages from MCU to PC over SWD via GDB without interrupting the running code (ie. without using breakpoints), like we could do via UART of MCU by sacrificing 2 UART ...
0
votes
1answer
180 views

STM32 Reset Reason - detect debug reset

In my project I want to set the configuration of the RTC based on the reset source. If a reset is done via hardware reset NRST, the RTC shall be set to zero.If there was a reset due to wake up from ...
4
votes
1answer
149 views

Compiler optimization prevents code from running

I was trying to upload a simple code to my board Tiva C EK-TM4C123GXL but it didn't work. I found out that when I turn the optimizer off, the code works fine. This is the code for blinking the on-...
0
votes
0answers
68 views

Cortex SWD pins disabled

I am trying to flash an Ambiq Apollo via SWD. The problem is that my debugger is unable to connect to the board. Initially, i though that the SWD pins would simply be remapped by software on the MCU....
0
votes
0answers
29 views

Program execution in debug mode

I am interfacing an analog front end through SPI with an ARM microcontroller. When the software is running in debug mode (Keil v5), proper acquisition is made from a generated sin wave. Out of debug ...
1
vote
3answers
252 views

How to look at the emitted assembly code of MPLAB X IDE

I'm using MPLAB X IDE V5.05 to generate the code to program a PIC32MX470F512L. It happens that i'm having some problems in the code and i would want to take a look ...
0
votes
1answer
34 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
159 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
71 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
40 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
77 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
347 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
48 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
33 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
283 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 ...
2
votes
0answers
1k 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
443 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
170 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
577 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
220 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
327 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 ...

1 2 3 4 5 7