printf("Invalid configuration, asked to use buffer out of RAM, aborting.\n");
return -1;
}
+ if (trace_on) {
+ printf("flash size : 0x%08x, nb sectors : %d\n", part->flash_size, part->flash_nb_sectors);
+ }
/* Calc write block size */
write_size = calc_write_size(sector_size, part->ram_buff_size);
if (write_size == 0) {
printf("Config error, I cannot flash using blocks of nul size !\nAborted.\n");
return -2;
+ } else if (trace_on) {
+ printf("write size : %d\n", write_size);
}
/* Just make sure flash is erased */
}
}
+ if (ret == 0) {
+ printf("Done, binary has been written to internal flash.\n");
+ }
+
free(data);
return ret;
}