Skip to main content

Questions tagged [debugging]

The process of finding and resolving problems ('bugs') in a hardware and/or software system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

I am trying to debug using Arduino IDE through STM32Duino for my STM32 Nucleo-144 F767ZI. The code is uploaded successfully, but upon pressing debug, I get this error. Waiting for gdb server to start....
Tejas A's user avatar
0 votes
0 answers
96 views

#include <MIDI.h> int scale = A4; int oct = A2; int potval, octval,octval2=0; int newnote, prevnote = -1; int newpotval,prepotval=-1,potval2=0; int trigr = 7; // Ultrasonic right int echor = ...
DETOX's user avatar
  • 1
-1 votes
1 answer
326 views

I have three large PROGMEM arrays, in order to store musical notes for a song. One array is the notes, one is the note durations, and one is the pause after the note. The first array is an int one and ...
user1584421's user avatar
  • 1,435
1 vote
0 answers
146 views

Here is the verbose for the Arduino IDE: Flashing with command:/Users/hakan/.arduino-create/arduino/openocd/0.11.0-arduino2/bin/openocd -d2 -s /Users/hakan/.arduino-create/arduino/openocd/0.11.0-...
Mr. Panda's user avatar
  • 151
1 vote
0 answers
66 views

The code below is a program that aims to apply the Pans-Thompskin algorithm to a signal attained from a ECG filter. The filter seems to work alright but it fails to blink the LED and collect a correct ...
David Chan's user avatar
1 vote
0 answers
428 views

Background Info I want to have two serials in my arduino nano rp2040 connect, in order to be able to communicate using the following scheme. (μC is a microcontroller). μC1 <--> μC2 <--> ...
MIKE PAPADAKIS's user avatar
3 votes
1 answer
270 views

I'm kind of new to Arduino and C, and I was having trouble with this sketch. I'm working on a project to control 6 servos using virtual buttons. When I hold down the button, the servo moves forward ...
rayank97's user avatar
2 votes
0 answers
77 views

I am trying to connect JTAG debugger to my esp32 according to the following steps https://www.instructables.com/How-to-Use-a-Debugger-on-an-ESP32/ but still I am facing issue in debugging. I am ...
Manisha Narayana Gowda's user avatar
-1 votes
1 answer
61 views

The first time, pow() works. But inside of a 'for loop', or again afterwards, it doesn't behave !? (I'm using a Chinese Pro Mini with Arduino 1.8.16) EDIT To clarify what I am asking, my question is:...
TRS-80's user avatar
  • 21
1 vote
0 answers
90 views

I've got an ESP32 with an CO2 sensor attached. The Arduino script I'm using is quite old and worked for sending them over LoraWAN to TTN and is stable. I added an Wifi-Client to read data more ...
Standard's user avatar
  • 111
4 votes
1 answer
66 views

I connected three LEDs to an Arduino Uno and wrote a simple LED class. I toggle all the leds the main loop, but for some reason one led (connected to pin7) always misbehaves, skips one toggle or stays ...
Jurc192's user avatar
  • 73
1 vote
1 answer
681 views

I am writing my own assert() macro on Arduino as shown below. When I run it from the main() it always works correctly (prints the message and gets into an infinite loop), however when I call it within ...
Jurc192's user avatar
  • 73
0 votes
1 answer
3k views

