Hey guys, so here is an interesting one:
When I upload a specific sketch I wrote, I can't upload anything else, because of "programmer not responding"
Short story about this:
I've got an arduino nano to test my sketches before deploying it on the one i actually use. So when testing a sketch, I can't upload anything else afterwards. So I ordered new clones and I've got the same problem. I uploaded the blink sketch on all new ones to see if they work, which was successful, but after uploading my sketch to one of them it too locked up and said "programmer not responding" like the other one. So it looks like my sketch is bricking arduinos.
I've identified that the error lies within a class I've written so i gotta look into where exaclty some time, but the arduinos are the bigger problem now.
This happened to two boards as of now, but I can still upload the normal blink sketch to other boards.
Here is what I've tried while trying to upload "blink":
- Uploading on Linux Mint and Windows 7
- Pressing the reset button before uploading
- Pressing the reset button, unplugging, plugging in, releasing the reset button, uploading
Some extra info:
Upload error bricked Board:
Build options changed, rebuilding all
Sketch uses 930 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
/usr/local/bin/arduino-1.8.7/hardware/tools/avr/bin/avrdude -C/usr/local/bin/arduino-1.8.7/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB1 -b57600 -D -Uflash:w:/tmp/arduino_build_674927/Blink.ino.hex:i
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/usr/local/bin/arduino-1.8.7/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/myusername/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB1
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/tmp/arduino_build_674927/Blink.ino.hex"
avrdude: writing flash (930 bytes):
Writing | avrdude: stk500_recv(): programmer is not responding
######avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
The Board still receives serial input, because when sending something inside the serial monitor the rx led blinks once.
They are Arduino Nano 328p clones (newest one from elegoo) and they've been working using the 328p (Old bootloader).
I only got Arduino Nanos inhouse.
Any way to maybe clear the storage, so that no program is on there to execute?
Hope you guys can help.
Best regards