[En-Nut-Discussion] Ethernut 2 Bootloader Bug Fixed
Harald Kipp
harald.kipp at egnite.de
Fri Jan 30 19:37:04 CET 2004
We recognized today, that the appload bootloader
failed with files larger than 64 kBytes.
To fix this, change
--- nut/appload/tftp.c
***************
*** 65,71 ****
unsigned long i;
unsigned long addr;
! addr = page * SPM_PAGESIZE;
/*
* Erase page.
--- 65,71 ----
unsigned long i;
unsigned long addr;
! addr = (unsigned long)page << 8;
/*
* Erase page.
Why using a shift? Hehe...multiplication won't work,
believe me. :-)
The best thing: There are no bytes left in the boot
section, it fits _exactly_ into 4 kByte! Made-to-measure,
as we say in Germany.
Harald
More information about the En-Nut-Discussion
mailing list