     Serial.print("        Done: ");
     Serial.print(sizeof data);
     Serial.println(" bytes uploaded.");
+    digitalWrite(GREEN_PIN, 1);
 }
 
     Target.begin(115200, false, false); // disable parity

        sendByte(addr >> 8);
        sendByte(addr);
        sendByte(check);
        wantAck();
        sendByte(256-1);
        //check = 0;

    
    Serial.print("     Writing: ");
    for (uint16_t offset = 0; offset < sizeof data; offset += 256) {
        digitalWrite(ERROR_PIN, 1);
        Serial.print('.');
        sendCmd(WRITE_CMD);
        uint32_t addr = 0x08000000 + offset;
