Hi everyone,
Unfortunately, I have a huge problem with Arduino. For some reason, I can no longer upload a sketch to my board (senseBox; ARM Cortex-M0+ processor from the SAM D21 family by Microchip). Initially, everything worked smoothly. The sketch also ran on my board without any issues before. I have already uninstalled Arduino multiple times (including deleting all folders/configurations), restarted my Mac several times, and tried different USB cables, but without success. I am attaching my sketch and the current error messages. If someone could help me with this, I would be infinitely grateful.
When I press the reset Button the Upload might work, but the board is not loading the components. Well, actually nothing happens. Suddenly it stopped working. Before that I was uploading minimum 10 sketches per Day and everything worked well.
I'm using a MacBook with M1 chip.
Thank you very much in advance!!
Error compiling the sketch:
/Users/USERNAME/Desktop/Sketch_International/Programmcode_Mexico/Programmcode_Mexico.ino: In function 'void submitValues()':
/Users/USERNAME/Desktop/Sketch_International/Programmcode_Mexico/Programmcode_Mexico.ino:175:14: warning: unused variable 'c' [-Wunused-variable]
char c = client.read();
^
In file included from /Users/USERNAME/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/String.h:33:0,
from /Users/USERNAME/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/IPAddress.h:24,
from /Users/USERNAME/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/ArduinoAPI.h:30,
from /Users/USERNAME/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/Arduino.h:23,
from sketch/Programmcode_Mexico.ino.cpp:1:
/Users/USERNAME/Library/Arduino15/packages/arduino/hardware/samd/1.8.14/cores/arduino/api/deprecated-avr-comp/avr/pgmspace.h:65:35: warning: 'char* strcpy(char*, const char*)' writing 25 bytes into a region of size 24 overflows the destination [-Wstringop-overflow=]
#define strcpy_P(dest, src) strcpy((dest), (src))
~~~~~~^~~~~~~~~~~~~~~
/Users/USERNAME/Desktop/Sketch_International/Programmcode_Mexico/Programmcode_Mexico.ino:145:3: note: in expansion of macro 'strcpy_P'
strcpy_P(_server, server);
^~~~~~~~
Error when uploading the sketch:
The sketch uses 65212 bytes (24%) of program storage space. The maximum is 262144 bytes.
Global variables use 7640 bytes of dynamic memory.
Forcing reset by opening/closing with 1200 bps on port /dev/cu.usbmodem101
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
PORTS {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } / {/dev/cu.usbmodem101, /dev/cu.wlan-debug, /dev/tty.usbmodem101, /dev/tty.wlan-debug, } => {}
Uploading using selected port: /dev/cu.usbmodem101
/Users/USERNAME/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3/bossac -i -d --port=cu.usbmodem101 -U true -i -e -w -v /var/folders/dj/mfcb5zcs6hg_bp36xw87lsc80000gn/T/arduino_build_424472/Programmcode_Mexico.ino.bin -R
No device found on cu.usbmodem101
Set binary mode
An error occurred while uploading the sketch
Send auto-baud
Set binary mode