Binary sketch size: 45290 bytes (of a 258048 byte maximum)
avrdude: verification error, first mismatch at byte 0x0308
0x62 != 0xff
avrdude: verification error; content mismatch
I found the offending code but can't figure out how it's broken. I've converted a png to hex and have it in PROGMEM. It's an icon that I'm going to display on a touchscreen. I have another icon that works fine.
Here's the relevant code:
The weird thing is that I have another icon I'm displaying the exact same way and it works fine. It compiles and uploads successfully. Once the code is uploaded it appears to still be running the old program and the reset button the arduino doesn't work. If I pull the USB and reconnect I get a blank screen and nothing in the Serial monitor. If I comment out just the prog_uint16_t it all works fine.
// after headers
extern unsigned int glovesicon[4096];
myGLCD.drawBitmap(120,110,59,60,glovesicon);
prog_uint16_t glovesicon[4096] PROGMEM={
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, // 0x0010 (16) pixels
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, // 0x0020 (32) pixels
......removed
prog_uint16_t glovesicon[4096] PROGMEM={
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFFFF, // 0x0300 (768) pixels