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
1answer
53 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
122 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
140 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
150 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
3k 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
635 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
2k 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 ...
0
votes
2answers
1k views

digispark pin mode input_pullup reading low on pin 1

I have a Digispark dev board that I am using with the Arduino IDE. I have set Pin 1 HIGH with pinmode(1, INPUT_PULLUP) and the ...
0
votes
2answers
1k views

Debugging a dimmer circuit (TT6061A) [closed]

I've got a touch sensitive table lamp that dims to three different stages (off, low intensity, mid intensity, full intensity). It has stopped working like that and now just being powered to the mains ...
4
votes
1answer
5k views

Error when using debugging under Atollic TrueStudio / STM32

I'm using STM32F103C8T6 Atollic TrueStudio STLink2.1 Error I get when debugging: Debug configuration set in TrueStudio: What worked before was in SW4STM32/Eclipse, with the following settings. I ...
1
vote
1answer
124 views

Barebone ATSAMD11D14 not responding

I wire up this schematic on my breadboard. I've verified that the 3V3 LDO is working. Atmel Studio on my Windows machine can see the Atmel ICE. The simple blink compiles fine too. However, I cannot ...
0
votes
1answer
350 views

Serial Wire Debug (SWD) Enumeration

When debugging or accessing hardware firmware, JTAG and SWD can be really helpful to the developer, engineer or reverse engineer. When looking at an unknown board/device tools such as JTAGEnum or ...
4
votes
2answers
378 views

Detachable “debug” portion of PCB?

I'm trying to add "optional" debugging test points to an existing, very dense 4 Layer PCB design (signal - GND - PWR - signal). I'd like to change the existing PCB as little as possible. My idea was ...
1
vote
1answer
154 views

USB Serial Adapter Unintentionally Powering RS232 TTL Converter

I have a programming setup where I plug in a GoldX USB cable plugged into my programming laptop (in this case a MacBook Pro). Cable picture: This is plugged into an eBay sourced RS232 TTL converter: ...
1
vote
2answers
577 views

Any rules of thumb to fix this non-functioning board I just made? [closed]

I just reflowed this PCB. It is a 20 x 16 mm PCB with a Nordic nRF52832 Bluetooth Low Energy (BLE) SoC IC. I powered it on and the regulator, mounted on the back, got very hot. I measured the Vcc and ...
-1
votes
1answer
916 views

How to debug an I2C Sensor conntected to a raspberry pi with a multimeter?

I am a noob in eletronics, so I need some help. I want to debug an i2c sensor with a digital multimeter such like this: And I have a setting like in the picture below where tmp102 is my i2c sensor on ...
0
votes
2answers
1k views

Incorrect Output From 7805

I am powering a few op-amps from a split supply made from a 7805 and 7905. Before connecting the amps, I measured the outputs from both regulators and got 5V and -5V, respectively. However, after I ...
3
votes
2answers
3k views

Op Amp Overheating

I am building an amplifier with multiple op-amps, and it seems that some are overheating. Here is the schematic: U62 heats up the most (too hot to touch), U63 also heats up but a little less, U64 ...
0
votes
0answers
123 views

Debugging implementation of low current battery monitor

I have tried to implement the circuit in this answer in order to measure the voltage of an external battery using an Arduino. However, I am not sure if I have wired it correctly. Here is the diagram: ...
0
votes
2answers
189 views

Microcontroller with and without debugging features?

Out of curiousity, are there any microcontrollers which are available with and without debugging capabilities? I'm asking because I assume that the debugger is not a simple 'peripheral' in terms of e....
3
votes
3answers
7k views

STM32 print via UART without Nucleo/Discovery

I would like for debugging/trace purposes to print texts (preferably via printf but just text is also fine) from an STM32F103C8T6 to a (PC) terminal application. I noticed that all examples use a ...
2
votes
1answer
925 views

Kiel debugger exits automatically

