Moderators: Altitude, adafruit_support_bill, adafruit, phono, mome rath
uint32_t flashsize = flash_total - bl_size; // bl_size is the size of bootloader
...
echo << "\nHEX file loaded.";
echo << "\nStart = " << hex.get_start();
echo << "\nEnd = " << hex.get_end();
if ((flashsize - hex.get_end()) < 0)
{
echo << "\nError: potential collision with bootloader.";
echo << "\n " << (hex.get_end() - flashsize) << " bytes over the limit. Aborting.\n";
}
...
Users browsing this forum: No registered users and 2 guests