I used this simple code to understand the basics of serial communication. This achieves simple communication between the computer and arduino: String receive_buffer; void setup() { Serial.begin(9600)...
satan 29's user avatar
  • 169
2 votes
1 answer
6k views

I tried to modify the basic "hello-world" sketch for the LCD that is a part of the examples section in the IDE. I intended to make a countdown timer using the LCD. The original code simply ...
satan 29's user avatar
  • 169
2 votes
0 answers
65 views

As part of a project, I created a simulation of a juncture with 4 traffic signals. The time for the green signal is set based on a function that calculates it based on an algorithm (and it takes the ...
satan 29's user avatar
  • 169
0 votes
2 answers
119 views

I'm trying to get a robot car(elegoo one) to do the obstacle avoidance course. I am trying to write my own one from scratch to better myself and thus would really appreciate it if someone were to tell ...
Maaz Madha's user avatar
3 votes
3 answers
4k views

I use my Seeeduino V4, DFPlayer mini, and this speaker module from AliExpress to create an automatic doorbell. The problem is that it seems that this speaker module's Yurobot amplifier is not ...
Starter's user avatar
  • 153
4 votes
1 answer
14k views

I just got an Elegoo UNO starter kit the other day and have been working my way through the little tutorials on all the parts it came with. I am using VSCode with Platform.io plugin and (after getting ...
wileyrivers's user avatar
1 vote
1 answer
2k views

On an ESP32 board I am trying this simple code to control the onboard led. But if I set it to HIGH, led is OFF, if I set it to LOW, led is ON (fully bright). What could cause this ? The board has one ...
adrianTNT's user avatar
  • 252
3 votes
2 answers
2k views

first-time builder here. I just got my Arduino Nano Every in the mail from Mouser, and I'm trying to upload a modified version of the blink example to my new brand-new board. However, every time I ...
Kronimiciad's user avatar
1 vote
0 answers
967 views

I am using Arduino Mega 2560 and I have written code for my GPS module (Neo-6m-0-001/GY-NEO6MV2) and it is working fine independently. I also have written code for Compass module (QMC5883L) which is ...
Engr.Double_minded's user avatar
1 vote
0 answers
111 views

Background: I have made a standalone Arduino board using Atmega328PB. I have written code for a clock which lights LEDs based on the time. After a day or so it locks up. Sometimes it reboots. I ...
RickH's user avatar
  • 41
4 votes
3 answers
3k views

I have an arduino program that only does serial communications with a little bit of math, and I am writing another one to communicate with it on a second arduino. For testing purposes I was hoping I ...
bob mcgrath's user avatar
1 vote
0 answers
290 views

I have recently purchased a lilygo ttgo t-beam (868Mhz version) on which I try to run the "DeviceInfo" example code provided by TheThingsNetwork. When executing ttn.ShowStatus(); I see in ...
George Sp's user avatar
  • 163
-1 votes
1 answer
308 views

I tried Serial.print an array I had made, but the Arduino displays nothing in the monitor. I tried doing Serial.print("Hehehe"); as a test, but it just displayed "h?h?h?". The monitor works fine ...
GeorgeWTrump's user avatar
1 vote
1 answer
182 views

This is NOT my code; was posted on Project Hub. I tried to use the code (humidity controller) but it returns an error on line 270: else if (DHT.humidity >= setpoint + 3 and syson == true) { //if ...
kwhunter's user avatar
15 votes
4 answers
7k views

I am new to programming and I thought a simple project to do would be to create an ammo counter. I have been troubleshooting this code for several hours now, and can not figure out why my code is ...
pvGuy's user avatar
  • 183
0 votes
2 answers
1k views

I'm making some code for school, and is adding debug code to it. When compiling, I get the error as written in the title. This is the code in question: #define DEBUG 1 #ifdef DEBUG #define Serial....
TheGaardenator's user avatar
0 votes
1 answer
368 views

I have an Arduino Yun board and an Atmel ICE programmer/debugger. There are 6 pins on the Arduino Yun to connect to Atmel ICE for programming only, but I can't find the pins for debugging. Anyway to ...
Maghrabi Issam's user avatar
1 vote
1 answer
774 views

I get new boards from the shop but they are little different from the previous version. I got software what works ok on Nodemcu lolin v3 now I get Nodemcu Amica what is almost same board but if I got ...
Fires_CZ's user avatar
1 vote
1 answer
114 views

1. Example Check the program below for an Arduino Nano, Old Bootloader, for variable values of N. For low values (N<=1857), the program outputs "[FFFFFFFF]", For higher values (1858<=N<=...
Brethlosze's user avatar
1 vote
0 answers
880 views

I installed the ESP EXCEPTION DECODER along with my Arduino IDE. When my sketch crashes with Exception 29, I take the stack trace and input it, but I can't understand its line references (they dont ...
tony gil's user avatar
  • 388
2 votes
2 answers
10k views

While running a program compiled in the Arduino IDE 1.8.5 and then using the .ELF file inside LabCenter Proteus 8.0, for an Arduino Nano ATMEL Mega 328P, for a code involving the use of the ...
Brethlosze's user avatar
0 votes
1 answer
89 views

I wrote the code below and the result is not what I expected at all! I'm not sure why it's happening! void setup() { // put your setup code here, to run once: Serial.begin(9600); } const uint8_t ...
OM222O's user avatar
  • 199
-1 votes
1 answer
1k views

I have an Afafruit NRF52 board with SD 132 and 5.1 dual fw bootloader. I implemented RTT logging and controlling (input) and the code is compiled using arduinoBuilder with RTT and debug level 3. The ...
codeScriber's user avatar
2 votes
1 answer
192 views

In order to transmit text from the Arduino board to the HC-05 Bluetooth module, I have use Serial.print. However, I don't see a way to debug the code without using Serial.print to test the other ...
user avatar
3 votes
2 answers
5k views

I'm using the Visual Studio Code extension to develop for Arduino which works great. It doesn't have a Serial Plotter like the regular Arduino IDE, which I need to debug this project. I can run the ...
Joel Spolsky's user avatar
0 votes
2 answers
117 views

This is a pseudo code from my LED cube project void loop(){ //switch( map(constrain(analogRead(pt),10,1020),10,1020,1,4)); - for select pattern //show(1); for(lp=128;lp>=1;lp = lp/2){ ...
A.Shetye's user avatar
  • 147
1 vote
3 answers
7k views

I have a decent level of programming skill, or at least I thought so. I've been getting an error when compiling this Ardulno sketch. I don't really know what this error means or how to fix it. What's ...
dude8604's user avatar
1 vote
1 answer
96 views

Ok, I made some changes to the code and I wish they would see it. At the moment the program has a bug, it is not saving the contents of the txt file to the table, can someone give some lights? #...
1manonearth's user avatar
2 votes
2 answers
565 views

I was working on a project build initialy from the Arduino IDE to program an attiny84a (without a bootloader) using the board from https://github.com/damellis/attiny I got an atmel-ice recently and I ...
0xCDCDCDCD's user avatar
-1 votes
2 answers
4k views

I want to count the number of people in a room using a microcontroller (Arduino Uno). I have 2 ultrasonic sensors at a doorway about a 1.5m apart from each other. I want to increment the number when ...
smit's user avatar
  • 11
0 votes
2 answers
1k views

I have written simple code to enable toggling of serial.print debug data. #define DEBUG #ifdef DEBUG #define DEBUG3(x,y,z) Serial.print(x);Serial.print(" ");Serial.print(y); Serial....
R Lloyd's user avatar
  • 33
1 vote
0 answers
248 views

I've been looking for a solution for this problem for quite a time I tried different I2C libraries; like, I2C master library using hardware TWI interface * Author: Peter Fleury But the same ...
R1S8K's user avatar
  • 283
-1 votes
1 answer
93 views

I have a sketch where I want to check my nRF24L01's and they work great. However, due to Serial.print(ln) statements I noticed there is a lot of delay. Is this normal? I mean, is it better not to ...
Michel Keijzers's user avatar
1 vote
1 answer
302 views

Its a well known fact, that you can debug your arduino board with the help of an Atmel Ice. However, you might know the Controllino which is an arduino compatible device. It has an ATmega2560 on it. ...
Fuzzyma's user avatar
  • 113
1 vote
2 answers
617 views

I'm testing three different Arduino (nano, Uno and Mega) each of them having a nRF module. The codes (sketches) are different for each module. I've connected the arduinos to my single laptop via 3 USB ...
Zeta.Investigator's user avatar
1 vote
2 answers
4k views

I have a problem! I need to connect 5 MFRC522 readers on an Arduino Uno but it is not working ! With one or two MFRC522 modules it works, when I use three or more nothing works anymore... The serial ...
Thundercoal's user avatar
1 vote
1 answer
1k views

My project is based on a moving fan using DHT11 sensors. I have used 2 void loops and the IDE is showing an error "exit status 1 redefinition of 'void loop()'" One doubt: Can we use 2 void loops ...
Reshu Singh's user avatar
1 vote
1 answer
576 views

I noticed that since I use the MIDI library from 47effects, I cannot use the print(ln) for the serial port for debugging purposes, neither I can find it in the documentation. It states that the MIDI ...
Michel Keijzers's user avatar