I am using Keil uVision5 for programming TI launchpad TM4C123GXL. The Keil work perfectly fine for Building and flashing the programs (examples projects of Tiva Ware). But when I start the Debug ...
0
votes
2answers
1k views

Overvoltage failure modes/PCB repair

I have a PCB that has >10 ICs intended to be powered by a 3.3V supply. Unfortunately, 12V was applied to the circuit and the board now exhibits a short circuit. The offending power supply is current ...
6
votes
2answers
2k views

MPU6050 accel/gyro noise that behaves strangely - what might be doing this?

I'm experimenting with an MPU6050 six-axis accelerometer/gyro reading data with a Raspberry Pi via I2C. The six-axis response makes sense in general as I rotate it by hand, rotating moves the gravity ...
0
votes
2answers
2k views

Quartus, Modelsim, VHDL - Viewing Internal Signals

This question is rather specific which makes it rather hard to answer. I'm using Quartus Prime software from Altera to do an FPGA design in VHDL. Quartus exports to Modelsim for the simulation. I'm ...
0
votes
1answer
416 views

Black magic probe boundary scan

I have a simple question. Can black magic probe be used to do boundary scan? I couldn't find that it says explicitly that. If not, what would be cheapest alternative to do that on STM32 (STM32F103) ...
1
vote
1answer
596 views

STM32 HAL CAN does not update value and crashes when setting ExtId

I'm running my first CAN test program using STM32CubeMX, STM32F103C8T6 and Eclipse. I used default CAN settings in STM32CubeMX (also tried loopback but the results are equal). What I see (see pic ...
3
votes
1answer
532 views

Better procedure for 'recovering'an STM32F103C8T6?

I have a STM32F103C8T6 (aka blue pill) and worked with it. Sometimes - due a reason I don't understand - after debugging it (using Eclipse), the connection is lost and I cannot start a new debug ...
1
vote
0answers
561 views

STM32F103C8 Debugging Using STM Studio (version 3.5.1)

I am trying to obtain real time variable reading in STM Studio But When My STM Board starts running program My STM Studio was unable to detect STLInk V2 and My program Runs only in Flash Mode. I am ...
5
votes
2answers
1k views

How to debug STM32L433 Current leakage

I have a circuit board with STM32L433 that has around 320uA of baseline current draw in STOP 2 mode. Only LSE with a 32kHz crystal is active. The board has separate analog Vdda power which is ...
1
vote
2answers
8k views

Weak key fob signal

I have a VW Golf 5 from 2004. I have bought it about 4 years a go. I have 2 pairs of keys. With the first one, I could never open the car remotely. The second one worked quite well but its range ...
1
vote
0answers
216 views

Is there any major difference between using STM32F103C8T6 + ST LINK V2 and using Tiva c concerning debugging?

I have started learning ARM microprocessors and I just wanted some real board to get more comfortable with what i'm learning and I have two options : Getting tiva c launch board or using STM32F103C8T6 ...
1
vote
0answers
566 views

Error on Lattice Diamond: “core0 incorrect response (Write: 512 != Read:0) … Problem cause is sample clock too slow or not continuous”.

Question for persons experienced on Lattice Diamond, I'm trying to test a previously developed project on Lattice Diamond. The project initially shouldn't have any problems because it was implemented ...
2
votes
1answer
142 views

Put one value in PORTA, and another value appears (PIC24 from Microchip)

I am doing a small code for PIC24FJ1024GB610 from Microchip, where I want to test PORTA The code Below ...
3
votes
1answer
1k views

Can Cortex M4 data watchpoint trigger an interrupt without a debugger?

I am trying to diagnose memory corruption on a Cortex M4 (Kinetis K64). With the debugger (J-Link) attached I can set data watchpoints and the core will stop when a memory address is written. I want ...
-3
votes
2answers
162 views

nxp microprocessor ethernet socket coding and sending code [closed]

