Questions tagged [debugging]
The process of finding and resolving problems ('bugs') in a hardware and/or software system.
94 questions
0
votes
1
answer
80
views
When I try to debug using Arduino IDE for stm32 using stm32duino nucleo F767ZI throws error
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....
0
votes
0
answers
96
views
The control function is not sending out correct values
#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 = ...
-1
votes
1
answer
326
views
Large arrays crash the arduino
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 ...
15
votes
4
answers
7k
views
My code seems to be a train wreck
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 ...
17
votes
6
answers
210k
views
How do I resolve "avrdude: stk500_recv(): programmer is not responding"?
Whenever I try to program my Arduino UNO Rev.3, I'm seeing the following error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
...
2
votes
1
answer
6k
views
Simple LCD countdown timer
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 ...
3
votes
3
answers
4k
views
How to get rid of low quality sound out from DFPlayer plus amplifier?
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 ...
1
vote
0
answers
146
views
Code works in Arduino Web editor but not in PlatformIO IDE or Arduino IDE with board Nicla Sense ME
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-...
1
vote
0
answers
428
views
Adding Serial2 ends up blocking nano rp2040
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 <--> ...
4
votes
1
answer
14k
views
Help solving "collect2.exe: error: ld returned 1 exit status" error in code
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 ...
3
votes
2
answers
5k
views
Using Serial Plotter with Visual Studio Code
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 ...
3
votes
1
answer
270
views
Simulating a button press using the Serial Monitor to run a Servo
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 ...
3
votes
2
answers
2k
views
Can't Upload Sketches to Arduino Nano Every
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 ...
0
votes
1
answer
3k
views
Serial communication of strings
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)...
2
votes
2
answers
10k
views
Proteus - How to Debug Invalid Opcode?
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 ...