I've been working on a project with a Nano Every for a couple of weeks now, yesterday I tried to upload some changes I made to the sketch, it will not upload, I get a timed out message. I'll assume I've done something bad to my Every because this message doesn't look good to me. Says it can not locate the flash and boot memories.
Here's the error message I get
Arduino: 1.8.9 (Windows 10), Board: "Arduino Nano Every, ATMEGA328"
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:46:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *verse[] = {"zero", "one", "two", "three", "four"};
^
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:46:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:46:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:46:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:46:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'int' to 'char*' [-fpermissive]
char *color[] = {BLACK, BLUE, RED, GREEN, CYAN, MAGENTA, YELLOW, WHITE};
^
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'unsigned int' to 'char*' [-fpermissive]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'int' to 'char*' [-fpermissive]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'int' to 'char*' [-fpermissive]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'unsigned int' to 'char*' [-fpermissive]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'unsigned int' to 'char*' [-fpermissive]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:52:71: warning: invalid conversion from 'unsigned int' to 'char*' [-fpermissive]
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino: In function 'void loop()':
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:357:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
bmpDraw("sunrise2.bmp", 0, 0);
^
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino: In function 'void circles()':
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:377:81: warning: invalid conversion from 'char*' to 'uint16_t {aka unsigned int}' [-fpermissive]
tft.fillCircle(random(0,480), random(0,320), random(10, 40), color[random(1, 8)]);
~~~~~~~~~~~~~~~~~~^
In file included from C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:7:0:
C:\Users\lampo\Documents\Arduino\libraries\Adafruit_GFX_Library/Adafruit_GFX.h:57:5: note: initializing argument 4 of 'void Adafruit_GFX::fillCircle(int16_t, int16_t, int16_t, uint16_t)'
fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color),
^~~~~~~~~~
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino: In function 'void bmpDraw(char*, uint8_t, uint16_t)':
C:\Users\lampo\Documents\Arduino\Beautiful_mp3\Beautiful_mp3.ino:407:40: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
if ((bmpFile = SD.open(filename)) == NULL) {
^~~~
C:\Users\lampo\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\cores\arduino\NANO_compat.cpp:23:2: warning: #warning "ATMEGA328 registers emulation is enabled. You may encounter some speed issue. Please consider to disable it in the Tools menu" [-Wcpp]
#warning "ATMEGA328 registers emulation is enabled. You may encounter some speed issue. Please consider to disable it in the Tools menu"
^~~~~~~
Sketch uses 28875 bytes (58%) of program storage space. Maximum is 49152 bytes.
Global variables use 1346 bytes (21%) of dynamic memory, leaving 4798 bytes for local variables. Maximum is 6144 bytes.
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description
avrdude: jtagmkII_reset(): timeout/error communicating with programmer (status -1)
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: jtagmkII_close(): timeout/error communicating with programmer (status -1)
avrdude: jtagmkII_close(): timeout/error communicating with programmer (status -1)
avrdude: jtagmkII_close(): timeout/error communicating with programmer (status -1)
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Thanks
John