I have nxp lpc43s50 microprocessor and I made an ethernet connection via lan8710 and at24c02 .I know how to connect at24c02 to my microprocessor pins .However I don't know how to send codes to my ...
1
vote
1answer
235 views

Variable arguments via STM32 via USB

To make printf kind of debugging possible, I planned to use variable arguments to pass to the USB device as serial device. Code to print a test string: ...
1
vote
1answer
5k views

Interfacing HC-SR04 Ultrasonic sensor with STM32L

I'm trying to control this HC-SR4 Ultrasonic sensor by simply ON an LED when an object closer than 100cm is detected. I'm using TIM2 for the trigger signal (Pin PB10), and TIM4 to receive Echo signal (...
1
vote
0answers
145 views

Debugger hangs when reaching to Float or Delay

When I run this code, the debugger hangs once it reaches to a Float (in this case the variable 'Distance') or Delay, I mean it seems like it's processing, however it never goes through, and I have to ...
0
votes
1answer
1k views

Mouse Wheel Rotary Encoder … encoding wrong

OK, guys - I'm pretty confused here. I bought a cheap wireless mouse to gut and use in a project. Right now I'm trying to get the rotary encoder behaving, but (while it IS behaving) it's behaving ...
1
vote
1answer
103 views

My stepper motor works, but it shouldn't. Either the cables are mislabeled or the sequence is incorrect

I have a Nema 17 stepper motor and a TB6612 driver from Adafruit. To control this stepper motor I am using a Raspberry Pi. I cannot figure out which cables in my stepper correspond to which coils: the ...
3
votes
1answer
578 views

General circuit debugging techniques, and my 555 timer in particular

I am looking for help in two ways: learning general techniques for debugging circuits that do not work figuring out why this circuit in particular is not working The circuit is a timer that runs for ...
-2
votes
1answer
223 views

Stepper Motor over heating and optimal decay settings [closed]

Motor is overheating at 50% decay settings (Driver : TB6560HQ), so what is optimum decay settings , need to increase or decrease? I have basic understanding that if 100% decay, possibility is high ...
2
votes
3answers
6k views

STM32 Execution Time

I'm working with an STM32F4 discovery board and I want to calculate how much time it takes to do some tasks. I'm using Atollic with an SW4STM32 debugger. I cannot figure out how to do it. I've read ...
0
votes
1answer
411 views

Resources for learning how to implement an embedded programmer/debugger on my custom development board? [closed]

I am in the process of designing a custom development board based on an STM32 microcontroller. This is all a learning process for me for embedded design, and one area that I know nearly nothing about ...
0
votes
2answers
154 views

50 (or more) channels picoscope/oscilloscope

I need to debug communication protocol over 50 digital channels cable and 2MS/s sample rate. What kind of tool would be best suited to do that task? What other aspects should I consider?
6
votes
1answer
1k views

Sending debug information from MSP430 to CCS Console

I am debugging some code written for the MSP430F2132, which has very little flash memory available for the program. In order to debug properly, I must send information out to a terminal so that it can ...
0
votes
2answers
1k views

RTC (real-time clock) in STM32L4 series - date and time is not updating on the debugger variable

While using the RTC (real-time clock) in the STM32L4 series, but date and time is not updating on the variable in debugger mode. But when I stop the debugging, the variable gets updated instantly and ...
2
votes
1answer
398 views

Why does 'in-circuit emulator' contain the word emulator, if nothing is being emulated?

Doing a quick read up on in-circuit emulator (ICE) hardware, I'm confused as to why the word 'emulator' is included. It sounds like most ICEs are just fancy chips that can control a processor for ...
1
vote
1answer
287 views

STM32F4 Nucleo - how to set pins low while uploading firmware?

I am busy trying to write some firmware for a system with a whole lot of digitally controlled hydraulic components, and it's a complex system so there is a lot of tweaking of the algorithm and ...

1 2 3
4
5
8